'video capture'에 해당되는 글 1건

  1. 2011.11.14 Useful tip series - Video & streaming
1. XawTV
If compilation succeed, then one can capture raw camera input data into file. Below is one example to save video.raw file during first 5 seconds.
./streamer -video /dev/video0 -t 0:5 -f 422 -s 640x480 -r 24 -o video.raw
 

2. One way to stream live webcam video using vlc

(Referred: http://superuser.com/questions/567016/live-streaming-using-ffmpeg)

Environment

OS: Ubuntu 13.1

Webcam : Microsoft Corp. LifeCam VX-1000

Web-server running on 192.168.1.20


Ok. now lets do the jobs to stream live webcam via vlc and webbrowser

First make sure vlc is installed.

sudo apt-get install vlc 

1
sudo apt-get install vlc

If you installed vlc, then you can execute cvlc. So run below command


1
cvlc v4l2:// :v4l2-vdev="/dev/video0" --sout '#transcode{vcodec=h264,vb=512,scale=1,acodec=none,venc=x264{aud,profile=high,level=60,keyint=15,bframes=0,ref=1,nocabac}}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/live/mystream.m3u8,index-url=http://192.168.1.20/live/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/live/mystream-########.ts},dst=std{access=http,mux=ts,dst=:8082/video.mp4}}' &


Note: The above command may fail if you don't have "/var/www/live/" folder created and have right permission to access it.

After successful running the above command without any error, then use can access this live stream from web page addressed http://<serve_ip_address>/live.

Posted by kevino
,