This is an old revision of the document!
Documentation: https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/
HTTP streaming
Stream in HTTP:
- on the server, run:
vlc -vvv input_stream --sout '#standard{access=http,mux=ogg,dst=server.example.org:8080}'
- on the client(s), run:
vlc http://server.example.org:8080
Transcode and stream in HTTP
vlc -vvv input_stream --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:standard{access=http,mux=ogg,dst=server.example.org:8080}'
Recording a live video stream
vlc http://example.com/live.asf --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,dst=server.example.org:8080}'
Dronovo poznámky
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á 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''