[MPlayer-users] Mencoder ignores the audio

Oscar Sundbom oscar at moosecomrade.mine.nu
Tue Nov 11 03:08:04 CET 2003


Hi.

I've been using MPlayer for quite a while now and have, in mencoder, actually found a piece of software that
will allow me to capture (and compress) video from my GeForce2 and audio in real time without any jerkiness.
For some reason, no windows drivers since Win98 have worked well - always something breaking up the frame-
rate, not CPU inflicted - but mencoder manages it. Anyhow, I'm straying.

My problem is this: that's how it used to be. Once, for probably well over a year ago I could capture video
and audio with mencoder but now, that is no longer the case.

For some strange reason, mencoder does not want to have anything to do with my sound. It's not that it encodes
it but all I get is silence. It's not that it can't open the device. It's not that it doesn't capture it. It
seems to just plain ignore using the audio it grabs.

I've included a (somewhat trimmed down) mencoder output log that probably explains it all much better than I will.

I launched mencoder with:
mencoder -tv on:driver=v4l:width=352:height=288:audiorate=44100:adevice=sblive:amode=0:alsa:input=0:forceaudio -ovc lavc -lavcopts vcodec=mpeg4 -oac pcm -v -v > mencoder.log 2>&1

And I configured mplayer with (1.0pre2 but also earlier versions from the past year or so):
./configure --with-livelibdir=/usr/local/lib/live/ --with-reallibdir=/usr/lib/codecs/ --with-win32libdir=/usr/lib/codecs --with-xanimlibdir=/usr/lib/codecs --with-xvidcore=/usr/local/lib/libxvidcore.a --enable-liblzo --enable-live --enable-gui --enable-linux-devfs --enable-menu


I hope there's someone out there who can shed some light on what I'm missing. This is driving me up the walls.

Thanks in advance.
Oscar


mencoder.log:

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MEncoder 0.90rc5-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /root/.mplayer/codecs.conf: 50 audio & 136 video codecs
File not found: 'frameno.avi'
Reading config file /root/.mplayer/mencoder: Filen eller katalogen finns inte
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
success: format: 0  data: 0x0 - 0x0
s->pos=0  newpos=0  new_bufpos=0  buflen=0  
TV detected! ;-)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi <alex at naxine.org>
 comment: under development
Video fd: 3, 8ccc948
Selected device: rivatv video
 Capabilites: capture overlay chromakey 
 Device type: 25
 Supported sizes: 64x32 => 704x576
 Inputs: 2
  0: Composite:  (tuner:0, norm:auto)
  1: S-Video:  (tuner:0, norm:auto)
mbuf: size=3317760, frames=2
our buffer: 0x408f3000
Hardware PCM card 0 'Sound Blaster Live!' device 0 subdevice 0

Its setup is:
stream       : CAPTURE
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 2
rate         : 44100
exact rate   : 44100 (44100/1)
msbits       : 16
buffer_size  : 16384
period_size  : 8192
period_time  : 185759
tick_time    : 2500
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 8192
xfer_align   : 8192
start_threshold  : 0
stop_threshold   : 16384
silence_threshold: 0
silence_size : 0
boundary     : 1073741824
Audio capture - buffer 256 blocks of 32768 bytes, skew average from 16 meas.

debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

debug: control(priv=0x8cdaa00, cmd=264, arg=0xbfffe13c)

debug: control(priv=0x8cdaa00, cmd=1026, arg=0x83cf2f4)
Using input 'Composite'

debug: control(priv=0x8cdaa00, cmd=515, arg=(nil))
Tuner (Television) range: 704 -> 15328

debug: control(priv=0x8cdaa00, cmd=1025, arg=0xbfffe074)
Selected norm: pal

debug: control(priv=0x8cdaa00, cmd=518, arg=0x8cda9e8)

debug: control(priv=0x8cdaa00, cmd=272, arg=0x83cf2ec)
Requested width: 352

debug: control(priv=0x8cdaa00, cmd=273, arg=0x83cf2ec)

