m1gin

#vlc #vlcplayer #streaming #vlctips #ubuntu

 stream webcam using VLC

cvlc v4l2:///dev/video1 :v4l2-standard= :live-caching=30  --input-slave=alsa://pulse --sout='#transcode{vcodec=VP80, vb=444,width=640,height=480,scale=Auto, acodec=vorbis,ab=48,channels=1, samplerate=44100}:http{dst=:8090/live.webm}'


cvlc v4l2:///dev/video0 :v4l2-standard= :live-caching=300 :sout="#transcode{vcodec=VP80, vb=800,scale=1}:http{dst=:8082/stream.webm}" 

cvlc v4l2:///dev/video1 :v4l2-standard= :live-caching=30  --sout='#transcode{vcodec=VP90, vb=444,width=640, height=480, scale=Auto,acodec=vorbis, ab=48,channels=1, samplerate=44100}:http{dst=:8080/live.webm}'


WMV - video only

cvlc v4l2:///dev/video0 :v4l2-standard= :live-caching=300 :sout="#transcode{vcodec=wmv2, vb=300,width=640,height=480, scale=Auto}:http{dst=:8081/live.wmv}"


Stream existing file as WEBM - video only

cvlc   /home/user/sil/test.avi  --sout='#transcode{vcodec=VP80, acodec=none,vb=300}:http{dst=:8080/live.webm}'


stream webcam with audio:

cvlc v4l2:///dev/video0 :input-slave=alsa://pulse :v4l2-standard= :live-caching=300 :sout="#transcode{vcodec=VP80, vb=400,width=640,height=480, scale=Auto,acodec=vorbis, ab=48,channels=1, samplerate=44100}:http{dst=:8090/stream.webm}"


Stream audio only

cvlc screen://  :screen-fps=1 :input-slave=alsa://pulse :live-caching=300 :sout="#transcode{vcodec=none, acodec=vorbis,ab=48,channels=1, samplerate=44100}:http{dst=:8090/live.ogg}"


cvlc screen://  :screen-fps=1 :input-slave=alsa://pulse :live-caching=300 :sout="#transcode{vcodec=none, acodec=mp3,ab=64,channels=1, samplerate=44100}:http{mux=mp3, dst=:8090/live.mp3}" 


VLC Record screen

cvlc screen:// :sout='#transcode{vcodec=VP80, acodec=none,vb=300}:std{access=file, dst=file.webm}' :screen-fps=5.0

cvlc screen:// :sout='#transcode{vcodec=VP90, acodec=none,vb=300}:std{access=file, dst=file.webm}' :screen-fps=5.0

cvlc screen:// :sout='#transcode{vcodec=wmv2, acodec=none,vb=300}:std{access=file, dst=file.wmv}' :screen-fps=5.0


vlc screen:// --sout='#transcode{vcodec=h264, acodec=mp4a}:std{access=file,mux=mp4, dst=file.mp4}' --screen-fps=5.0

vlc screen:// --one-instance -I dummy --screen-follow-mouse --no-video :screen-fps=5 :screen-caching=300 --sout "#transcode{vcodec=h264,vb=400,fps=5, scale=1,width=1280,height=1024, acodec=none}:duplicate{dst=std{access=file, mux=avi,dst="capture.avi"}}" --run-time=1200 vlc://quit


vlc screen:// --one-instance -I dummy --screen-follow-mouse --no-video :screen-fps=5 :screen-caching=300 --sout "#transcode{vcodec=theo,vb=400,fps=5, scale=1,width=1280,height=1024, acodec=none}:duplicate{dst=std{access=file, mux=ogg,dst="TD_capture.ogg"}}" --run-time=12 vlc://quit


vlc screen:// --one-instance -I dummy --screen-follow-mouse --no-video :screen-fps=5 :screen-caching=300 --sout "#transcode{vcodec=h264,vb=400,fps=5,scale=1, width=1280,height=1024, acodec=none}:duplicate{dst=std{access=file, mux=mp4, dst="TD_capture.mp4"}}" --run-time=12 vlc://quit


ffmpeg -f alsa -i hw:0,0 -f x11grab -r 10 -s 1200x600 -i :0.0 -acodec libvorbis -ar 44100 -ab 64k -ac 1  -threads 0 ./Desktop/mydesktop2.webm 


ffmpeg -f alsa -i hw:0,0 -f x11grab -r 5 -b 2000  -i :0.0  -ar 44100 -ab 64k -ac 1  -threads 0 -vcodec flashsv ./Desktop/mydesktop2.flv


follow mouse pointer.

avconv -f x11grab  -follow_mouse 100 -r 5 -i :0.0  mydesktop2.webm

