You are not logged in.
I am trying to use mplayer in my text-based console/terminal without the X window system. When I play a video, the sound is fine but the video output just shows a few text characters moving and that's it, no video. Is there something I must type after the mplayer command or set a certain preference for graphics/video?
My xorg.conf file has:
Driver "intel"
VendorName "Intel Corporation"
BoardName "82810E DC-133 (CGC) Chipset Graphics Controller"
And the output for mplayer -vo help is:
MPlayer SVN-r30526-4.4.3 (C) 2000-2010 MPlayer Team
Available video output drivers:
vdpau VDPAU with X11
xv X11/Xv
x11 X11 ( XImage/Shm )
xover General X11 driver for overlay capable video output drivers
gl X11 (OpenGL)
gl2 X11 (OpenGL) - multiple textures version
matrixview MatrixView (OpenGL)
dga DGA ( Direct Graphic Access V2.0 )
sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
fbdev Framebuffer Device
fbdev2 Framebuffer Device
aa AAlib
caca libcaca
v4l2 V4L2 MPEG Video Decoder Output
xvidix X11 (VIDIX)
cvidix console VIDIX
null Null video output
xvmc XVideo Motion Compensation
mpegpes MPEG-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
png PNG file
jpeg JPEG file
gif89a animated GIF output
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
142 audio & 332 video codecs
Does anyone know what I should do?
Last edited by ih23 (2010-02-13 17:39:38)
Offline
Hello,
I have tried playing video files in console, no X using mplayer. Here's what I type:
mplayer -vo fbdev ringring.flv
It will play the video, and display it on the topleft corner. The output can be scaled (software) so it displays in fullscreen, using mplayer video filter:
mplayer -vo fbdev -vf scale=1366:768 ringring.flv
My hardware is Intel GMA950, and I enable KMS on boot.
Where's my sig?
Offline
I've enabled KMS on boot and tried "mplayer -vo fbdev" and "mplayer -vo fbdev -vf scale=1360:768" and I still get the same output.
Offline
Offline
As always when diagnosing mplayer issues, post the full output. Even better, run "mplayer -v -vo fbdev" to really see what mplayer is doing and post that.
Offline
I'm trying to play an .avi file. I also checked /dev and there is no fb0.
Here is the output of mplayer after trying to play the file:
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
mplayer: could not connect to socket
Selected video codec:
[ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
Failed to open LIRC support.
[aviheader] Video stream Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
[aviheader] Audio stream found, -aid 1 AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)e/s)
vo: couldn't open the X11 display ()! Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
vo: couldn't open the X11 display ()! ==========================================================================
vo: couldn't open the X11 display ()! AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)he X11 display ()!
vo: couldn't open tStarting playback...
vo: couldn't open the X11 display ()! Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.lization failed: No available video device.
Can't open /dev/fb0VO: [aa] 640x360 => 640x360 Planar YV12
[fbdev2] Can't open /dev/fb0: No such file or directory [swscaler @ 0x8b32060
Last edited by ih23 (2010-02-13 20:04:08)
Offline
Here is the output for "mplayer -v -vo fbdev":
CPU vendor name: GenuineIntel max cpuid level: 2
CPU: Intel(R) Celeron(TM) CPU 1400MHz (Family: 6, Model: 11, Stepping: 1)
extended cpuid-level: 4
Detected cache-line size is 32 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 0 SSSE3: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/isaias/.mplayer/codecs.conf'
Reading /home/isaias/.mplayer/codecs.conf: Can't open '/home/isaias/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 142 audio & 332 video codecs
Configuration: --prefix=/usr --enable-runtime-cpudetection --disable-gui --disable-arts --disable-liblzo --disable-speex --disable-openal --disable-fribidi --disable-libdv --disable-musepack --disable-esd --disable-mga --enable-xvmc --language=all --confdir=/etc/mplayer --extra-cflags=-fno-strict-aliasing
CommandLine: '-v' '-vo' 'fbdev' 'Gods and Generals CD 01 of 02.avi'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/isaias/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/isaias/.mplayer/input.conf'
Can't open input config file /home/isaias/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 90 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
get_path('Gods and Generals CD 01 of 02.avi.conf') -> '/home/isaias/.mplayer/Gods and Generals CD 01 of 02.avi.conf'
Playing Gods and Generals CD 01 of 02.avi.
get_path('sub/') -> '/home/isaias/.mplayer/sub/'
[file] File size is 1342103508 bytes
STREAM: [file] Gods and Generals CD 01 of 02.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: AVI format
AVI file format detected.
list_end=0x228A
======= AVI Header =======
us/frame: 33366 (fps=29.971)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames total: 202520 initial: 0
streams: 2
Suggested BufferSize: 1048576
Size: 640 x 360
==========================
list_end=0x10F0
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids FCC: XVID (44495658)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 30000/1001 = 29.970
Start: 0 Len: 202520
Suggested BufferSize: 1048576
Quality -1
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 360
biPlanes 1
biBitCount 24
biCompression 1145656920='XVID'
biSizeImage 691200
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x217E
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds FCC: (1)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 1225/32 = 38.281
Start: 0 Len: 258684
Suggested BufferSize: 12288
Quality -1
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 16000
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
==========================================================================
list_end=0x4F8E468C
Found movie at 0x2296 - 0x4F8E468C
Reading INDEX block, 461204 chunks for 202520 frames (fpos=1334724244).
AVI index offset: 0x2292 (movi=0x2296 idx0=0x4 idx1=0xA22)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
AVI: Searching for audio stream (id:1)
XXX initial v_pts=0.100 a_pos=0 (0.000)
AVI video size=1222794219 (202520) audio size=108119353 (258684)
VIDEO: [XVID] 640x360 24bpp 29.970 fps 1447.6 kbps (176.7 kbyte/s)
Auto-selected AVI audio ID = 1
[V] filefmt:3 fourcc:0x44495658 size:640x360 fps:29.970 ftime:=0.0334
get_path('sub/') -> '/home/isaias/.mplayer/sub/'
using /dev/fb0
Can't open /dev/fb0: No such file or directory
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 128 kbit Joint-Stereo, BPF: 417
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Trying every known audio driver...
ao2: 44100 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags: 16/16 (4096 bytes/frag) free: 65536
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Video: no video
Freeing 3 unused video chunks.
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
Uninit audio filters...9.7 (23:10:19.7) 1.0%
[libaf] Removing filter dummy
Uninit audio: mp3lib
vo: x11 uninit called but X11 not initialized..
Offline
Can't open /dev/fb0
Hmm, are you sure you're using a framebuffer console? KMS should give you one, along with a /dev/fb0.
Next step, then: Look at the output of dmesg. Yous should see something like that in there:
Console: switching to colour frame buffer device 128x37
fb0: inteldrmfb frame buffer device
If you don't have that, you haven't set up KMS properly. You should do that. Once you have a fb0, mplayer will work.
Offline
I followed the directions from the Intel ArchWiki page (http://wiki.archlinux.org/index.php/Intel). I don't have fb0 listed in /dev though. I checked dmesg and found "Console: colour VGA+ 80x25" but no "fb0:" line.
Offline