debug: control(priv=0x8cdaa00, cmd=275, arg=0x83cf2f0)
Requested height: 288

debug: control(priv=0x8cdaa00, cmd=276, arg=0x83cf2f0)

debug: control(priv=0x8cdaa00, cmd=3, arg=(nil))
Selected input hasn't got a tuner!
==> Found video stream: 0

debug: control(priv=0x8cdaa00, cmd=262, arg=0x8ce2700)
Output format: Planar YV12

debug: control(priv=0x8cdaa00, cmd=257, arg=0xbfffe178)

debug: control(priv=0x8cdaa00, cmd=265, arg=0x8ce272c)

debug: control(priv=0x8cdaa00, cmd=274, arg=0x8ce2730)

debug: control(priv=0x8cdaa00, cmd=1, arg=(nil))
Picture values:
 Depth: 12, Palette: yuv420p (Format: Planar YV12)
 Brightness: 32768, Hue: 32768, Colour: 32768, Contrast: 32768
buffer: 0 => 0x8cdaea8
buffer: 1 => 0x8cdaeb8
Audio capture - buffer 256 blocks of 32768 bytes, skew average from 16 meas.
Using a ring buffer for maximum 1295 frames, 187 MB total size.
[V] filefmt:9  fourcc:0x32315659  size:352x288  fps:25,00  ftime:=0,0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
Trying filter chain: expand lavc
vo_debug: query(Planar YV12) returned 0x401 (i=0) 
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (352x288->352x288,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0  
videocodec: libavcodec (352x288 fourcc=58564944 [DIVX])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Forcing audio preload to 0, max pts correction to 0
Writing AVI header...

debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = -1,000000, interval = 0,000000, a_skew = 0,000000, corr_skew = 0,000000
vcnt = 0, acnt = 0

debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 24,935169, interval = 0,040104, a_skew = 0,000000, corr_skew = 0,000000
vcnt = 0, acnt = 0
*** [expand] Exporting mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
(imgfmt: 32315659, planes: 0,0,0 strides: 0,0,0, chroma: 176x144, shift: h:1,v:1)
*** [lavc] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
(imgfmt: 32315659, planes: 42754040,42772f40,4276cc40 strides: 352,176,176, chroma: 176x144, shift: h:1,v:1)
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
Unicode font: 1185 glyphs.

fps = 24,491795, interval = 0,080934, a_skew = 0,000000, corr_skew = 0,000000
vcnt = 0, acnt = 0
OSD chg: 3  V: no  pb:-1  
OSD chg: 2  V: no  pb:-1  
Pos:   0,0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/21 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 24,568214, interval = 0,121637, a_skew = 0,000000, corr_skew = 0,000000
vcnt = 0, acnt = 0
Pos:   0,1s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/23 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))
Pos:   0,1s      3f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/19 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 26,062707, interval = 0,160006, a_skew = 0,000000, corr_skew = 0,000000
vcnt = 0, acnt = 0
Pos:   0,2s      4f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/17 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 24,825600, interval = 0,200287, a_skew = 0,015396, corr_skew = 0,015396
vcnt = 0, acnt = 1
Pos:   0,2s      5f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/15 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,164830, interval = 0,240025, a_skew = 0,015396, corr_skew = 0,015396
vcnt = 0, acnt = 1
Pos:   0,2s      6f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/14 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,016261, interval = 0,279999, a_skew = 0,015396, corr_skew = 0,015396
vcnt = 0, acnt = 1
Pos:   0,3s      7f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/13 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 24,968166, interval = 0,320050, a_skew = 0,015396, corr_skew = 0,015396
vcnt = 0, acnt = 1
Pos:   0,3s      8f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/12 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,014383, interval = 0,360027, a_skew = 0,015396, corr_skew = 0,015396
vcnt = 0, acnt = 1
Pos:   0,4s      9f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/11 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,009379, interval = 0,400012, a_skew = 0,007790, corr_skew = 0,007790
vcnt = 0, acnt = 2
Pos:   0,4s     10f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/11 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,006252, interval = 0,440002, a_skew = 0,006267, corr_skew = 0,006267
vcnt = 0, acnt = 2
Pos:   0,4s     11f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/11 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 24,995626, interval = 0,480009, a_skew = 0,004744, corr_skew = 0,004744
vcnt = 0, acnt = 2
Pos:   0,5s     12f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/10 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,006252, interval = 0,519999, a_skew = 0,003221, corr_skew = 0,003221
vcnt = 0, acnt = 2
Pos:   0,5s     13f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/10 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 24,816359, interval = 0,560295, a_skew = 0,007388, corr_skew = 0,007388
vcnt = 0, acnt = 3
Pos:   0,6s     14f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/10 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,174966, interval = 0,600017, a_skew = 0,007083, corr_skew = 0,007083
vcnt = 0, acnt = 3
Pos:   0,6s     15f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] A/Vms 0/9 D/B/S 0/0/0 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

