[vlc] VLC 'invalid audio' ?

Ian B. MacDonald imac at netstatz.com
Tue Feb 24 20:55:17 CET 2004


Further to my VLC/V4L issue,

Has anyone ever seen this 'invalid audio'?  I am assuming this is
normal, as the bttv card outputs sound via the line-in of /dev/dsp, not
natively via V4L. This is from the output (shown in full below) of my
vlc startup.

[00000187] v4l input debug: WxH 320x240
[00000187] v4l input debug: main device=`/dev/video'
[00000187] v4l input debug: V4L device BT848A video (STB, Gateway P/N  3
channels 1 audios 48 < w < 768 32 < h < 480
[00000187] v4l input debug: invalid audio, falling back with no audio
[00000187] v4l input debug: setting channel Television(0) 1 tuners
flags=0x3 type=0x1 norm=0x1

On Fri, 2004-02-20 at 17:56, Ian B. MacDonald wrote:
> Hey vlc list,
> 
> My problem: 
> 
> VLC does not start sound output on my V4L device (bttv card). As a
> result, the stream contains encoded 'empty' sound from /dev/dsp.  The
> picture is clear demonstrating that the bttv tuner is fine, and the
> video is being captured by the vlc.
> 
> Normally the sound is heard on /dev/dsp (and external speakers) via an
> internal cable between the bttvcard and the sound card.  Other V4L
> applications that use the bttv card (xawtv) generate sound on /dev/dsp
> without any issues.
> 
> Is the bttv audio (TDA9850) not initiated because the audio device for
> encoding is /dev/dsp?
> 
> Any help with this appreciated,
> Ian.
> 
> 
> My config:
> 
> Debian woody with the vlc packages from sid.
> ii  vlc             0.7.0-3     
> ii  vlc-plugin-alsa 0.7.0-3 
> 
> I have a 2.4.24 configuration, and a 2.6.2 configuration, both dmesgs
> are at the bottom of the email.
> 
> The command I use to initiate the vlc client for streaming from an http
> url:
> 
> vlc -vvv
> v4l2:/dev/video:norm=ntsc:frequency=6356.2:size=320x240:channel=0:adev=/dev/dsp:audio=1 --sout '#transcode{vcodec=mp4v,acodec=a52,vb=250,ab=48,deinterlace}:std{access=http,mux=ts,url=192.168.77.20:8080}' --ttl 12
> 
> Output from the VLC client when starting up:
> 
> VideoLAN Client 0.7.0 Bond
> [00000000] main root debug: VLC media player - version 0.7.0 Bond - (c)
> 1996-2003 VideoLAN
> [00000000] main root debug: libvlc was configured with ./configure
> --mandir=/share/man --infodir=/share/info --enable-release --prefix=/usr
> --enable-gnome --enable-gtk --disable-familiar --disable-fb --enable-ggi
> --enable-sdl --enable-esd --enable-qt --enable-mad --enable-arts
> --enable-alsa --enable-lirc --enable-a52 --enable-aa --enable-dvbpsi
> --enable-xosd --enable-mozilla --enable-kde --enable-mp4 --enable-dvb
> --enable-dv --disable-satellite --enable-ogg --enable-vorbis
> --enable-wxwindows --enable-slp --enable-flac --enable-skins
> --disable-basic-skins --enable-freetype --enable-mkv --enable-v4l
> --enable-pvr --enable-speex --enable-caca --enable-ffmpeg
> --with-ffmpeg-tree=extras/ffmpeg --enable-faad
> --with-faad-tree=extras/faad2 --enable-libmpeg2
> --with-libmpeg2-tree=extras/mpeg2dec --enable-glide --enable-svgalib
> --enable-dvd --without-dvdcss --no-create --no-recursion
> [00000001] main vlc debug: translation test: code is "C"
> [00000001] main vlc debug: opening config file /root/.vlc/vlcrc
> [00000001] main vlc debug: checking builtin modules
> [00000001] main vlc debug: checking plugin modules
> [00000001] main vlc debug: recursively browsing `modules'
> [00000001] main vlc debug: recursively browsing `/usr/lib/vlc'
> [00000001] main vlc debug: recursively browsing `plugins'
> [00000001] main vlc debug: module bank initialized, found 152 modules
> [00000001] main vlc debug: opening config file /root/.vlc/vlcrc
> [00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE
> FPU
> [00000001] main vlc debug: looking for memcpy module
> [00000001] main vlc debug: probing 3 candidates
> [00000010] main module debug: using memcpy module "memcpymmxext"
> [00000185] main playlist debug: Creating group Normal with id 1 at
> position 0
> [00000185] main playlist debug: waiting for thread completion
> [00000185] main playlist debug: thread 1096010672 (playlist) created at
> priority 0 (src/playlist/playlist.c:98)
> [00000186] main interface debug: looking for interface module
> [00000186] main interface debug: probing 1 candidate
> [00000046] main module debug: using interface module "hotkeys"
> [00000186] main interface debug: interface initialized
> [00000186] main interface debug: thread 1104399280 (interface) created
> at priority 0 (src/interface/interface.c:161)
> [00000185] main playlist debug: adding playlist item
> v4l:/dev/video:norm=ntsc:frequency=361250:size=320x240:channel=0:adev=/dev/dsp:audio=1  (v4l:/dev/video:norm=ntsc:frequency=361250:size=320x240:channel=0:adev=/dev/dsp:audio=1)
> [00000185] main playlist debug: creating new input thread
> [00000187] main input: playlist item
> `v4l:/dev/video:norm=ntsc:frequency=361250:size=320x240:channel=0:adev=/dev/dsp:audio=1'
> [00000187] main input debug: waiting for thread completion
> [00000187] main input debug: access `v4l', demux `', name
> `/dev/video:norm=ntsc:frequency=361250:size=320x240:channel=0:adev=/dev/dsp:audio=1'
> [00000188] main stream output debug: stream=`transcode'
> [00000189] main private debug: looking for sout stream module
> [00000189] main private debug: probing 1 candidate
> [00000188] main stream output debug: stream=`std'
> [00000190] main private debug: looking for sout stream module
> [00000190] main private debug: probing 1 candidate
> [00000190] stream_out_standard private debug: creating
> `http/ts://192.168.77.20:8000'
> [00000190] stream_out_standard private debug: extention is 20:8000
> [00000190] stream_out_standard private debug: extention -> mux=(null)
> [00000190] stream_out_standard private debug: using
> `http/ts://192.168.77.20:8000'
> [00000191] main private debug: looking for sout access module
> [00000191] main private debug: probing 1 candidate
> [00000191] access_output_http private: creating new http daemon
> [00000192] main private debug: looking for httpd module
> [00000192] main private debug: probing 1 candidate
> [00000193] httpd private: httpd started
> [00000193] main private debug: thread 1121176496 (httpd thread) created
> at priority 0 (httpd.c:330)[00000192] httpd private: http thread
> launched
> [00000028] main module debug: using httpd module "httpd"
> [00000050] main module debug: using sout access module
> "access_output_http"
> [00000190] stream_out_standard private debug: access opened
> [00000194] main private debug: looking for sout mux module
> [00000194] main private debug: probing 2 candidates
> [00000194] mux_ts_dvbpsi private debug: Open
> [00000194] mux_ts_dvbpsi private debug: caching=200000 pcr=30000
> [00000025] main module debug: using sout mux module "mux_ts_dvbpsi"
> [00000188] main stream output debug: muxer support adding stream at any
> time
> [00000190] stream_out_standard private debug: mux opened
> [00000148] main module debug: using sout stream module
> "stream_out_standard"
> [00000189] stream_out_transcode private debug: codec audio=a52  0Hz 0
> channels 46Kb/s
> [00000189] stream_out_transcode private debug: codec video=mp4v 0x0
> scaling: 1.000000 244kb/s
> [00000015] main module debug: using sout stream module
> "stream_out_transcode"
> [00000187] main input debug: looking for access module
> [00000187] main input debug: probing 8 candidates
> [00000187] v4l input debug: WxH 320x240
> [00000187] v4l input debug: main device=`/dev/video'
> [00000187] v4l input debug: V4L device BT848A video (STB, Gateway P/N  3
> channels 1 audios 48 < w < 768 32 < h < 480
> [00000187] v4l input debug: invalid audio, falling back with no audio
> [00000187] v4l input debug: setting channel Television(0) 1 tuners
> flags=0x3 type=0x1 norm=0x1
> [00000187] main input debug: thread 1112787888 (input) created at
> priority 0 (src/input/input.c:257)
> [00000187] main input debug: cmd=state old=10 new=1
> [00000187] main input debug: playing at normal rate
> [00000195] main interface debug: looking for interface module
> [00000195] main interface debug: probing 3 candidates
> remote control interface initialized, `h' for help
> [00000043] main module debug: using interface module "rc"
> [00000195] main interface debug: interface initialized
> [00000195] main interface debug: thread 1134816176 (manager) created at
> priority 0 (src/interface/interface.c:145)
> [00000187] v4l input debug: frequency 361250 (5780)
> [00000187] v4l input debug: v4l device uses frame size: 307200
> [00000187] v4l input debug: v4l device uses chroma: RV24
> [00000187] v4l input debug: openened adev=`/dev/dsp' stereo 44100Hz
> [00000187] v4l input: v4l grabbing started
> [00000110] main module debug: using access module "v4l"
> [00000187] main input debug: looking for demux module
> [00000187] main input debug: probing 20 candidates
> [00000187] mp4 input warning: MP4 plugin discarded (not a valid file)
> [00000187] avi input warning: avi module discarded (invalid header)
> [00000187] asf input warning: ASF plugin discarded (not a valid file)
> [00000187] v4l input debug: added new video es RV24 320x240
> [00000187] v4l input debug: new audio es 2 channels 44100Hz
> [00000111] main module debug: using demux module "v4l"
> [00000187] main input debug: selecting ES 0x1
> [00000197] main packetizer debug: looking for packetizer module
> [00000197] main packetizer debug: probing 22 candidates
> [00000074] main module debug: using packetizer module "rawvideo"
> [00000197] main packetizer debug: thread 1160244144 (decoder) created at
> priority 0 (src/input/input_dec.c:166)
> [00000187] main input debug: selecting ES 0x2
> [00000198] main packetizer debug: looking for packetizer module
> [00000198] main packetizer debug: probing 22 candidates
> [00000180] main module debug: using packetizer module "packetizer_copy"
> [00000198] main packetizer debug: thread 1168632752 (decoder) created at
> priority 0 (src/input/input_dec.c:166)
> [00000188] main stream output debug: adding a new input
> [00000189] stream_out_transcode private debug: creating video
> transcoding from fcc=`RV24' to fcc=`mp4v'
> [00000199] main encoder debug: looking for encoder module
> [00000199] main encoder debug: probing 10 candidates
> [00000199] ffmpeg encoder debug: libavcodec initialized (interface 4698
> )
> [00000199] ffmpeg encoder debug: found encoder MPEG-4
> [00000014] main module debug: using encoder module "ffmpeg"
> [00000014] main module debug: unlocking module "ffmpeg"
> [00000199] main encoder debug: looking for encoder module
> [00000199] main encoder debug: probing 10 candidates
> [00000199] ffmpeg encoder debug: libavcodec already initialized
> [00000199] ffmpeg encoder debug: found encoder MPEG-4
> [00000014] main module debug: using encoder module "ffmpeg"
> [00000194] main private debug: adding a new input
> [00000194] mux_ts_dvbpsi private debug: adding input codec=mp4v pid=68
> [00000194] mux_ts_dvbpsi private debug: new PCR PID is 68
> [00000188] main stream output debug: adding a new input
> [00000189] stream_out_transcode private debug: creating audio
> transcoding from fcc=`s16l' to fcc=`a52 '
> [00000200] main encoder debug: looking for encoder module
> [00000200] main encoder debug: probing 10 candidates
> [00000200] ffmpeg encoder debug: libavcodec already initialized
> [00000200] ffmpeg encoder debug: found encoder A52 Audio (aka AC3)
> [00000014] main module debug: using encoder module "ffmpeg"
> [00000194] main private debug: adding a new input
> [00000194] mux_ts_dvbpsi private debug: adding input codec=a52  pid=69
> 
> 
> 
> 2.4.24 DMESG:
> i2c-core.o: i2c core module
> i2c-dev.o: i2c /dev entries driver module
> i2c-core.o: driver i2c-dev dummy driver registered.
> i2c-algo-bit.o: i2c bit algorithm module
> i2c-core.o: driver i2c TV tuner driver registered.
> bttv: driver version 0.7.108 loaded
> bttv: using 4 buffers with 2080k (8320k total) for capture
> bttv: Bt8xx card found (0).
> bttv0: Bt848 (rev 18) at 01:0b.0, irq: 18, latency: 132, mmio:
> 0xf4200000
> bttv0: using: STB, Gateway P/N 6000699 (bt848) [card=3,insmod option]
> i2c-dev.o: Registered 'bt848 #0' as minor 0
> tuner: chip found @ 0xc0
> tuner(bttv): type forced to 6 (Temic NTSC (4032 FY5)) [insmod]
> i2c-core.o: client [Temic NTSC (4032 FY5)] registered to adapter [bt848
> #0](pos. 0).
> i2c-core.o: adapter bt848 #0 registered as adapter 0.
> bttv0: using tuner=2
> tuner: type already set (6)
> bttv0: i2c: checking for TDA9875 @ 0xb0... not found
> bttv0: i2c: checking for TDA7432 @ 0x8a... not found
> tvaudio: TV audio decoder + audio/video mux driver
> tvaudio: known chips:
> tda9840,tda9873h,tda9874h/a,tda9850,tda9855,tea6300,tea6420,tda8425,pic16c54 (PV951),ta8874z
> i2c-core.o: driver generic i2c audio driver registered.
> tvaudio: found tda9850 @ 0xb6
> tuner: type already set (6)
> i2c-core.o: client [tda9850] registered to adapter [bt848 #0](pos. 1).
> bttv0: PLL: 28636363 => 35468950 .. ok
> bttv0: registered device video0
> bttv0: registered device vbi0
> bttv0: registered device radio0
> 
> Linux 2.6.2 DMESG Output:
> bttv: driver version 0.9.12 loaded
> bttv: using 8 buffers with 2080k (520 pages) each for capture
> bttv: Bt8xx card found (0).
> bttv0: Bt848 (rev 18) at 0000:01:0b.0, irq: 185, latency: 132, mmio:
> 0xf4200000
> bttv0: using: STB, Gateway P/N 6000699 (bt848) [card=3,insmod option]
> bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
> tuner: chip found @ 0xc0
> tuner: type forced to -1 (<NULL>) [insmod]
> tuner: type set to 6 (Temic NTSC (4032 FY5))
> bttv0: using tuner=2
> tuner: type already set (6)
> bttv0: i2c: checking for TDA9875 @ 0xb0... not found
> bttv0: i2c: checking for TDA7432 @ 0x8a... not found
> tvaudio: TV audio decoder + audio/video mux driver
> tvaudio: known chips:
> tda9840,tda9873h,tda9874h/a,tda9850,tda9855,tea6300,tea6420,tda8425,pic16c54
> (PV951),ta8874z
> tvaudio: found tda9850 @ 0xb6
> tuner: type already set (6)
> bttv0: registered device video0
> bttv0: registered device vbi0
> bttv0: registered device radio0
> bttv0: PLL: 28636363 => 35468950 .. ok
> 
> 

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list