Skip to content

Commit 878f07e

Browse files
authored
Merge pull request #15 from niamu/master
ffmpeg 6.0 support and new baseline dependency
2 parents 9bbcb1a + e279cd3 commit 878f07e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Nightfall is a library used internally by [Dim](https://github.com/vgarleanu/dim
88
3. Subtitle streaming
99

1010
# Dependencies
11-
`ffmpeg` > 4.1
11+
`ffmpeg` >= 6.0

src/profiles/audio.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ impl TranscodingProfile for AacTranscodeProfile {
8484
// timestamp.
8585
if ctx.output_ctx.start_num > 0 {
8686
args.append(&mut vec![
87-
"-hls_ts_options".into(),
87+
"-hls_segment_options".into(),
8888
"movflags=frag_custom+dash+delay_moov+frag_discont".into(),
8989
]);
9090
} else {
9191
args.append(&mut vec![
92-
"-hls_ts_options".into(),
92+
"-hls_segment_options".into(),
9393
"movflags=frag_custom+dash+delay_moov".into(),
9494
]);
9595
}

src/profiles/video.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,12 @@ pub(super) fn get_discont_flags(ctx: &ProfileContext) -> Vec<String> {
332332
// timestamp.
333333
if ctx.output_ctx.start_num > 0 {
334334
vec![
335-
"-hls_ts_options".into(),
335+
"-hls_segment_options".into(),
336336
"movflags=frag_custom+dash+delay_moov+frag_discont".into(),
337337
]
338338
} else {
339339
vec![
340-
"-hls_ts_options".into(),
340+
"-hls_segment_options".into(),
341341
"movflags=frag_custom+dash+delay_moov".into(),
342342
]
343343
}

0 commit comments

Comments
 (0)