开发者

Using VLC for streaming HTTP on Linux

开发者 https://www.devze.com 2023-04-03 19:35 出处:网络
Using VLC 1.1.4 on Ubuntu 10.04 I can get the GUI to stream from my capture card to an HTTP client (e.g. IE8) but when I try using a command line version of properties the stream is not coming across.

Using VLC 1.1.4 on Ubuntu 10.04 I can get the GUI to stream from my capture card to an HTTP client (e.g. IE8) but when I try using a command line version of properties the stream is not coming across. I am not sure I am coding the command line correctly. I grabbed the properties from the GUI and wrote a command line that seems reasonable, and gives no apparent errors in the VLC log, but no stream. When I point my browser at th开发者_如何转开发e camera.asf file, Windows Media Player pops up but almost immediately shows error "reached the end of file".

Here's what I pull from the GUI:

:sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{dst=:8080/camera.asf} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep

And here's what I am trying as a command line:

cvlc v4l2:///dev/video0 --v4l2-input 1 --sout "#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{dst=:8080/camera.asf}" --no-sout-rtp-sap --no-sout-standard-sap --sout-keep

I tried to get help from the VLC forum, but no replies.

Any ideas?

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号