[FFmpeg-user] Create subtitle playlist

Tom Evans tevans.uk at googlemail.com
Tue Oct 18 17:03:44 EEST 2016


On Mon, Oct 17, 2016 at 5:50 PM, Tung Tran <tung.tran at v247.com> wrote:
> Dear all
>
> Could you please point me the command to create .m3u8 playlist for
> subtitles on  HLS streaming (VoD) application. I have the .srt file but
> dont know how to make .m3u8 playlist from it.
>
> Thank you
>

Simply add the srt file as an input and convert to webvtt:

Eg:

> $ ffmpeg \
----> -i bones_s09e07.mp4 \
----> -i bones_s09e07.srt \
----> -c copy -c:s webvtt \
----> -start_number 0 -hls_time 10 -hls_list_size 0 \
----> -f hls \
----> out/index.m3u8

Cheers

Tom


More information about the ffmpeg-user mailing list