my vlc command to stream video to pc/iOS/android

my vlc command to stream video to pc/iOS/android

2013/08/22 Uncategorized 2

Stream to a mp4

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=/opt/adobe/ams/webroot/peter.m3u8,index-url=http://192.168.163.201/live/peter.ts},mux=ts{use-key-frames},dst=/opt/adobe/ams/webroot/peter.ts},dst=std{access=http,mux=ts,dst=:8081/peter.mp4}}'

Stream to a FLV 

cvlc v4l2:// :v4l2-vdev="/dev/video0" --sout "#transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8082/peter.flv}"

Stream to a HLS

cvlc v4l2:// :v4l2-vdev="/dev/video0" --sout='#transcode{width=320,height=320,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1},acodec=mp3,ab=96,channels=2}:std{access=livehttp{seglen=10,delsegs=true,numsegs=3,index=/opt/adobe/ams/webroot/peter.m3u8,index-url=http://192.168.163.201/peter.ts},mux=ts{use-key-frames},dst=/opt/adobe/ams/webroot/peter.ts}'