Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view


Mehrab Azad
i'm recording a live streaming link with the command below

ffmpeg -loglevel quiet -fflags +igndts -y -i "link" -copyts -c:a aac
-c:v copy -bsf:a aac_adtstoasc -ac 2 -f ssegment -segment_time 10
-segment_format mpegts -strftime 1 C:\%Y%m%d%H%M%S.ts

then i will make an .m3u8 file manually out of these ts files and it works fine.

but sometimes ffmpeg gets stuck ( for any reason, that's not the
question here ) and so i have to rerun the command above.

so my ts files are not sequential ( i lose couple of seconds in the middle)

and when i make the m3u8 file, most players cannot play the m3u8 file
after that ts anymore, but players like VLC have no problem.

i have solved the problem with concating all the ts files in one ts file.
and then convert the file into m3u8 file via ffmpeg with following command:

ffmpeg -fflags +igndts -i C:\joined_files.ts -c copy -hls_list_size 0

and the problem will be solved and any player can play the new file.

(it is worth mentioning that only when i add -fflags +igndts to the
convert command it will solve the problem,

so i think the problem is with timestamps when i skip some seconds... )

so here's the question:

can i use some other options in my recording ffmpeg command that can
solve the problem?

so i don't have to concat the files and reConvert it via ffmpeg? that
would be awesome. i have ommited igndts and -copyts in the recording

but it didn't made any difference.

ffmpeg-user mailing list
[hidden email]

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".