While transcoding I have to create m3u8 playlist manually and now on-demand I want to create .ts files. I have used FFmpeg's cut option from start to end but .ts files have audio problems while getting played.
I have a command which creates ts files as well as m3u8.
ffmpeg -i input -g 10 -hls_time 3 -hls_list_size 0 out.m3u8
But as I said out.m3u8 I already have and the above command takes time to generate all ts files. Is there any other command in which I can generate one ts file when the start and end are given?
I have tried commands below:
ffmpeg -i input -acodec aac -vcodec h264 -ss 0 -to 3 chunk1.ts
ffmpeg -i input -acodec aac -vcodec h264 -ss 3 -to 6 chunk2.ts
...