2017年5月12日 星期五

video streaming

Ref : http://www.sortedset.com/live-video-stream-rtmp-nginx-ffmpeg-avconv-raspberry-pi/


我是裝 1.9.5版

這行指令網頁上有錯...

./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master



開機後執行

sudo /usr/local/nginx/sbin/nginx


avconv -f video4linux2 -r 25 -i /dev/video0 -f flv rtmp://localhost/live/



========================================================

Stream from a webcam

   vlc -I dummy -v --noaudio --ttl 12 v4l:/dev/video0:size=320x240 \
   --sout '#std{access=mmsh,dst=:8080}' -V X11 
   vlc -I dummy -v --noaudio --ttl 12 v4l:/dev/video0:size=320x240 \
   --sout '#transcode{vcodec=mp4v,vb=128}:std{access=mmsh,dst=:8080}'
Receive:
   vlc mmsh://123.45.678.9:8080


------------------------------------------------------------------

gstreaming

gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! 'video/x-raw,format=I420,width=640,height=480,framerate=30/1' ! omxh264enc target-bitrate=6500000 control-rate=variable !  h264parse ! flvmux  ! rtmpsink location='rtmp://localhost/live'




沒有留言:

張貼留言