aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-06-11 18:32:11 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-06-17 00:35:13 +0200
commitd71c86313274465062d400b65df684ceb7659caf (patch)
treea2ef1dde09facf88daea23db8a76b7d89ca2ebd9
parentecd7c9244d9e8966ff167d5875f878cdd4ed0c98 (diff)
downloadffmpeg-d71c86313274465062d400b65df684ceb7659caf.tar.gz
fate/video: Add media100 test
Tests both the Media 100 decoder (using the media100_to_mjpegb BSF implicitly) as well as using said BSF, followed by the MJPEGB decoder. (We currently hit a bug when remuxing: The demuxer treats compressorname as encoded in a Mac character encoding (Mac OS Roman?) and converts it to UTF-8, yet the muxer just writes it.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--tests/fate/video.mak4
-rw-r--r--tests/ref/fate/media10014
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/fate/video.mak b/tests/fate/video.mak
index dd886843e7..cd7008dcd0 100644
--- a/tests/fate/video.mak
+++ b/tests/fate/video.mak
@@ -251,6 +251,10 @@ fate-mdec: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/ea-dct/NFS2Esprit-pa
FATE_VIDEO-$(call FRAMECRC, STR, MDEC) += fate-mdec-v3
fate-mdec-v3: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/psx-str/abc000_cut.str -an
+FATE_VIDEO-$(call REMUX, MOV, MEDIA100_TO_MJPEGB_BSF MEDIA100_DECODER MJPEGB_DECODER) += fate-media100
+fate-media100: CMD = transcode mov $(TARGET_SAMPLES)/mjpegb/media100.mov mov \
+ "-map 0 -map 0 -c copy -bsf:v:0 media100_to_mjpegb -tag:v:0 mjpb" "-map 0"
+
FATE_VIDEO-$(call FRAMECRC, MSNWC_TCP, MIMIC) += fate-mimic
fate-mimic: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/mimic/mimic2-womanloveffmpeg.cam
diff --git a/tests/ref/fate/media100 b/tests/ref/fate/media100
new file mode 100644
index 0000000000..2fe5a0bffd
--- /dev/null
+++ b/tests/ref/fate/media100
@@ -0,0 +1,14 @@
+36ca02da1b757454a710e0879d32e19f *tests/data/fate/media100.mov
+155218 tests/data/fate/media100.mov
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 768x576
+#sar 0: 0/1
+#tb 1: 1/25
+#media_type 1: video
+#codec_id 1: rawvideo
+#dimensions 1: 768x576
+#sar 1: 0/1
+0, 0, 0, 1, 884736, 0x22304315
+1, 0, 0, 1, 884736, 0x22304315