Problem with streaming webcam to dss on ubuntu

About encoding, codec settings, muxers and filter usage
boltonli
New Cone
New Cone
Posts: 2
Joined: 12 Jan 2011 10:56

Problem with streaming webcam to dss on ubuntu

Postby boltonli » 12 Jan 2011 17:10

Hello everyone.I am trying to stream my webcam video to darwin streaming server following the tutorial on the http://wiki.videolan.org/Documentation: ... ile_Phones, and my environment:

- Ubuntu 10.10
- VLC 1.1.4

For now I could generate the sdp file using the command as following:

Code: Select all

vlc -vvv v4l2:// :v4l-vdev="/dev/video" --no-audio --sout '#transcode{vcodec=mp4v,vb=212,width=320,height=240}:rtp{dst=127.0.0.1,sdp=file:///usr/local/movies/channel.sdp}'
But the sdp file cannot be played in the VLC client and here is the output when I try to open the sdp file:

[0xb7459dec] main input debug: `file:///usr/local/movies/channel.sdp' successfully opened
[0x817defc] qt4 interface debug: IM: Setting an input
[0x83bd854] live555 demux error: no data received in 10s, aborting
[0xb7459dec] main input debug: EOF reached

While the sdp file generated from a video file can be played well, using command below:

Code: Select all

vlc -vvv '/usr/local/movies/sample_100kbit.mp4' --no-audio --sout '#transcode{vcodec=mp4v,vb=212,width=320,height=240}:rtp{dst=127.0.0.1,sdp=file:///usr/local/movies/channel.sdp}'
Also, the video file generated from the webcam using the following command line is good

Code: Select all

vlc v4l2:// :v4l-vdev="/dev/video0" :v4l-width=320 :v4l-height=240 --sout "#transcode{vcodec=mp4v,vb=212,width=320,height=240}:duplicate{dst=std{access=file,dst=/tmp/test.mp4}}"
What may be the problem?Thanks in advance.
Bolton

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests