[MPlayer-users] No sound/no audio bt878 with mencoder

Steve sec at braingia.org
Thu Sep 18 05:20:41 CEST 2003


Hello,

I've search google and the archives for assistance and have so far come up 
empty.  I'm troubleshooting a problem where I get no sound with an 
mencoder captured file.  When viewing tv through xawtv, I get audio fine 
but I can't figure out the correct options to give to mencoder to get 
sound within a captured/recorded file.  The video comes through fine.

I have an AverMedia TVCapture 98 card with the audio connected directly to 
the card.  When insmod'ing the module, the card is detected correctly.  I 
have bttv, tuner, and tvaudio modules loaded.

Here's the latest command line that I've tried:

/usr/local/bin/mencoder -tv 
on:driver=v4l:device=/dev/video:norm=NTSC:width=640:
height=480:input=1:forceaudio:forcechan=2 -oac mp3lame \
-ovc lavc -lameopts vbr=0 -lavcopts vcodec=mpeg4 -vop pp=lb \ 
 -endpos $1 -o $f.avi

Here's the output from a command with the -v option.  May be more verbose 
than necessary, but I'd rather include it than not.  Thanks for any help.


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


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

CPU: Intel  (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Reading /home/suehring/.mplayer/codecs.conf: can't open 
'/home/suehring/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 136 video codecs
File not found: 'frameno.avi'
Reading config file /home/suehring/.mplayer/mencoder: No such file or 
directory
get_path('font/font.desc') -> '/home/suehring/.mplayer/font/font.desc'
font: can't open file: /home/suehring/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
success: format: 0  data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi <alex at naxine.org>
 comment: under development
Selected device: BT878(AVerMedia TVCapture 98)
 Capabilites: capture tuner overlay clipping frameram scales
 Device type: 235
 Supported sizes: 48x32 => 768x480
 Inputs: 3
  0: Television: tuner audio tv camera  (tuner:1, norm:ntsc)
  1: Composite1: audio camera  (tuner:0, norm:ntsc)
  2: S-Video: audio camera  (tuner:0, norm:ntsc)
mbuf: size=8519680, frames=4
 Audio devices: 4
Video capture card reports the audio setup as follows:
  0: TV: muted=no vol=0 bass=0 treble=0 balance=0 mode=mono chan=1
  0: TV: muted=no vol=0 bass=0 treble=0 balance=0 mode=mono chan=1
  0: TV: muted=no vol=0 bass=0 treble=0 balance=0 mode=mono chan=1
  0: TV: muted=no vol=0 bass=0 treble=0 balance=0 mode=mono chan=1
ioctl dsp getfmt: 0
Supported formats: 18
ioctl dsp setfmt: 0
ioctl dsp stereo: 0 (req: 1)
ioctl dsp speed: 0
ioctl dsp trigger: 0
trigger: 0
ioctl dsp trigger: 0
ioctl dsp getblocksize: 0
blocksize: 1024
audio block size too low, setting to 16384!
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 
meas.
Using input 'Composite1'
Selected norm: NTSC
Requested width: 640
Requested height: 480
Selected input hasn't got a tuner!
==> Found video stream: 0
Output format: Planar YV12
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 
meas.
==> Found audio stream: 0
  TV audio: 2 channels, 16 bits, 44100 Hz
Picture values:
 Depth: 12, Palette: yuv420p (Format: Planar YV12)
 Brightness: 32768, Hue: 32768, Colour: 32512, Contrast: 27648
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 
meas.
Using a ring buffer for maximum 571 frames, 250 MB total size.
Enabling tv audio. Requested setup is:
id=0 vol=60000 bass=0 treble=0 balance=0 mode=mono chan=2
[V] filefmt:9  fourcc:0x32315659  size:640x480  fps:29.00  ftime:=0.0345
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 176400->176400 (1411.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [pp=lb]
[expand] query(Planar YV12) -> 1
[expand] query(Planar I420) -> 1
[expand] query(Planar IYUV) -> 1
[expand] query(Planar 444P) -> 0
[expand] query(Planar 422P) -> 0
[expand] query(Planar 411P) -> 0
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0
REQ: flags=0x401  req=0x0
videocodec: libavcodec (640x480 fourcc=58564944 [DIVX])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
MP3 audio selected
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and 
bps = 2
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and 
bps = 2
Writing AVI header...
LAME version 3.93 MMX  (http://www.mp3dev.org/)
CPU features: i387, MMX (ASM used), SIMD, SIMD2
Using polyphase lowpass  filter, transition band: 15115 Hz - 15648 Hz

misc:

        scaling: 0.000000
        ch0 (left) scaling: 0.000000
        ch1 (right) scaling: 0.000000
        filter type: 0
        quantization: ISO
        huffman search: normal
        experimental X=0 Y=0 Z=0
        ...

stream format:

        MPEG-1 Layer 3
        2 channel - joint stereo
        padding: auto
        constant bitrate - CBR
        ...

psychoacoustic:

        tonality estimation limit: 8871.700195 Hz
        using short blocks: channel coupled
        adjust masking: 0.000000 dB
        psymodel: 1
        noise shaping: 1
         ^ amplification: 0
         ^ stopping: 0
        ATH: using
         ^ type: 2
         ^ adjust type: 0
         ^ adapt threshold type: 2
        using temporal masking effect: yes
        interchannel masking ratio: 0.000000
        ...

Forcing audio preload to 0, max pts correction to 0
*** [pp] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [lavc] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [expand] Direct Rendering mp_image_t, 640x480x12bpp YUV planar, 460800 
bytes

<snip>

CBR audio: 16000 bytes/sec, 418 bytes/block

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

Video stream: 1178.862 kbit/s  (147357 bps)  size: 152439 bytes  1.034 
secs  30 frames

Audio stream:  127.997 kbit/s  (15999 bps)  size: 16300 bytes  1.019 secs
uninit video: raw
DEMUXER: freeing demuxer at 0x8374a68
Waiting for threads to finish... done
DEMUXER: freeing sh_audio at 0x8375408
DEMUXER: freeing sh_video at 0x83759e0




More information about the MPlayer-users mailing list