Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wish to execute a video in my PC and stream it in the LAN so anybody can connect to it and watch it. What steps do I need to do to accomplish this in an easy manner.

share|improve this question
Recommend VLC shares code.google.com/p/vlc-shares –  Ringtail Mar 21 '12 at 2:09
@run ... I tried your solution and yes when I go to the url rstp link I get asked how I would like to open it...I use VLC and then it says "Error...Cannot stream" or something like that. Did you find the same thing initially if so how did you manage to stop it. –  Verber May 21 '13 at 16:48

1 Answer 1

up vote 3 down vote accepted

Here is a command line to stream webcam:

vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout="#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/live.ts}" -I dummy
share|improve this answer
Hallelujah, my friend! Thank you. –  Faron Oct 9 at 22:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.