Skip to content

Commit 1f0f8e9

Browse files
committed
fix to annexb
1 parent 5b4035a commit 1f0f8e9

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

Diff for: src/lib.rs

+16-4
Original file line numberDiff line numberDiff line change
@@ -327,18 +327,30 @@ fn handle(params: HandleParams) -> anyhow::Result<()> {
327327
match video_input.codec().id() {
328328
Id::H264 => {
329329
video_filters.push(init_bsf(
330-
"h264_metadata",
330+
"h264_mp4toannexb",
331331
&video_parameters,
332332
time_base,
333-
&[("aud".into(), "insert".into())],
333+
&[],
334334
)?);
335+
// video_filters.push(init_bsf(
336+
// "h264_metadata",
337+
// &video_parameters,
338+
// time_base,
339+
// &[("aud".into(), "insert".into())],
340+
// )?);
335341
}
336342
Id::HEVC | Id::H265 => {
343+
// video_filters.push(init_bsf(
344+
// "hevc_metadata",
345+
// &video_parameters,
346+
// time_base,
347+
// &[("aud".into(), "insert".into())],
348+
// )?);
337349
video_filters.push(init_bsf(
338-
"hevc_metadata",
350+
"hevc_mp4toannexb",
339351
&video_parameters,
340352
time_base,
341-
&[("aud".into(), "insert".into())],
353+
&[],
342354
)?);
343355
}
344356
_ => {}

0 commit comments

Comments
 (0)