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