avconv -f x11grab  -follow_mouse 80 -r 5 -b 1200k -i :0.0 -f alsa -i hw:0,0 -ar 44100 -ab 64k -ac 1 -s 600x400  av.webm 


Link: http://xmodulo.com/live-stream-video-webcam-linux.html

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

VLC Player

Encode file:

  • cvlc --sout='#transcode{vcodec=VP90,acodec=none,vb=300}:std{access=file,dst=file.webm}' /home/m1/sil/series/Hitch/htc.avi
  • cvlc --sout='#transcode{vcodec=VP80,acodec=none,vb=300}:std{access=file,dst=file.webm}' /home/m1/sil/series/Hitch/htc.avi




Stream existing file

  • cvlc --sout='#transcode{vcodec=VP80,acodec=none,vb=300}:http{dst=:8080/live.webm}' /home/m1/sil/series/Hitch/htc.avi



stream webcam using VLC

http://xmodulo.com/live-stream-video-webcam-linux.html

  • cvlc v4l2:///dev/video0 :v4l2-standard= :live-caching=300 :sout="#transcode{vcodec=VP80,vb=800,scale=1}:http{dst=:8082/stream.webm}" 
  • cvlc v4l2:///dev/video0 :v4l2-standard= :live-caching=300 :sout="#transcode{vcodec=wmv2,vb=300,width=640,height=480,scale=Auto}:http{dst=:8081/live.wmv}"



stream webcam with audio:

  • cvlc v4l2:///dev/video0 :input-slave=alsa://pulse :v4l2-standard= :live-caching=300 :sout="#transcode{vcodec=VP80,vb=400,width=640,height=480,scale=Auto,acodec=vorbis,ab=48,channels=1,samplerate=44100}:http{dst=:8090/stream.webm}"



Stream audio only

  • cvlc screen:// :screen-fps=1 :input-slave=alsa://pulse :live-caching=300 :sout="#transcode{vcodec=none,acodec=vorbis,ab=48,channels=1,samplerate=44100}:http{dst=:8090/live.ogg}"
  • cvlc screen:// :screen-fps=1 :input-slave=alsa://pulse :live-caching=300 :sout="#transcode{vcodec=none,acodec=mp3,ab=64,channels=1,samplerate=44100}:http{mux=mp3,dst=:8090/live.mp3}"


Record screen by command line.

  • cvlc screen:// :sout='#transcode{vcodec=VP80,acodec=none,vb=300}:std{access=file,dst=file.webm}' :screen-fps=5.0
  • cvlc screen:// :sout='#transcode{vcodec=VP90,acodec=none,vb=300}:std{access=file,dst=file.webm}' :screen-fps=5.0
  • cvlc screen:// :sout='#transcode{vcodec=wmv2,acodec=none,vb=300}:std{access=file,dst=file.wmv}' :screen-fps=5.0
  • vlc screen:// --sout='#transcode{vcodec=h264,acodec=mp4a}:std{access=file,mux=mp4,dst=file.mp4}' --screen-fps=5.0
  • vlc screen:// --one-instance -I dummy --screen-follow-mouse --no-video :screen-fps=5 :screen-caching=300 --sout "#transcode{vcodec=h264,vb=400,fps=5,scale=1,width=1280,height=1024,acodec=none}:duplicate{dst=std{access=file,mux=avi,dst="/home/user/Work/TD_capture.avi"}}" --run-time=1200 vlc://quit
  • vlc screen:// --one-instance -I dummy --screen-follow-mouse --no-video :screen-fps=5 :screen-caching=300 --sout "#transcode{vcodec=theo,vb=400,fps=5,scale=1,width=1280,height=1024,acodec=none}:duplicate{dst=std{access=file,mux=ogg,dst="TD_capture.ogg"}}" --run-time=12 vlc://quit
  • vlc screen:// --one-instance -I dummy --screen-follow-mouse --no-video :screen-fps=5 :screen-caching=300 --sout "#transcode{vcodec=h264,vb=400,fps=5,scale=1,width=1280,height=1024,acodec=none}:duplicate{dst=std{access=file,mux=mp4,dst="TD_capture.mp4"}}" --run-time=12 vlc://quit




Video dosyasını başka bir ses dosyası ile oynatmak.

vlc gc_2013-02-09_1.webm --input-slave hm1.ogg

Sesi ileri geri kaydırmak:

vlc gc_2013-02-09_1.webm --input-slave hm1.ogg --audio-desync=-163000

Ayrıca oynatma sırasında k ve j kısayollarıyla ses ileri kaydırılabilmektedir.

Add to: