<br><br><div><span class="gmail_quote">2007/10/15, Gun Akkor <<a href="mailto:gakkor@patton.com">gakkor@patton.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All,<br><br>I am trying to capture/stream video from a Video4Linux compatible<br>capture card, and audio from an on-board microphone input using a x86<br>based Intel motherboard, linux OS (kernel 2.6.23-rc), and VLC version 
0.8.6c<br><br>Here is the command line I use for capturing video:<br><br>vlc -vvv v4l:// :v4l-vdev="/dev/video0" :v4l-norm=1 :v4l-width=320<br>:v4l-height=240 :v4l-fps=15 :v4l-audio=2 --sout<br>'#duplicate{dst="transcode{vcodec=mp4v, vb=1024, sfilter=time,
<br>soverlay}:std{access=udp, mux=ts, dst=<a href="http://192.168.200.10:1235">192.168.200.10:1235</a>}"}'<br><br>This works perfectly, and video is received at the destination.<br><br>For audio,<br><br>vlc -vvv v4l:// :v4l-adev="/dev/audio" :v4l-audio=2 --sout
<br>'#duplicate{dst="transcode{acodec=mp4a, ab=192}:std{access=udp, mux=ts,<br>dst=<a href="http://192.168.200.10:1235">192.168.200.10:1235</a>}"}'<br><br>This works just fine, too. Audio is received at the destination.
<br><br>However, when I try to do both simultaneously, I only receive audio, but<br>no video, i.e.<br><br>vlc -vvv v4l:// :v4l-adev="/dev/audio" :v4l-vdev="/dev/video0"<br>:v4l-norm=1 :v4l-width=320 :v4l-height=240 :v4l-fps=15 :v4l-audio=2
<br>--sout '#duplicate{dst="transcode{vcodec=mp4v, vb=1024, acodec=mpga,<br>ab=192, sfilter=time, soverlay, channels=2, audio-sync}:std{access=udp,<br>mux=ts, dst=<a href="http://192.168.200.10:1235">192.168.200.10:1235
</a>}"}'<br><br>Could somebody help me with this? I must be missing something,<br><br>Thanks in advance !<br><br>GA<br><br>Here is the debug output for the audio/video combo case:<br><br>*****<br>[00000001] main private debug: checking builtin modules
<br>[00000001] main private debug: checking plugin modules<br>[00000001] main private debug: loading plugins cache file<br>/root/.vlc/cache/plugins-04041e.dat<br>[00000001] main private debug: recursively browsing `modules'
<br>[00000001] main private debug: recursively browsing `/usr/lib/vlc'<br>[00000001] main private debug: recursively browsing `plugins'<br>[00000001] main private debug: module bank initialized, found 178 modules<br>
[00000001] main private debug: opening config file /root/.vlc/vlcrc<br>[00000001] main private warning: config file /root/.vlc/vlcrc does not<br>exist yet<br>[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT
<br>SSE SSE2 FPU<br>[00000001] main private debug: looking for memcpy module: 3 candidates<br>[00000001] main private debug: using memcpy module "memcpymmxext"<br>[00000226] main playlist debug: waiting for thread completion
<br>[00000226] main playlist debug: thread 16386 (playlist) created at<br>priority 0 (playlist/playlist.c:184)<br>[00000227] main private debug: waiting for thread completion<br>[00000227] main private debug: thread 32771 (preparser) created at
<br>priority 0 (playlist/playlist.c:210)<br>[00000228] main interface debug: looking for interface module: 1 candidate<br>[00000228] main interface debug: using interface module "hotkeys"<br>[00000228] main interface debug: thread 49156 (interface) created at
<br>priority 0 (interface/interface.c:231)<br>[00000230] main interface debug: looking for interface module: 1 candidate<br>[00000230] main interface debug: using interface module "screensaver"<br>[00000230] main interface debug: thread 65541 (interface) created at
<br>priority 0 (interface/interface.c:231)<br>[00000226] main playlist debug: adding playlist item `v4l://' ( v4l:// )<br>[00000232] main interface debug: looking for interface module: 1 candidate<br>Remote control interface initialized. Type `help' for help.
<br>[00000232] main interface debug: using interface module "rc"<br>[00000232] main interface debug: thread 81926 (manager) created at<br>priority 0 (interface/interface.c:216)<br>[00000226] main playlist debug: creating new input thread
<br>[00000234] main input debug: waiting for thread completion<br>[00000234] main input debug: thread 98311 (input) created at priority 0<br>(input/input.c:265)<br>[00000234] main input debug: creating statistics handler<br>
[00000236] main stream output debug: stream=`duplicate'<br>[00000237] main private debug: looking for sout stream module: 1 candidate<br>[00000237] stream_out_duplicate private debug: creating 'duplicate'<br>[00000237] stream_out_duplicate private debug:  * adding
<br>`transcode{vcodec=mp4v, vb=1024, acodec=mpga, ab=192, sfilter=time,<br>soverlay, channels=2, audio-sync}:std{access=udp, mux=ts,<br>dst=<a href="http://192.168.200.10:1235">192.168.200.10:1235</a>}'<br>[00000236] main stream output debug: stream=`transcode'
<br>[00000239] main private debug: looking for sout stream module: 1 candidate<br>[00000236] main stream output debug: stream=`std'<br>[00000242] main private debug: looking for sout stream module: 1 candidate<br>[00000242] main private debug: set sout option: sout-standard-access to udp
<br>[00000242] main private debug: set sout option: sout-standard-mux to ts<br>[00000242] main private debug: set sout option: sout-standard-dst to<br><a href="http://192.168.200.10:1235">192.168.200.10:1235</a><br>[00000242] stream_out_standard private debug: creating
<br>`udp/ts://192.168.200.10:1235'<br>[00000242] stream_out_standard private debug: extension is 10:1235<br>[00000242] stream_out_standard private debug: extension -> mux=(null)<br>[00000242] stream_out_standard private debug: using
<br>`udp/ts://192.168.200.10:1235'<br>[00000244] main private debug: looking for sout access module: 1 candidate<br>[00000244] main private debug: net: connecting to <a href="http://192.168.200.10">192.168.200.10</a> port 1235
<br>[00000244] main private debug: localized Domain Names not supported -<br>disabled<br>[00000246] main private debug: thread 114696 (sout write thread) created<br>at priority 0 (udp.c:268)<br>[00000244] access_output_udp private debug: udp access output
<br>opened(<a href="http://192.168.200.10:1235">192.168.200.10:1235</a>)<br>[00000244] main private debug: using sout access module "access_output_udp"<br>[00000242] stream_out_standard private debug: access opened
<br>[00000247] main private debug: looking for sout mux module: 1 candidate<br>[00000247] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000<br>[00000247] main private debug: using sout mux module "mux_ts"
<br>[00000236] main stream output debug: muxer support adding stream at any time<br>[00000242] stream_out_standard private debug: mux opened<br>[00000242] main private debug: using sout stream module<br>"stream_out_standard"
<br>[00000239] main private debug: set sout option: sout-transcode-vcodec to<br>mp4v<br>[00000239] main private debug: set sout option: sout-transcode-vb to 1024<br>[00000239] main private debug: set sout option: sout-transcode-acodec to
<br>mpga<br>[00000239] main private debug: set sout option: sout-transcode-ab to 192<br>[00000239] main private debug: set sout option: sout-transcode-sfilter<br>to time<br>[00000239] main private debug: set sout option: sout-transcode-soverlay
<br>to (null)<br>[00000239] main private debug: set sout option: sout-transcode-channels to 2<br>[00000239] main private debug: set sout option:<br>sout-transcode-audio-sync to (null)<br>[00000239] stream_out_transcode private debug: codec audio=mpga 0Hz 2
<br>channels 192Kb/s<br>[00000239] stream_out_transcode private debug: codec video=mp4v 0x0<br>scaling: 1.000000 1024kb/s<br>[00000249] main private debug: looking for sub filter module: 1 candidate<br>[00000249] main private debug: using sub filter module "time"
<br>[00000248] main private debug: Registering subpicture channel, ID: 2<br>[00000239] main private debug: using sout stream module<br>"stream_out_transcode"<br>[00000237] main private debug: using sout stream module
<br>"stream_out_duplicate"<br>[00000234] main input debug: `v4l://' gives access `v4l' demux `' path `'<br>[00000234] main input debug: creating demux: access='v4l' demux='' path=''
<br>[00000251] main demuxer debug: looking for access_demux module: 1 candidate<br>[00000251] v4l demuxer debug: V4L device BT878 video (ProVideo PV150) 2<br>channels 0 audios 48 < w < 768 32 < h < 480<br>[00000251] v4l demuxer debug: setting channel Composite0(0) 0 tuners
<br>flags=0x2 type=0x2 norm=0x1<br>[00000251] v4l demuxer error: cannot set audio (Invalid argument)<br>[00000251] v4l demuxer debug: openened adev=`/dev/audio' stereo 44100Hz<br>[00000251] v4l demuxer debug: v4l grabbing started
<br>[00000251] v4l demuxer debug: new audio es 2 channels 44100Hz<br>[00000234] main input debug: selecting program id=0<br>[00000251] main demuxer debug: using access_demux module "v4l"<br>[00000253] main packetizer debug: looking for packetizer module: 14
<br>candidates<br>[00000253] main packetizer debug: using packetizer module "packetizer_copy"<br>[00000253] main packetizer debug: thread 131081 (decoder) created at<br>priority 0 (input/decoder.c:159)<br>[00000234] main input debug: starting in sync mode
<br>[00000234] main input debug: `v4l://' successfully opened<br>status change: ( new input: v4l:// )<br>status change: ( audio volume: 256 )<br>status change: ( play state: 1 )<br>[00000236] main stream output debug: adding a new input
<br>[00000237] stream_out_duplicate private debug: duplicated a new stream<br>codec=s16l (es=0 group=0)<br>[00000239] stream_out_transcode private debug: creating audio<br>transcoding from fcc=`s16l' to fcc=`mpga'
<br>[00000276] main decoder debug: looking for decoder module: 17 candidates<br>[00000276] araw decoder debug: samplerate:44100Hz channels:2 bits/sample:16<br>[00000276] main decoder debug: using decoder module "araw"
<br>[00000277] main encoder debug: looking for encoder module: 4 candidates<br>[00000277] ffmpeg encoder debug: libavcodec initialized (interface 3352064 )<br>[00000277] ffmpeg encoder debug: found encoder MPEG Audio layer 1/2
<br>[00000277] main encoder debug: using encoder module "ffmpeg"<br>[00000247] main private debug: adding a new input<br>[00000247] mux_ts private debug: adding input codec=mpga pid=68<br>[00000247] mux_ts private debug: new PCR PID is 68
<br>[00000237] stream_out_duplicate private debug:     - added for output 0<br>[00000239] stream_out_transcode private debug: drift is too high,<br>resetting master sync<br><br>****<br><br></blockquote></div><br>--sout-all???
<br><br><pre>--sout-all, --no-sout-all  <br>Enable streaming of all ES (default disabled)<br>Stream all elementary streams (video, audio and subtitles) (default disabled)</pre><br>-- <br>Alejandro Vazquez Fente