forge
Explore
Log in

Don't you dare go Hollow

tests: ffmpeg 9 removed the -top encoder option; interlaced cases use -vf setfield=tff/bff (verified field_order tt/bb)

Browse files at this commit

4104c6c466c02095c8d93893ed4c7e9c45fd6a2eAhmet Kaan GümüşParent: be88845
crates/ec-mpeg2/tests/ffmpeg_parity.rsmodified+9 -9
@@ -22,23 +22,23 @@ const CASES: &[Case] = &[
22 Case { tag: "mpeg1_noise", size: "176x144", frames: 10, src: "testsrc2,noise=alls=40:allf=t", enc: &["-c:v", "mpeg1video", "-g", "5", "-bf", "2", "-qscale:v", "2"], pix: "yuv420p" },22 Case { tag: "mpeg1_noise", size: "176x144", frames: 10, src: "testsrc2,noise=alls=40:allf=t", enc: &["-c:v", "mpeg1video", "-g", "5", "-bf", "2", "-qscale:v", "2"], pix: "yuv420p" },
23 Case { tag: "noise_q1", size: "176x144", frames: 8, src: "testsrc2,noise=alls=60:allf=t", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "1"], pix: "yuv420p" },23 Case { tag: "noise_q1", size: "176x144", frames: 8, src: "testsrc2,noise=alls=60:allf=t", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "1"], pix: "yuv420p" },
24 Case { tag: "noise_q31", size: "176x144", frames: 8, src: "testsrc2,noise=alls=60:allf=t", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "31"], pix: "yuv420p" },24 Case { tag: "noise_q31", size: "176x144", frames: 8, src: "testsrc2,noise=alls=60:allf=t", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "31"], pix: "yuv420p" },
25- Case { tag: "ilace_tff", size: "352x288", frames: 10, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-qscale:v", "4", "-flags", "+ildct+ilme", "-top", "1"], pix: "yuv420p" },25+ Case { tag: "ilace_tff", size: "352x288", frames: 10, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-qscale:v", "4", "-flags", "+ildct+ilme", "-vf", "setfield=tff"], pix: "yuv420p" },
26- Case { tag: "ilace_bff", size: "352x288", frames: 10, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-qscale:v", "4", "-flags", "+ildct+ilme", "-top", "0"], pix: "yuv420p" },26+ Case { tag: "ilace_bff", size: "352x288", frames: 10, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-qscale:v", "4", "-flags", "+ildct+ilme", "-vf", "setfield=bff"], pix: "yuv420p" },
27- Case { tag: "ilace_ildct_only", size: "352x288", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "4", "-flags", "+ildct", "-top", "1"], pix: "yuv420p" },27+ Case { tag: "ilace_ildct_only", size: "352x288", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "4", "-flags", "+ildct", "-vf", "setfield=tff"], pix: "yuv420p" },
28- Case { tag: "altscan", size: "352x288", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "4", "-alternate_scan", "1", "-flags", "+ildct+ilme", "-top", "1"], pix: "yuv420p" },28+ Case { tag: "altscan", size: "352x288", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "4", "-alternate_scan", "1", "-flags", "+ildct+ilme", "-vf", "setfield=tff"], pix: "yuv420p" },
29 Case { tag: "intra_vlc", size: "176x144", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "3", "-intra_vlc", "1"], pix: "yuv420p" },29 Case { tag: "intra_vlc", size: "176x144", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "3", "-intra_vlc", "1"], pix: "yuv420p" },
30 Case { tag: "nonlinear", size: "176x144", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "6", "-non_linear_quant", "1", "-qmax", "28"], pix: "yuv420p" },30 Case { tag: "nonlinear", size: "176x144", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "6", "-non_linear_quant", "1", "-qmax", "28"], pix: "yuv420p" },
31 Case { tag: "dc8", size: "176x144", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "3", "-intra_dc_precision", "0"], pix: "yuv420p" },31 Case { tag: "dc8", size: "176x144", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "3", "-intra_dc_precision", "0"], pix: "yuv420p" },
32 Case { tag: "dc9", size: "176x144", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "3", "-intra_dc_precision", "1"], pix: "yuv420p" },32 Case { tag: "dc9", size: "176x144", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "3", "-intra_dc_precision", "1"], pix: "yuv420p" },
33 Case { tag: "dc10", size: "176x144", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "3", "-intra_dc_precision", "2"], pix: "yuv420p" },33 Case { tag: "dc10", size: "176x144", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "3", "-intra_dc_precision", "2"], pix: "yuv420p" },
34 Case { tag: "dc11", size: "176x144", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "3", "-intra_dc_precision", "3"], pix: "yuv420p" },34 Case { tag: "dc11", size: "176x144", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "3", "-intra_dc_precision", "3"], pix: "yuv420p" },
35- Case { tag: "all_tools", size: "352x288", frames: 10, src: "testsrc2,noise=alls=20:allf=t", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-qscale:v", "5", "-alternate_scan", "1", "-intra_vlc", "1", "-non_linear_quant", "1", "-qmax", "28", "-intra_dc_precision", "2", "-flags", "+ildct+ilme", "-top", "0"], pix: "yuv420p" },35+ Case { tag: "all_tools", size: "352x288", frames: 10, src: "testsrc2,noise=alls=20:allf=t", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-qscale:v", "5", "-alternate_scan", "1", "-intra_vlc", "1", "-non_linear_quant", "1", "-qmax", "28", "-intra_dc_precision", "2", "-flags", "+ildct+ilme", "-vf", "setfield=bff"], pix: "yuv420p" },
36 Case { tag: "p422", size: "176x144", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "3"], pix: "yuv422p" },36 Case { tag: "p422", size: "176x144", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "3"], pix: "yuv422p" },
37- Case { tag: "p422_ilace", size: "352x288", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "3", "-flags", "+ildct+ilme", "-top", "1"], pix: "yuv422p" },37+ Case { tag: "p422_ilace", size: "352x288", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-qscale:v", "3", "-flags", "+ildct+ilme", "-vf", "setfield=tff"], pix: "yuv422p" },
38 Case { tag: "p422_intra", size: "352x288", frames: 4, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "1", "-qscale:v", "2", "-intra_vlc", "1", "-intra_dc_precision", "3"], pix: "yuv422p" },38 Case { tag: "p422_intra", size: "352x288", frames: 4, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "1", "-qscale:v", "2", "-intra_vlc", "1", "-intra_dc_precision", "3"], pix: "yuv422p" },
39- Case { tag: "sd_pal", size: "720x576", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-b:v", "6M", "-flags", "+ildct+ilme", "-top", "1"], pix: "yuv420p" },39+ Case { tag: "sd_pal", size: "720x576", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-b:v", "6M", "-flags", "+ildct+ilme", "-vf", "setfield=tff"], pix: "yuv420p" },
40- Case { tag: "sd_ntsc", size: "720x480", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-b:v", "6M", "-flags", "+ildct+ilme", "-top", "0"], pix: "yuv420p" },40+ Case { tag: "sd_ntsc", size: "720x480", frames: 8, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-b:v", "6M", "-flags", "+ildct+ilme", "-vf", "setfield=bff"], pix: "yuv420p" },
41- Case { tag: "hd_1080i", size: "1920x1080", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-b:v", "20M", "-flags", "+ildct+ilme", "-top", "1"], pix: "yuv420p" },41+ Case { tag: "hd_1080i", size: "1920x1080", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "6", "-bf", "2", "-b:v", "20M", "-flags", "+ildct+ilme", "-vf", "setfield=tff"], pix: "yuv420p" },
42 Case { tag: "hd_1080p_422", size: "1920x1080", frames: 4, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-b:v", "40M"], pix: "yuv422p" },42 Case { tag: "hd_1080p_422", size: "1920x1080", frames: 4, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "4", "-bf", "1", "-b:v", "40M"], pix: "yuv422p" },
43 Case { tag: "mandel", size: "352x288", frames: 8, src: "mandelbrot", enc: &["-c:v", "mpeg2video", "-g", "5", "-bf", "2", "-qscale:v", "3", "-flags", "+ildct+ilme"], pix: "yuv420p" },43 Case { tag: "mandel", size: "352x288", frames: 8, src: "mandelbrot", enc: &["-c:v", "mpeg2video", "-g", "5", "-bf", "2", "-qscale:v", "3", "-flags", "+ildct+ilme"], pix: "yuv420p" },
44 Case { tag: "odd_size", size: "200x120", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "4"], pix: "yuv420p" },44 Case { tag: "odd_size", size: "200x120", frames: 6, src: "testsrc2", enc: &["-c:v", "mpeg2video", "-g", "3", "-bf", "1", "-qscale:v", "4"], pix: "yuv420p" },
crates/ec-mpegts/tests/it/ffmpeg_parity.rsmodified+2 -2
@@ -210,8 +210,8 @@ fn parity_cases() {
210 "aac",210 "aac",
211 "-flags",211 "-flags",
212 "+ildct+ilme",212 "+ildct+ilme",
213- "-top",213+ "-vf",
214- "1",214+ "setfield=tff",
215 "-x264-params",215 "-x264-params",
216 "interlaced=1:tff=1",216 "interlaced=1:tff=1",
217 ],217 ],
crates/ec-mpegts/tests/it/ps.rsmodified+2 -2
@@ -366,8 +366,8 @@ fn ps_parity_cases() {
366 "2",366 "2",
367 "-flags",367 "-flags",
368 "+ildct+ilme",368 "+ildct+ilme",
369- "-top",369+ "-vf",
370- "1",370+ "setfield=tff",
371 ],371 ],
372 &["-c:a", "ac3"],372 &["-c:a", "ac3"],
373 &["-f", "vob"],373 &["-f", "vob"],
crates/ec-prores/tests/ffmpeg_parity.rsmodified+6 -6
@@ -78,14 +78,14 @@ const CASES: &[Case] = &[
78 c!("bpm_small", "96x64", 2, "testsrc2,noise=alls=40:allf=t", ["prores_ks", "-profile", "3", "-bits_per_mb", "300"], P422, O422),78 c!("bpm_small", "96x64", 2, "testsrc2,noise=alls=40:allf=t", ["prores_ks", "-profile", "3", "-bits_per_mb", "300"], P422, O422),
79 c!("bpm_big", "96x64", 2, "testsrc2,noise=alls=40:allf=t", ["prores_ks", "-profile", "5", "-bits_per_mb", "4000"], P444, O444),79 c!("bpm_big", "96x64", 2, "testsrc2,noise=alls=40:allf=t", ["prores_ks", "-profile", "5", "-bits_per_mb", "4000"], P444, O444),
80 // Interlaced.80 // Interlaced.
81- c!("ilace_tff", "128x96", 3, "testsrc2", ["prores_ks", "-profile", "3", "-flags", "+ildct", "-top", "1"], P422, O422),81+ c!("ilace_tff", "128x96", 3, "testsrc2", ["prores_ks", "-profile", "3", "-flags", "+ildct", "-vf", "setfield=tff"], P422, O422),
82- c!("ilace_bff", "128x96", 3, "testsrc2", ["prores_ks", "-profile", "3", "-flags", "+ildct", "-top", "0"], P422, O422),82+ c!("ilace_bff", "128x96", 3, "testsrc2", ["prores_ks", "-profile", "3", "-flags", "+ildct", "-vf", "setfield=bff"], P422, O422),
83- c!("ilace_444", "128x96", 2, "testsrc2", ["prores_ks", "-profile", "4", "-flags", "+ildct", "-top", "1"], P444, O444),83+ c!("ilace_444", "128x96", 2, "testsrc2", ["prores_ks", "-profile", "4", "-flags", "+ildct", "-vf", "setfield=tff"], P444, O444),
84- c!("ilace_odd", "98x70", 2, "testsrc2", ["prores_ks", "-profile", "2", "-flags", "+ildct", "-top", "1"], P422, O422),84+ c!("ilace_odd", "98x70", 2, "testsrc2", ["prores_ks", "-profile", "2", "-flags", "+ildct", "-vf", "setfield=tff"], P422, O422),
85- c!("ilace_alpha", "96x64", 2, "testsrc2,format=yuva444p10le,geq=lum='lum(X,Y)':cb='cb(X,Y)':cr='cr(X,Y)':a='mod(X*13+Y*7,1024)'", ["prores_ks", "-profile", "4", "-flags", "+ildct", "-top", "0"], PA, OA),85+ c!("ilace_alpha", "96x64", 2, "testsrc2,format=yuva444p10le,geq=lum='lum(X,Y)':cb='cb(X,Y)':cr='cr(X,Y)':a='mod(X*13+Y*7,1024)'", ["prores_ks", "-profile", "4", "-flags", "+ildct", "-vf", "setfield=bff"], PA, OA),
86 c!("ilace_mbs2", "128x96", 2, "testsrc2", ["prores_ks", "-profile", "1", "-flags", "+ildct", "-mbs_per_slice", "2"], P422, O422),86 c!("ilace_mbs2", "128x96", 2, "testsrc2", ["prores_ks", "-profile", "1", "-flags", "+ildct", "-mbs_per_slice", "2"], P422, O422),
87 // Bigger.87 // Bigger.
88- c!("sd_pal", "720x576", 2, "testsrc2", ["prores_ks", "-profile", "3", "-flags", "+ildct", "-top", "1"], P422, O422),88+ c!("sd_pal", "720x576", 2, "testsrc2", ["prores_ks", "-profile", "3", "-flags", "+ildct", "-vf", "setfield=tff"], P422, O422),
89 c!("hd_1080", "1920x1080", 2, "testsrc2,noise=alls=10:allf=t", ["prores_ks", "-profile", "3"], P422, O422),89 c!("hd_1080", "1920x1080", 2, "testsrc2,noise=alls=10:allf=t", ["prores_ks", "-profile", "3"], P422, O422),
90 c!("hd_1080_4444", "1920x1080", 1, "mandelbrot", ["prores_ks", "-profile", "4"], P444, O444),90 c!("hd_1080_4444", "1920x1080", 1, "mandelbrot", ["prores_ks", "-profile", "4"], P444, O444),
91 ];91 ];