VLC Streaming


Sample commands of VLC as streaming server on windows 10. Client uses vlc.exe menu Media – Open Network Stream.
set VLC=D:\VLCPortable223\VLCPortable.exe
set MEDIA=Gym2017bshort.mp4
http:
Server: %VLC% –intf dummy –sout=#std{access=http,mux=ts,dst=0.0.0.0:8080} %MEDIA%
Client: http://localhost:8080
rtp: over udp
Server: %VLC% -vvv %MEDIA% –sout “#transcode{vcodec=h264,vb=0,scale=0,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,port=8080,mux=ts,ttl=10}”
Client: rtp://@:8080
udp:
Server: %VLC% -vvv %MEDIA% –sout “#transcode{vcodec=h264,vb=0,scale=0,acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=127.0.0.1:8080}”
Client: udp://@:8080
rtsp:
Server: %VLC% -vvv %MEDIA% –sout “#transcode{vcodec=h264,vb=0,scale=0,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://127.0.0.1:8080/test}”
Client: rtsp://127.0.0.1:8080/test
multicast:
Server: %VLC% -vvv %MEDIA% –sout “#transcode{vcodec=h264,vb=0,scale=0,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=239.255.12.42,port=8080,mux=ts,ttl=10}”
Client: rtp://239.255.12.42:8080
Remotely control server:
Start server: %VLC% –intf rc –rc-host 127.0.0.1:12345 –sout=#std{access=http,mux=ts,dst=0.0.0.0:8080}
Open command console: telnet localhost 12345
enter: add Gym2017bshort.mp4
Start client: http://localhost:8080
In telnet console, before reaching end of media, enter this command to seek media:
seek 1%

Advertisements