[MPlayer-users] Mplayer getting EOF

Marcos Iuato iuato at samurai.com.br
Wed Apr 25 22:30:55 CEST 2007


Hi,

I am using mencoder and mplayer to do time shifting and it is working 
great. I am recording in a video raw format becouse my hardware is too 
simple to capture from v4l2, encode, record and play at the same time. 
So I had to capture with half resolution, but I am getting some problem 
after some minutes running mencoder to capture and record the video and 
mplayer reading the recorded video and exibiting it, mplayer dies but 
mencoder continues to capture and record.

I have done test recording with -oac pcm and -oac mp3lame, but the 
result is the same, mplayer dies after some time with the same error 
message.

Mencoder command:
mencoder  -tv 
driver=v4l2:width=320:height=240:input=0:normid=3:chanlist=us-bcast:adevice=/dev/dsp2:contrast=10:saturation=0:brightness=-10 
-noidx -noodml -ovc raw -vf crop=320:236,pp=lb,scale=320:240 -oac pcm -o 
$ENV{HOME}/.mplayer/tvfifo -ofps 30000/1001 tv:// -quiet

Mplayer command:
mplayer -ao alsa -framedrop -noautosub -cache 1024 -cache-min 50 -fs -vo 
xv -ni -nobps -


Mencoder and mplayer logs:

Simple mixer control 'Aux',0
   Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
   Capture exclusive group: 0
   Playback channels: Front Left - Front Right
   Capture channels: Front Left - Front Right
   Limits: Playback 0 - 31
   Front Left: Playback 30 [97%] [off] Capture [on]
   Front Right: Playback 30 [97%] [off] Capture [on]
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) M processor         1.20GHz (Family: 6, Model: 
13, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
  name: Video 4 Linux 2 input
  author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
  comment: first try, more to come ;-)
Selected device: SIIG AVTuner-PVR/Prolink PlayTV
  Tuner cap:
  Tuner rxs:
  Capabilites:  video capture  tuner  audio  read/write  streaming
  supported norms: 0 = PAL-BG; 1 = PAL-DK; 2 = PAL-I; 3 = PAL-M;
  inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
  Current input: 0
  Current format: YUYV
v4l2: current audio mode is : MONO
v4l2: ioctl query control failed: Invalid argument
[V] filefmt:9  fourcc:0x32595559  size:320x240  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=320 h=240]
Opening video filter: [pp=lb]
Opening video filter: [crop w=320 h=236]
Crop: 320 x 236, -1 ; -1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Packed YUY2)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
[swscaler @ 0x836c4d0]SwScaler: BICUBIC scaler, from yuyv422 to yuv444p 
using MMX2
[swscaler @ 0x836c4d0]SwScaler: using 4-tap MMX scaler for horizontal 
luminance scaling
[swscaler @ 0x836c4d0]SwScaler: using 4-tap MMX scaler for horizontal 
chrominance scaling
[swscaler @ 0x836c4d0]SwScaler: using 1-tap MMX "scaler" for vertical 
scaling (YV12 like)
[swscaler @ 0x836c4d0]SwScaler: 320x240 -> 320x240
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
MP3 audio selected.
Forcing audio preload to 0, max pts correction to 0.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...
ODML: vprp aspect is 16384:12098.
Writing header...
ODML: vprp aspect is 16384:12098.
MPlayer 1.0rc1-4.1.2-DFSG-free (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) M processor         1.20GHz (Family: 6, Model: 
13, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/var/lib/sdm/.mplayer/codecs.conf'
Reading /var/lib/sdm/.mplayer/codecs.conf: Can't open 
'/var/lib/sdm/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': 
No such file or directory
Using built-in default codecs.conf.
CommandLine: '-ao' 'alsa' '-noautosub' '-cache' '10240' '-cache-min' 
'99' '-fs' '-vo' 'xv' '-v' '-'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/var/lib/sdm/.mplayer/input.conf'
Can't open input config file /var/lib/sdm/.mplayer/input.conf: No such 
file or directory
Can't open input config file /etc/mplayer/input.conf: No such file or 
directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not open config files /var/lib/sdm/.lircrc and 
/etc/lirc//lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
get_path('-.conf') -> '/var/lib/sdm/.mplayer/-.conf'

Playing -.
Reading from stdin...
[file] File size is -1 bytes
STREAM: [file] -
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 2187264  pre:10380902  eof:0
Cache fill: 94.06% (9863168 bytes)
AVI file format detected.
list_end=0x192
======= AVI Header =======
us/frame: 33366  (fps=29.971)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2304) IS_INTERLEAVED TRUST_CKTYPE
frames  total: 0   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  320 x 240
==========================
list_end=0x120
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: 444P (50343434)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 30000/1001 = 29.970
Start: 0   Len: 1
Suggested BufferSize: 0
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
   biSize 40
   biWidth 320
   biHeight 240
   biPlanes 3
   biBitCount 24
   biCompression 1345598516='444P'
   biSizeImage 230400
