My aim is to be able to display subtitle at vlc player.
Below is streaming code without subtitle file:
Code: Select all
sudo -u ermos cvlc -vvv /var/www/html/en/3.mp4 --live-caching=300 --sout '#transcode{vcodec=xvid,fps=24,acodec=mp4a,vb=4016,ab=93,canvas-width=536,canvas-height=1280,scale=1,channels=2,deinterlace} :standard{access=http,mux=ts,dst=remoteip:14001/movie}' :sout-mux-caching=2900 --sout-all
Acc.to given above explanation, I added --sub-autodetect-file.Subtitles:
--sub-file=<string> Use subtitle file
Load this subtitle file. To be used when autodetect cannot detect
your subtitle file.
The final code is:
Code: Select all
sudo -u ermos cvlc -vvv /var/www/html/en/3.mp4 --sub-autodetect-file --live-caching=300 --sout '#transcode{vcodec=xvid,fps=24,acodec=mp4a,vb=4016,ab=93,canvas-width=536,canvas-height=1280,scale=1,channels=2,deinterlace} :standard{access=http,mux=ts,dst=remoteip:!4001/movie}' :sout-mux-caching=2900 --sout-all
PS: I copied srt file into same path as 3.srt
How can I make it active when movie get started , can anybody guide me?
Thanks in advance
Ermos