This is an old revision of the document!


HTTP streaming

Stream as mosaic

  • background image [FPS must be same as in video]
  vlc ~/Dropbox/Public/Wallpapers/GITS.png --image-duration=-1 --image-fps=10
  • run mosaic

./vlc –color -I telnet –vlm-conf –mosaic-width=360 –mosaic-height=288 –mosaic-keep-picture –mosaic-rows=2 –mosaic-cols=2 –mosaic-position=1 –mosaic-order=1,2,3,4 ../mosaic.vlm.conf –ttl 12 –udp-caching 800 Other examples

  • on the server, run:
vlc -vvv input_stream --sout '#standard{access=http,mux=ogg,}' 
  • on the client(s), run:

* server side, HTTP, from file
/Applications/ -vvv ~/Movies/Bio\ Nano\ Technology-New\ Frontiers\
in\ Molecular\ Engineering\ -\ Andreas\ Mershin\ at\ TEDxAthens-sjV7NNwm1GU.mkv --sout
vlc -vvv input_stream --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:standard{access=http,mux=ogg,}' 
 vlc --sout="#duplicate{dst=std{access=file,mux=asf,dst='C:\test\test.asf'},dst=nodisplay}" 
  • For example, if you want to stream an audio CD in Ogg/Vorbis over HTTP:
 vlc -vvv cdda:/dev/cdrom --sout '#transcode{acodec=vorb,ab=128}:standard{access=http,mux=ogg,}' 

Ne zcela s jasnou souvislosti se streamingem videa z labky, ale pár poznámek ze streamingu videa/fotek z vebkamery pripojene k rbpi(3).

Pokud stačí típnutí fotky z webkamery…

sudo apt-get install fswebcam
fswebcam -r 640x480 --jpeg 85 -D 1 shot.jpg

Video (ale ani rbpi3 to rozumne nestíhá… možná použít jiný codec…)

sudo apt-get install vlc=nox
vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout="#transcode{vcodec=h264,vb=1800,scale=1,acodec=none}:rtp{sdp=rtsp://:8554/live.ts}" -I dummy

Na druhé straně ve vlc pustit network stream z adresy rtsp:ip_addr_rbpi:8554/live.ts''

  • projects/vlc_powered_streaming.1486754824.txt.gz
  • Last modified: 2017/02/10 19:27
  • by over23