Try custom fmp4 movflags

It seems presentation time and durations are not consistent with
previous segments so the hls renderer can't keep up
This commit is contained in:
Zoe Roux 2024-07-01 08:08:48 +00:00
parent 61f800d4c2
commit e85d2d4416
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ in
go
wgo
mediainfo
bento4
ffmpeg-full
postgresql_15
pgformatter

View File

@ -251,7 +251,7 @@ func (ts *Stream) run(start int32) error {
// when segments are short (can make the video repeat itself)
"-segment_time_delta", "0.05",
"-segment_format", "mp4",
"-segment_format_options", "movflags=dash",
"-segment_format_options", "movflags=frag_keyframe+empty_moov+omit_tfhd_offset+faststart",
"-segment_times", toSegmentStr(Map(segments, func(seg float64, _ int) float64 {
// segment_times want durations, not timestamps so we must subtract the -ss param
// since we give a greater value to -ss to prevent wrong seeks but -segment_times