forge
Explore
Log in

Don't you dare go Hollow

🐛 Test fixtures stop passing -top, which ffmpeg 9 removed; telecine pins top field first itself

Browse files at this commit

20a1c0483ae955562a965b37273fad4914f0cd05Ahmet Kaan GümüşParent: 401e092
crates/engine/tests/ivtc.rsmodified+2 -2
@@ -98,7 +98,7 @@ fn film(dir: &Path) -> (PathBuf, Vec<u8>) {
98 fn hard_mpeg2(dir: &Path, y4m: &Path) -> PathBuf {98 fn hard_mpeg2(dir: &Path, y4m: &Path) -> PathBuf {
99 let out = dir.join("hard.ts");99 let out = dir.join("hard.ts");
100 ffmpeg(&[100 ffmpeg(&[
101- "-i", s(y4m), "-vf", "telecine=pattern=23", "-flags", "+ilme+ildct", "-top", "1", "-c:v", "mpeg2video", "-qscale:v", "2",101+ "-i", s(y4m), "-vf", "telecine=pattern=23,setfield=tff", "-flags", "+ilme+ildct", "-c:v", "mpeg2video", "-qscale:v", "2",
102 "-g", "10", "-bf", "2", "-f", "mpegts", s(&out),102 "-g", "10", "-bf", "2", "-f", "mpegts", s(&out),
103 ]);103 ]);
104 out104 out
@@ -126,7 +126,7 @@ fn true_interlaced(dir: &Path, name: &str, codec: &str) -> PathBuf {
126 if codec == "libx264" {126 if codec == "libx264" {
127 args.extend(["-crf", "8", "-x264-params", "interlaced=1:tff=1:keyint=10:min-keyint=10:bframes=2"]);127 args.extend(["-crf", "8", "-x264-params", "interlaced=1:tff=1:keyint=10:min-keyint=10:bframes=2"]);
128 } else {128 } else {
129- args.extend(["-qscale:v", "2", "-g", "10", "-bf", "2", "-top", "1", "-f", "mpegts"]);129+ args.extend(["-qscale:v", "2", "-g", "10", "-bf", "2", "-f", "mpegts"]);
130 }130 }
131 args.push(s(&out));131 args.push(s(&out));
132 ffmpeg(&args);132 ffmpeg(&args);
crates/engine/tests/mpegps.rsmodified+2 -2
@@ -264,8 +264,8 @@ const MPEG1: &[&str] = &["-c:v", "mpeg1video", "-b:v", "2M", "-g", "10", "-bf",
264 /// MPEG-2 video, I/P/B, a GOP of ten.264 /// MPEG-2 video, I/P/B, a GOP of ten.
265 const MPEG2: &[&str] = &["-c:v", "mpeg2video", "-b:v", "4M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv420p"];265 const MPEG2: &[&str] = &["-c:v", "mpeg2video", "-b:v", "4M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv420p"];
266 /// The DVD's: interlaced, top field first.266 /// The DVD's: interlaced, top field first.
267-const DVD_V_TFF: &[&str] = &["-c:v", "mpeg2video", "-b:v", "6M", "-g", "12", "-bf", "2", "-pix_fmt", "yuv420p", "-flags", "+ildct+ilme", "-top", "1"];267+const DVD_V_TFF: &[&str] = &["-c:v", "mpeg2video", "-b:v", "6M", "-g", "12", "-bf", "2", "-pix_fmt", "yuv420p", "-flags", "+ildct+ilme"];
268-const DVD_V_BFF: &[&str] = &["-c:v", "mpeg2video", "-b:v", "6M", "-g", "12", "-bf", "2", "-pix_fmt", "yuv420p", "-flags", "+ildct+ilme", "-top", "0"];268+const DVD_V_BFF: &[&str] = &["-c:v", "mpeg2video", "-b:v", "6M", "-g", "12", "-bf", "2", "-pix_fmt", "yuv420p", "-flags", "+ildct+ilme"];
269 const DVD_V: &[&str] = &["-c:v", "mpeg2video", "-b:v", "6M", "-g", "12", "-bf", "2", "-pix_fmt", "yuv420p"];269 const DVD_V: &[&str] = &["-c:v", "mpeg2video", "-b:v", "6M", "-g", "12", "-bf", "2", "-pix_fmt", "yuv420p"];
270 const X264: &[&str] = &["-c:v", "libx264", "-x264-params", "keyint=10:min-keyint=10:bframes=2", "-pix_fmt", "yuv420p", "-strict", "-2"];270 const X264: &[&str] = &["-c:v", "libx264", "-x264-params", "keyint=10:min-keyint=10:bframes=2", "-pix_fmt", "yuv420p", "-strict", "-2"];
271 const MP2: &[&str] = &["-c:a", "mp2", "-b:a", "192k"];271 const MP2: &[&str] = &["-c:a", "mp2", "-b:a", "192k"];
crates/engine/tests/mpegts.rsmodified+2 -2
@@ -544,8 +544,8 @@ fn an_export_from_a_transport_stream_keeps_its_length_and_its_sync() {
544 /// MPEG-2 video, I/P/B, a GOP of ten.544 /// MPEG-2 video, I/P/B, a GOP of ten.
545 const MPEG2: &[&str] = &["-c:v", "mpeg2video", "-b:v", "4M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv420p"];545 const MPEG2: &[&str] = &["-c:v", "mpeg2video", "-b:v", "4M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv420p"];
546 /// MPEG-2 interlaced, top field first (the source is woven by the `interlace` filter).546 /// MPEG-2 interlaced, top field first (the source is woven by the `interlace` filter).
547-const MPEG2_TFF: &[&str] = &["-c:v", "mpeg2video", "-b:v", "4M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv420p", "-flags", "+ildct+ilme", "-top", "1"];547+const MPEG2_TFF: &[&str] = &["-c:v", "mpeg2video", "-b:v", "4M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv420p", "-flags", "+ildct+ilme"];
548-const MPEG2_BFF: &[&str] = &["-c:v", "mpeg2video", "-b:v", "4M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv420p", "-flags", "+ildct+ilme", "-top", "0"];548+const MPEG2_BFF: &[&str] = &["-c:v", "mpeg2video", "-b:v", "4M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv420p", "-flags", "+ildct+ilme"];
549 /// MPEG-2 4:2:2 profile.549 /// MPEG-2 4:2:2 profile.
550 const MPEG2_422: &[&str] = &["-c:v", "mpeg2video", "-b:v", "8M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv422p"];550 const MPEG2_422: &[&str] = &["-c:v", "mpeg2video", "-b:v", "8M", "-g", "10", "-bf", "2", "-pix_fmt", "yuv422p"];
551 const MP2: &[&str] = &["-c:a", "mp2", "-b:a", "192k"];551 const MP2: &[&str] = &["-c:a", "mp2", "-b:a", "192k"];
crates/engine/tests/procodecs.rsmodified+2 -2
@@ -131,7 +131,7 @@ fn prores_cases() -> Vec<Case> {
131 Case {131 Case {
132 name: "hq-interlaced",132 name: "hq-interlaced",
133 video: CARD_TFF,133 video: CARD_TFF,
134- vargs: &["-c:v", "prores_ks", "-profile:v", "3", "-flags", "+ildct", "-top", "1", "-pix_fmt", "yuv422p10le"],134+ vargs: &["-c:v", "prores_ks", "-profile:v", "3", "-flags", "+ildct", "-pix_fmt", "yuv422p10le"],
135 ext: "mov",135 ext: "mov",
136 codec: Codec::ProRes,136 codec: Codec::ProRes,
137 profile: Some("422 HQ"),137 profile: Some("422 HQ"),
@@ -182,7 +182,7 @@ fn dnxhd_cases() -> Vec<Case> {
182 Case {182 Case {
183 name: "dnxhd-interlaced",183 name: "dnxhd-interlaced",
184 video: HD_TFF,184 video: HD_TFF,
185- vargs: &["-c:v", "dnxhd", "-b:v", "120M", "-flags", "+ildct", "-top", "1", "-pix_fmt", "yuv422p"],185+ vargs: &["-c:v", "dnxhd", "-b:v", "120M", "-flags", "+ildct", "-pix_fmt", "yuv422p"],
186 ext: "mov",186 ext: "mov",
187 codec: Codec::Dnxhd,187 codec: Codec::Dnxhd,
188 profile: Some("DNxHD 120"),188 profile: Some("DNxHD 120"),