mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
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:
parent
61f800d4c2
commit
e85d2d4416
@ -32,6 +32,7 @@ in
|
|||||||
go
|
go
|
||||||
wgo
|
wgo
|
||||||
mediainfo
|
mediainfo
|
||||||
|
bento4
|
||||||
ffmpeg-full
|
ffmpeg-full
|
||||||
postgresql_15
|
postgresql_15
|
||||||
pgformatter
|
pgformatter
|
||||||
|
@ -251,7 +251,7 @@ func (ts *Stream) run(start int32) error {
|
|||||||
// when segments are short (can make the video repeat itself)
|
// when segments are short (can make the video repeat itself)
|
||||||
"-segment_time_delta", "0.05",
|
"-segment_time_delta", "0.05",
|
||||||
"-segment_format", "mp4",
|
"-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", toSegmentStr(Map(segments, func(seg float64, _ int) float64 {
|
||||||
// segment_times want durations, not timestamps so we must subtract the -ss param
|
// 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
|
// since we give a greater value to -ss to prevent wrong seeks but -segment_times
|
||||||
|
Loading…
x
Reference in New Issue
Block a user