===========================
======= Video Properties Header =======
Format: 0  VideoStandard: 0
VRefresh: 30  HTotal: 320  VTotal: 240
FrameAspect: 16384:12098  Framewidth: 320  Frameheight: 240
Fields: 1
   == Field 0 description ==
   CompressedBMHeight: 240  CompressedBMWidth: 320
   ValidBMHeight: 240  ValidBMWidth: 320
   ValidBMXOffset: 0  ValidBMYOffset: 0
   VideoXOffsetInT: 0  VideoYValidStartLine: 0
=======================================
list_end=0x192
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC: U (55)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 44100/1152 = 38.281
Start: 0   Len: 0
Suggested BufferSize: 0
Quality 0
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 1
Samplerate: 44100
avg byte/sec: 6000
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x1C6
hdr=Software  size=32
Software  : MEncoder dev-SVN-rUNKNOWN-4.1.2
list_end=0x0
Found movie at 0x100C - 0x0
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:-1)
Auto-selected AVI audio ID = 1
XXX initial  v_pts=0.000  a_pos=0 (0.000)
Could not determine number of frames (for absolute seek).
AVI video size=4294963188 (0)  audio size=0
VIDEO:  [444P]  320x240  24bpp  29.970 fps  -17179870.0 kbps (-2097152.0 
kbyte/s)
[V] filefmt:3  fourcc:0x50343434  size:320x240  fps:29.97  ftime:=0.0334
Clip info:
  Software: MEncoder dev-SVN-rUNKNOWN-4.1.2
X11 opening display: :0.1
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 800x600 with depth 16 and 16 bpp (":0.1" => local 
display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 1536x1080
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Planar 444P)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using Planar 444P as output csp (no 0)
Movie-Aspect is 1.35:1 - prescaling to correct movie aspect.
VO Config (320x240->326x240,flags=1,'MPlayer',0x50343434)
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from yuv444p to yuv420p using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 8-tap MMX scaler for horizontal chrominance scaling
SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
SwScaler: 320x240 -> 320x240
REQ: flags=0x437  req=0x0
VO: [xv] 320x240 => 326x240 Planar YV12  [fs]
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x35315652 (RV15) packed
Xvideo image format: 0x36315652 (RV16) packed
Xvideo image format: 0x55595659 (YVYU) packed
Xvideo image format: 0x3231564e (NV12) planar
Xvideo image format: 0x3132564e (NV21) planar
using Xvideo port 97 for hw scaling
[xv-fs] dx: 0 dy: 6 dw: 800 dh: 588
[xv] dx: 0 dy: 6 dw: 800 dh: 588
Selected video codec: [raw444P] vfm: raw (RAW 444P)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 48 kbit Single-Channel, BPF: 156
Channels: 1, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6000->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
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.13
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opend in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little 
Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 44100Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[libaf] Adding filter lavcresample
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
[libaf] Reallocating memory in module lavcresample, old len = 0, new len 
= 65536
*** [scale] Exporting mp_image_t, 320x240x24bpp YUV planar, 230400 bytes
*** [vo] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
Unicode font: 255 glyphs.
[xv] dx: 0 dy: 0 dw: 800 dh: 600
[xv-fs] dx: 0 dy: 6 dw: 800 dh: 588
A:  18.4 V:  18.5 A-V: -0.007 ct:  0.001 554/554  0%  5%  3.7% 3 0 45%
ds_fill_buffer: EOF reached (stream: audio)  5/18615  0%  4%  3.7% 8 0 30%
ds_fill_buffer: EOF reached (stream: audio)
ds_fill_buffer: EOF reached (stream: audio)  6/18616  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  7/18617  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  8/18618  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  9/18619  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  0/18620  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  1/18621  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  2/18622  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  3/18623  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  4/18624  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: audio)  5/18625  0%  4%  3.7% 8 0 28%
ds_fill_buffer: EOF reached (stream: video)
EOF code: 1  21.4 A-V:  0.006 ct:  0.005 18625/18625  0%  4%  3.7% 8 0 28%

Uninit audio filters...
[libaf] Removing filter lavcresample
[libaf] Removing filter dummy
Uninit audio: mp3lib
Uninit video: raw
alsa-uninit: pcm closed
vo: uninit ...

Exiting... (End of file)

Why mplayer is geeting EOF? Mplayer is getting EOF but mencoder was 
still running generating streaming for mplayer, so what could possible 
generate this eof?

Thanks in advance,
Marcos Iuato





More information about the MPlayer-users mailing list