how to.. .subtitle track

About encoding, codec settings, muxers and filter usage
hislitermos
Blank Cone
Blank Cone
Posts: 35
Joined: 17 Aug 2013 14:54

how to.. .subtitle track

Postby hislitermos » 08 Jul 2014 15:00

Hello,
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
VLC tutorial page says:
Subtitles:
--sub-file=<string> Use subtitle file
Load this subtitle file. To be used when autodetect cannot detect
your subtitle file.
Acc.to given above explanation, I added --sub-autodetect-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
Result: I can not see "sub track" function active in VLC.
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

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: Bing [Bot] and 11 guests