Stream local files and remote streams
Posted: 28 Oct 2019 00:33
Hello,
I use VLC for years, but never knew that it could forward streams or stream local files.
I tried to forward a local mp4 file, and a youtube link, and a IPTV stream but cannot get it working.
The reason why i want this is to save data, synchronize playback, and not be limited by the IPTV connections (I know we then watch the same channel but thats fine, like a restream).
Im running Linux server 18.04
Is there a way to stream a file like example.mp4 and make it that everyone that opens 192.168.178.10:8080/stream on my local network to see the same video, and if 1 looks after 1 minute and 1 person looks after 5 minutes they are as the same part in the video ?
And how can i choose what file to play, or wich stream ?
I tried like:
cvlc big_buck_bunny_720p_30mb.mp4 :sout=#http{mux=ffmpeg{mux=flv},dst=:8080/stream} :sout-keep
cvlc big_buck_bunny_720p_30mb.mp4 :sout=#transcode{vcodec=h264,vb=3500,width=1920,height=1080,acodec=mp3,ab=192,channels=2,samplerate=44100,scodec=none} :no-sout-all :sout-keep
and many more, but when i open a network stream in VLC on my Phone on same network its not working.
I use VLC for years, but never knew that it could forward streams or stream local files.
I tried to forward a local mp4 file, and a youtube link, and a IPTV stream but cannot get it working.
The reason why i want this is to save data, synchronize playback, and not be limited by the IPTV connections (I know we then watch the same channel but thats fine, like a restream).
Im running Linux server 18.04
Is there a way to stream a file like example.mp4 and make it that everyone that opens 192.168.178.10:8080/stream on my local network to see the same video, and if 1 looks after 1 minute and 1 person looks after 5 minutes they are as the same part in the video ?
And how can i choose what file to play, or wich stream ?
I tried like:
cvlc big_buck_bunny_720p_30mb.mp4 :sout=#http{mux=ffmpeg{mux=flv},dst=:8080/stream} :sout-keep
cvlc big_buck_bunny_720p_30mb.mp4 :sout=#transcode{vcodec=h264,vb=3500,width=1920,height=1080,acodec=mp3,ab=192,channels=2,samplerate=44100,scodec=none} :no-sout-all :sout-keep
and many more, but when i open a network stream in VLC on my Phone on same network its not working.