I've got this setup with vlc and WowzaMS2: I use vlc to capture camera output with v4l, transcode it to h264 with the x264 module, and stream it over to Wowza. Wowza streams it out to the web in RTP where it is viewed as Flash video at my project web site. Here's the vlc code:
Code:
cvlc -vv --v4l-norm 1 --v4l-fps 60 v4l:///dev/video0:channel=0:adev=none:width=352:height:288 :sout="#transcode{vcodec=x264,venc=x264,vb=192,scale=1}:duplicate{dst=rtp{dst=XXXXXXXXXX,sdp="file:///usr/local/WowzaMediaServer/content/camera1.sdp",port=XXXX}}" >/dev/null 2>&1 &
cvlc -vv --v4l-norm 1 --v4l-fps 60 v4l:///dev/video1:channel=0:adev=none:width=352:height:288 :sout="#transcode{vcodec=x264,venc=x264,vb=192,scale=1}:duplicate{dst=rtp{dst=XXXXXXXXXX,sdp="file:///usr/local/WowzaMediaServer/content/camera2.sdp",port=XXXX}}" >/dev/null 2>&1 &
I'm having a problem with too much latency on the client side (possibly related to JW Player), and someone suggested switching my codec to vp6. But I'm having trouble figuring out how to adjust my vlc code to transcode to vp6.
The scraps of documentation I've found on the vlc site indicate that ffmpeg is the encoder I should be using for that, and that vp6 is the command-line keyword I should be using, but if I try something like this
Code:
cvlc -vv --v4l-norm 1 --v4l-fps 60 v4l:///dev/video0:channel=0:adev=none:width=352:height:288 :sout="#transcode{vcodec=vp6,venc=ffmpeg,vb=192,scale=1}:duplicate{dst=rtp{dst=XXXXXXXXXX,sdp="file:///usr/local/WowzaMediaServer/content/camera1.sdp",port=XXXX}}"
I get errors back like so:
Code:
0xa64a8b3f2c8] main encoder warning: no encoder module matching "ffmpeg" could be loaded
[0xa64a8b3f2c8] main encoder debug: TIMER module_need() : 0.051 ms - Total 0.051 ms / 1 intvls (Avg 0.051 ms)
[0xa64a8b52e08] stream_out_transcode stream out error: cannot find video encoder (module:ffmpeg fourcc:vp6 )
[0xa64a8b3ee78] main decoder debug: removing module "rawvideo"
[0xa64a8b52e08] stream_out_transcode stream out error: cannot create video chain
[0xa64a8b543e8] main packetizer error: cannot create packetizer output (RV24)
I am running everything on a amd64 Gentoo server, and I compiled with ffmpeg support and dependencies. The command
Code:
vlc -p ffmpeg --advanced --help-verbose | less
Gives pages of command line switches but I don't see any info on vp6.