no sound from capture card stream

About encoding, codec settings, muxers and filter usage
raden
Blank Cone
Blank Cone
Posts: 20
Joined: 09 Jul 2006 14:55
Location: Indonesia
Contact:

no sound from capture card stream

Postby raden » 13 Jul 2006 10:50

hello

I have a problem since use vlc on debian sarge, this is command that i ran from console

vlc v4l:/dev/video:adev=/dev/dsp:norm=0:frequency=567250
:sout="#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}
:standard{access=udp,mux=ts,url=239.255.255.255:1234}"

and the client side no sound can hear only the video

please help me to solve this problem

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 13 Jul 2006 21:29

Obvious questions:
does it work localy ? (without streaming)
could you paste debug output from VLC on both the server and the client? (add -vvv --color to the command line)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

raden
Blank Cone
Blank Cone
Posts: 20
Joined: 09 Jul 2006 14:55
Location: Indonesia
Contact:

Postby raden » 14 Jul 2006 10:33

This is the the debug output when am playing locally, but if I play movie file the sound and video can out properly

vlc -vvv --color v4l:/dev/video:adev=/dev/dsp:norm=0:frequency=583250 :sout-all
VLC media player 0.8.2-svn Janus
[00000001] main vlc debug: opening config file /home/alifaiq/.vlc/vlcrc
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /home/alifaiq/.vlc/cache/plugins-04041e.dat
[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 198 modules
libhal.c 767 : org.freedesktop.DBus.Error.ServiceDoesNotExist raised
"Service "org.freedesktop.Hal" does not exist"

[00000001] main vlc debug: opening config file /home/alifaiq/.vlc/vlcrc
[00000000] main root debug: VLC media player - version 0.8.2-svn Janus - (c) 1996-2005 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure --mandir=/share/man --infodir=/share/info --enable-release --prefix=/usr --disable-gnome --disable-gtk --disable-familiar --disable-fb --enable-ggi --enable-sdl --enable-esd --disable-qt --enable-mad --enable-arts --enable-alsa --enable-lirc --enable-a52 --enable-aa --enable-dvbpsi --enable-xosd --enable-mozilla --disable-kde --enable-mp4 --enable-dvb --enable-dv --disable-satellite --enable-ogg --enable-vorbis --enable-wxwindows --with-wx-config=wxgtk-2.4-config --disable-slp --enable-flac --disable-skins --disable-basic-skins --enable-skins2 --enable-freetype --enable-mkv --enable-v4l --enable-pvr --disable-speex --enable-caca --enable-livedotcom --enable-libmpeg2 --enable-dts --enable-fribidi --enable-cdio --enable-mod --enable-theora --enable-modplug --enable-dvdnav --enable-gnutls --enable-ffmpeg --enable-ncurses --enable-faad --with-faad-tree=extras/faad2 --enable-x264 --with-x264-tree=extras/x264 --enable-glide --enable-svgalib --enable-dvd --without-dvdcss
[00000001] main vlc debug: translation test: code is "en_GB"
[00000001] main vlc debug: opening config file /home/alifaiq/.vlc/vlcrc
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file /home/alifaiq/.vlc/cache/plugins-04041e.dat
[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 198 modules
[00000001] main vlc debug: opening config file /home/alifaiq/.vlc/vlcrc
[00000001] main vlc debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE FPU
[00000001] main vlc debug: looking for memcpy module: 4 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000246] main playlist debug: waiting for thread completion
[00000246] main playlist debug: thread 16386 (playlist) created at priority 0 (src/playlist/playlist.c:149)
[00000247] main private debug: waiting for thread completion
[00000247] main private debug: thread 32771 (preparser) created at priority 0 (src/playlist/playlist.c:171)
[00000248] main interface debug: looking for interface module: 1 candidate
[00000131] main module debug: using interface module "hotkeys"
[00000248] main interface debug: interface initialized
[00000248] main interface debug: thread 49156 (interface) created at priority 0 (src/interface/interface.c:211)
[00000246] main playlist: adding playlist item `v4l:/dev/video:adev=/dev/dsp:norm=0:frequency=583250' ( v4l:/dev/video:adev=/dev/dsp:norm=0:frequency=583250 )
[00000250] main interface debug: looking for interface module: 5 candidates
[00000035] main module debug: using interface module "wxwindows"
[00000250] main interface debug: interface initialized
[00000250] main interface debug: thread 65541 (manager) created at priority 0 (src/interface/interface.c:196)
[00000246] main playlist debug: creating new input thread
[00000253] main input debug: set input option: sout-all to true
[00000253] main input debug: waiting for thread completion
[00000253] main input debug: thread 81926 (input) created at priority 0 (src/input/input.c:227)
[00000253] main input debug: `v4l:/dev/video:adev=/dev/dsp:norm=0:frequency=583250' gives access `v4l' demux `' path `/dev/video:adev=/dev/dsp:norm=0:frequency=583250'
[00000253] main input debug: creating demux: access='v4l' demux='' path='/dev/video:adev=/dev/dsp:norm=0:frequency=583250'
[00000254] main demuxer debug: looking for access_demux module: 1 candidate
[00000254] v4l demuxer debug: main device=`/dev/video'
[00000254] v4l demuxer debug: V4L device bttv video 4 channels 1 audios 48 < w < 924 32 < h < 576
[00000254] v4l demuxer debug: invalid width 0
[00000254] v4l demuxer debug: invalid height 0
[00000254] v4l demuxer debug: setting channel Television(0) 1 tuners flags=0x3 type=0x1 norm=0x0
[00000254] v4l demuxer debug: frequency 583250 (9332)
[00000254] v4l demuxer debug: will use 384x288
[00000254] v4l demuxer debug: v4l device uses brightness: 32767
[00000254] v4l demuxer debug: v4l device uses colour: 25251
[00000254] v4l demuxer debug: v4l device uses hue: 32767
[00000254] v4l demuxer debug: v4l device uses contrast: 27524
[00000254] v4l demuxer debug: v4l device uses frame size: 165888
[00000254] v4l demuxer debug: v4l device uses chroma: I420
[00000254] v4l demuxer debug: openened adev=`/dev/dsp' stereo 44100Hz
[00000254] v4l demuxer debug: v4l grabbing started
[00000254] v4l demuxer debug: added new video es I420 384x288
[00000253] main input debug: selecting program id=0
[00000254] v4l demuxer debug: new audio es 2 channels 44100Hz
[00000029] main module debug: using access_demux module "v4l"
[00000256] main decoder debug: looking for decoder module: 21 candidates
[00000110] main module debug: using decoder module "rawvideo"
[00000256] main decoder debug: thread 98311 (decoder) created at priority 0 (src/input/decoder.c:159)
[00000293] main decoder debug: looking for decoder module: 21 candidates
[00000293] araw decoder debug: samplerate:44100Hz channels:2 bits/sample:16
[00000112] main module debug: using decoder module "araw"
[00000293] main decoder debug: thread 114696 (decoder) created at priority 0 (src/input/decoder.c:159)
[00000253] main input debug: `v4l:/dev/video:adev=/dev/dsp:norm=0:frequency=583250' sucessfully opened
[00000256] main decoder debug: no usable vout present, spawning one
[00000294] main video output debug: looking for video output module: 6 candidates
[00000295] main private debug: Registering subpicture channel, ID: 2
[00000295] main private debug: Registering subpicture channel, ID: 3
[00000295] main private debug: Registering subpicture channel, ID: 4
[00000295] main private debug: Registering subpicture channel, ID: 5
[00000293] main decoder debug: no aout present, spawning one
[00000297] main audio output debug: looking for audio output module: 3 candidates
[00000297] oss audio output error: cannot open audio device (/dev/dsp)
[00000088] main module debug: using audio output module "esd"
[00000297] main audio output debug: output 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
[00000297] main audio output debug: mixer 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
[00000297] main audio output debug: filter(s) 'fl32'->'s16l' 44100 Hz->44100 Hz Stereo->Stereo
[00000299] main private debug: looking for audio filter module: 23 candidates
[00000067] main module debug: using audio filter module "float32tos16"
[00000297] main audio output debug: found a filter for the whole conversion
[00000297] main audio output debug: looking for audio mixer module: 3 candidates
[00000083] main module debug: using audio mixer module "trivial_mixer"
[00000297] main audio output debug: input 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
[00000297] main audio output debug: filter(s) 's16l'->'fl32' 44100 Hz->44100 Hz Stereo->Stereo
[00000322] main private debug: looking for audio filter module: 23 candidates
[00000073] main module debug: using audio filter module "s16tofloat32"
[00000297] main audio output debug: found a filter for the whole conversion
[00000297] main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo
[00000327] main private debug: looking for audio filter module: 23 candidates
[00000059] main module debug: using audio filter module "bandlimited_resampler"
[00000297] main audio output debug: found a filter for the whole conversion
[00000297] main audio output warning: audio drift is too big (-141656), clearing out
[00000297] main audio output warning: audio drift is too big (-125909), clearing out
[00000297] main audio output warning: audio drift is too big (-128383), clearing out
[00000294] xvideo video output debug: adaptor 0, port 61, format 0x32315659 (YV12) planar
[00000297] main audio output warning: audio drift is too big (-130689), clearing out
[00000297] main audio output warning: audio drift is too big (-133617), clearing out
[00000297] main audio output warning: audio drift is too big (-135314), clearing out
[00000294] xvideo video output debug: Window manager supports NetWM
[00000294] xvideo video output debug: Window manager supports _NET_WM_STATE_FULLSCREEN
[00000294] xvideo video output debug: Window manager supports _NET_WM_STATE_ABOVE
[00000294] xvideo video output debug: Window manager supports _NET_WM_STATE_BELOW
[00000222] main module debug: using video output module "xvideo"
[00000294] main video output debug: waiting for thread completion
[00000297] main audio output warning: audio drift is too big (-126707), clearing out
[00000297] main audio output warning: audio drift is too big (-128334), clearing out
[00000294] main video output debug: got 8 direct buffer(s)
[00000294] main video output debug: picture in 384x288 (0,0,384x288), chroma I420, ar 4:3, sar 1:1
[00000294] main video output debug: picture user 384x288 (0,0,384x288), chroma I420, ar 4:3, sar 1:1
[00000294] main video output debug: picture out 384x288, chroma I420, ar 4:3, sar 1:1
[00000294] main video output debug: direct render, mapping render pictures 0-6 to system pictures 1-7
[00000294] main video output debug: thread 131081 (video output) created at priority 0 (src/video_output/video_output.c:451)
[00000297] main audio output warning: buffer is 108634 in advance, triggering downsampling
[00000294] main video output warning: late picture skipped (1336260)
[00000294] main video output warning: late picture skipped (1175796)
[00000294] main video output warning: late picture skipped (1174049)
[00000294] main video output warning: late picture skipped (1008523)
[00000294] main video output warning: late picture skipped (1007208)
[00000294] main video output warning: late picture skipped (848038)
[00000294] main video output warning: late picture skipped (846323)
[00000294] main video output warning: late picture skipped (749233)
[00000294] main video output warning: late picture skipped (747748)
[00000294] main video output warning: late picture skipped (588757)
[00000294] main video output warning: late picture skipped (587431)
[00000294] main video output warning: late picture skipped (427883)
[00000294] main video output warning: late picture skipped (426612)
[00000294] main video output warning: late picture skipped (267842)
[00000297] main audio output warning: audio drift is too big (-216213), clearing out
[00000297] main audio output warning: timing screwed, stopping resampling
[00000297] main audio output warning: audio drift is too big (-215946), clearing out
[00000294] main video output warning: late picture skipped (364301)
[00000294] main video output warning: late picture skipped (205160)
[00000294] main video output warning: late picture skipped (203668)
[00000294] main video output warning: late picture skipped (44832)
[00000294] main video output warning: late picture skipped (43539)
[00000297] main audio output warning: buffer is 44835 in advance, triggering downsampling
[00000294] main video output warning: late picture skipped (62534)
[00000297] main audio output warning: audio drift is too big (-175186), clearing out
[00000297] main audio output warning: timing screwed, stopping resampling
[00000297] main audio output warning: audio drift is too big (-175018), clearing out
[00000294] main video output warning: late picture skipped (13643)
[00000294] main video output warning: late picture skipped (12427)
[00000297] main audio output warning: audio drift is too big (-132585), clearing out
[00000297] main audio output warning: audio drift is too big (-134939), clearing out
[00000294] main video output warning: late picture skipped (39127)
[00000297] main audio output warning: audio drift is too big (-126122), clearing out
[00000294] main video output warning: late picture skipped (86162)
[00000297] main audio output warning: audio drift is too big (-127717), clearing out
[00000294] main video output warning: late picture skipped (92116)
[00000297] main audio output warning: audio drift is too big (-127509), clearing out
[00000294] main video output warning: late picture skipped (91696)
[00000297] main audio output warning: audio drift is too big (-133577), clearing out
[00000294] main video output warning: late picture skipped (88751)
[00000297] main audio output warning: audio drift is too big (-136038), clearing out
[00000294] main video output warning: late picture skipped (91705)
[00000297] main audio output warning: audio drift is too big (-127089), clearing out
[00000294] main video output warning: late picture skipped (91727)
[00000297] main audio output warning: audio drift is too big (-129442), clearing out
[00000294] main video output warning: late picture skipped (91796)
[00000297] main audio output warning: audio drift is too big (-131806), clearing out
[00000294] main video output warning: late picture skipped (91427)
[00000297] main audio output warning: audio drift is too big (-134236), clearing out
[00000294] main video output warning: late picture skipped (59134)
[00000297] main audio output warning: audio drift is too big (-136631), clearing out
[00000294] main video output warning: late picture skipped (91160)
[00000297] main audio output warning: audio drift is too big (-127936), clearing out
[00000294] main video output warning: late picture skipped (91239)
[00000297] main audio output warning: audio drift is too big (-130422), clearing out
[00000294] main video output warning: late picture skipped (91248)
[00000297] main audio output warning: audio drift is too big (-132818), clearing out
[00000294] main video output warning: late picture skipped (91043)
[00000297] main audio output warning: audio drift is too big (-135269), clearing out
[00000294] main video output warning: late picture skipped (90933)
[00000297] main audio output warning: audio drift is too big (-126352), clearing out
[00000294] main video output warning: late picture skipped (90989)
[00000297] main audio output warning: audio drift is too big (-127912), clearing out
[00000294] main video output warning: late picture skipped (91076)
[00000297] main audio output warning: audio drift is too big (-131466), clearing out
[00000294] main video output warning: late picture skipped (90789)
[00000297] main audio output warning: audio drift is too big (-133862), clearing out
[00000294] main video output warning: late picture skipped (90965)
[00000297] main audio output warning: audio drift is too big (-136301), clearing out
[00000294] main video output warning: late picture skipped (90945)
[00000297] main audio output warning: audio drift is too big (-127352), clearing out
[00000294] main video output warning: late picture skipped (91012)
[00000297] main audio output warning: audio drift is too big (-130093), clearing out
[00000294] main video output warning: late picture skipped (91305)
[00000297] main audio output warning: audio drift is too big (-131880), clearing out
[00000294] main video output warning: late picture skipped (90929)
[00000297] main audio output warning: audio drift is too big (-134895), clearing out
[00000294] main video output warning: late picture skipped (91378)
[00000297] main audio output warning: buffer is 102711 in advance, triggering downsampling
[00000297] main audio output warning: audio drift is too big (-163318), clearing out
[00000297] main audio output warning: timing screwed, stopping resampling
[00000297] main audio output warning: audio drift is too big (-162683), clearing out
[00000297] main audio output warning: buffer is 76033 in advance, triggering downsampling
[00000294] main video output warning: late picture skipped (131472)
[00000297] main audio output warning: audio drift is too big (-132217), clearing out
[00000297] main audio output warning: timing screwed, stopping resampling
[00000297] main audio output warning: audio drift is too big (-131860), clearing out
[00000294] main video output warning: late picture skipped (50085)
[00000297] main audio output warning: audio drift is too big (-138379), clearing out
[00000294] main video output warning: late picture skipped (122093)
[00000294] main video output warning: late picture skipped (21418)
[00000297] main audio output warning: audio drift is too big (-130970), clearing out
[00000294] main video output warning: late picture skipped (100281)
[00000297] main audio output warning: audio drift is too big (-133181), clearing out
[00000294] main video output warning: late picture skipped (90301)
[00000297] main audio output warning: audio drift is too big (-135894), clearing out
[00000294] main video output warning: late picture skipped (90019)
[00000297] main audio output warning: audio drift is too big (-126989), clearing out
[00000294] main video output warning: late picture skipped (90375)
[00000297] main audio output warning: audio drift is too big (-129731), clearing out
[00000294] main video output warning: late picture skipped (90639)
[00000253] main input debug: control type=0
[00000253] main input debug: control: stopping input

raden
Blank Cone
Blank Cone
Posts: 20
Joined: 09 Jul 2006 14:55
Location: Indonesia
Contact:

Postby raden » 18 Jul 2006 11:40

Thanks to Video LAN forums

Fnally I get a solution, at first this is my wrong when stream from capture card, vlc default is automatically set audio device with /dev/dsp but this is doesn't work on my machine, so I change audio device to /dsp/dsp2 and the sound is out, thats all

This is command line that I use :
vlc --color v4l:/dev/video:adev=/dev/dsp2:norm=0:frequency=567250:size=320x240 :sout="#transcode{vcodec=DIV3,vb=800,scale=1,acodec=vorb,ab=128,channels=2}:standard{access=http,mux=ogg,url=10.31.12.156:1234}"

This command stream capture card to http and the client side I use firefox with mozilla-plugin and this is work verry well.

raden
Blank Cone
Blank Cone
Posts: 20
Joined: 09 Jul 2006 14:55
Location: Indonesia
Contact:

Postby raden » 19 Jul 2006 11:09

Stream http is success but stream udp still no sound

This is command line :

vlc --color v4l:/dev/video:adev=/dev/dsp2:norm=0:frequency=583250 :sout="#transcode{vcodec=DIV3,vb=800,scale=1,acodec=vorb,ab=128,channels=2}:standard{access=udp,mux=ts,url=10.31.12.143:1234}"

and the message is :

[00000264] main private error: cannot add this stream
[00000275] main packetizer error: cannot create packetizer output

please help me..

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 21 Jul 2006 18:58

you can't put vorb in ts. Use mpga/mp3
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

raden
Blank Cone
Blank Cone
Posts: 20
Joined: 09 Jul 2006 14:55
Location: Indonesia
Contact:

Postby raden » 22 Jul 2006 02:54

still send an error message, and no sound.

trail 1:
[00000246] main playlist: adding playlist item `v4l:/dev/video:adev=/dev/dsp2:norm=0:frequency=583250' ( v4l:/dev/video:adev=/dev/dsp2:norm=0:frequency=583250 )[mp2 @ 0x419cb618]Sampling rate 44800 is not allowed in mp2
[00000313] ffmpeg encoder error: cannot open encoder
[00000255] stream_out_transcode private error: cannot find encoder
[00000255] stream_out_transcode private error: cannot create audio chain
[00000275] main packetizer error: cannot create packetizer output

trail 2:
[00000246] main playlist: adding playlist item `v4l:/dev/video:adev=/dev/dsp2:norm=0:frequency=583250' ( v4l:/dev/video:adev=/dev/dsp2:norm=0:frequency=583250 )[00000313] ffmpeg encoder error: cannot find encoder MPEG Audio layer 1/2/3
[00000255] stream_out_transcode private error: cannot find encoder
[00000255] stream_out_transcode private error: cannot create audio chain
[00000275] main packetizer error: cannot create packetizer output

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 22 Jul 2006 18:33

What distribution are you using ? (you're just missing the mpga audio encoder)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

raden
Blank Cone
Blank Cone
Posts: 20
Joined: 09 Jul 2006 14:55
Location: Indonesia
Contact:

Postby raden » 23 Jul 2006 04:24

I use Linux with Debian Sarge3.1r0 distribution, vlc is included on cd installer so i just install it and I am use Esound not ALSA and I have install vlc-plugin-esd too. From command line i just type command to use vlc, there is:

# vlc
VLC media player 0.8.2-svn Janus
libhal.c 767 : org.freedesktop.DBus.Error.ServiceDoesNotExist raised
"Service "org.freedesktop.Hal" does not exist"

If I am missing the mpga audio encoder, how to get that encoder?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 23 Jul 2006 11:55

VLC in debian doesn't ship with the mpga encoder for legal reasons. If you use debian sid, you can install a nightly build from http://nightlies.videolan.org . Those have the encoder. I'm afraid that on sarge you're pretty much on your own.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

raden
Blank Cone
Blank Cone
Posts: 20
Joined: 09 Jul 2006 14:55
Location: Indonesia
Contact:

Postby raden » 24 Jul 2006 08:11

Oh no.. but when I stream from a file it's work for udp transport with mpga/mp3, why?
I have another question, I already set up vlc vcodec=DIV3 with vb=800 and acodec=Vorb with ab=128, is that mean vlc stream 928bps (800 + 128) to one client if use http protocols, is that true?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests

cron