<snip...>

fps = 25,002500, interval = 48,081100, a_skew = -0,002162, corr_skew = -0,002162
vcnt = 0, acnt = 255
Pos:  48,1s   1203f ( 0%)  25fps Trem:   0min   0mb  A-V:0,000 [172:0] A/Vms 0/6 D/B/S 0/1/1 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

too bad - dropping audio frame !

fps = 24,757378, interval = 48,121492, a_skew = -0,000561, corr_skew = -0,000561
vcnt = 0, acnt = 255
Pos:  48,1s   1204f ( 0%)  25fps Trem:   0min   0mb  A-V:0,000 [172:0] A/Vms 0/6 D/B/S 0/1/1 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,252525, interval = 48,161092, a_skew = -0,000377, corr_skew = -0,000377
vcnt = 0, acnt = 255
Pos:  48,2s   1205f ( 0%)  25fps Trem:   0min   0mb  A-V:0,000 [172:0] A/Vms 0/6 D/B/S 0/1/1 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 24,995001, interval = 48,201100, a_skew = -0,000192, corr_skew = -0,000192
vcnt = 0, acnt = 255
Pos:  48,2s   1206f ( 0%)  25fps Trem:   0min   0mb  A-V:0,000 [173:0] A/Vms 0/6 D/B/S 0/1/1 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 24,991253, interval = 48,241114, a_skew = -0,000006, corr_skew = -0,000006
vcnt = 0, acnt = 255
Pos:  48,2s   1207f ( 0%)  25fps Trem:   0min   0mb  A-V:0,000 [173:0] A/Vms 0/6 D/B/S 0/1/1 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

fps = 25,014383, interval = 48,281091, a_skew = 0,000178, corr_skew = 0,000178
vcnt = 0, acnt = 255
Pos:  48,3s   1208f ( 0%)  25fps Trem:   0min   0mb  A-V:0,000 [173:0] A/Vms 0/6 D/B/S 0/1/1 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

too bad - dropping audio frame !

fps = 25,003751, interval = 48,321085, a_skew = -0,000653, corr_skew = -0,000653
vcnt = 0, acnt = 255
Pos:  48,3s   1209f ( 0%)  25fps Trem:   0min   0mb  A-V:0,000 [173:0] A/Vms 0/6 D/B/S 0/1/1 
debug: control(priv=0x8cdaa00, cmd=2, arg=(nil))

<snip...>

<Then I give it a CTRL+C and...>

Writing AVI index...
Fixing AVI header...

Video stream:  184,710 kbit/s  (23088 bps)  size: 1739044 bytes  75,320 secs  1884 frames
uninit video: raw
DEMUXER: freeing demuxer at 0x8cd9fe8  
Waiting for threads to finish... 
fps = 25,000625, interval = 75,361731, a_skew = -0,005337, corr_skew = -0,005337
vcnt = 0, acnt = 255

too bad - dropping audio frame !
done
DEMUXER: freeing sh_video at 0x8ce26f8  



More information about the MPlayer-users mailing list