How can I convert MP4 to HLS with rendering subtitle?

0

ffmpeg -i /path/to/video.mp4 -codec: copy -bsf:v h264_mp4toannexb \
    -start_number 0 -hls_time 10 -hls_list_size 0 -f hls /path/to/outhls/index.m3u8

My ffmpeg:

enter image description here

How can I convert MP4 to HLS with rendering subtitle?

Ahmet ÖZDEMİR

Posted 2019-09-03T07:58:04.023

Reputation: 1

Question was closed 2019-09-03T12:20:36.980

Your ffmpeg is very outdated. Please update to a newer version. Also, please specify what you want – do you want the subtitles hardcoded in the video? Please show the complete, uncut command line output of your conversion command, not just the ffmpeg version. – slhck – 2019-09-03T10:09:02.167

@slhck; I want to embed the subtitles in the video to prevent them from being download – Ahmet ÖZDEMİR – 2019-09-03T11:50:19.867

See the linked question and use the subtitles filter. Note that this means you cannot do a bitstream copy (-c copy) but have to re-encode the video. – slhck – 2019-09-03T12:21:02.570

first add subtitles and then convert it to hls I understood correctly ? – Ahmet ÖZDEMİR – 2019-09-05T14:43:09.960

No answers