* [FFmpeg-devel] [PATCH] fate/ffmpeg: add a test for loopback decoding
@ 2024-03-13 13:56 James Almer
0 siblings, 0 replies; only message in thread
From: James Almer @ 2024-03-13 13:56 UTC (permalink / raw)
To: ffmpeg-devel
Signed-off-by: James Almer <jamrial@gmail.com>
---
tests/fate/ffmpeg.mak | 7 +++
tests/ref/fate/ffmpeg-loopback-decoding | 57 +++++++++++++++++++++++++
2 files changed, 64 insertions(+)
create mode 100644 tests/ref/fate/ffmpeg-loopback-decoding
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak
index 669c878c7f..aab9d103e1 100644
--- a/tests/fate/ffmpeg.mak
+++ b/tests/fate/ffmpeg.mak
@@ -254,3 +254,10 @@ fate-ffmpeg-streamcopy-t: CMD = ffmpeg
-stream_loop -1 -f rawvideo -s 352x288 -pix_fmt yuv420p -i $(TARGET_PATH)/tests/data/vsynth_lena.yuv \
-c copy -f null -t 1 -
FATE_FFMPEG-$(call REMUX, RAWVIDEO) += fate-ffmpeg-streamcopy-t
+
+# Test loopback decoding and passing the output to a complex graph.
+fate-ffmpeg-loopback-decoding: tests/data/vsynth_lena.yuv
+fate-ffmpeg-loopback-decoding: CMD = transcode \
+ "rawvideo -s 352x288 -pix_fmt yuv420p" $(TARGET_PATH)/tests/data/vsynth_lena.yuv nut \
+ "-map 0:v:0 -c:v mpeg2video -f null - -dec 0:0 -filter_complex '[0:v][dec:0]hstack[stack]' -map '[stack]' -c:v ffv1" ""
+FATE_FFMPEG-$(call ENCDEC2, MPEG2VIDEO, FFV1, NUT, HSTACK_FILTER PIPE_PROTOCOL FRAMECRC_MUXER) += fate-ffmpeg-loopback-decoding
diff --git a/tests/ref/fate/ffmpeg-loopback-decoding b/tests/ref/fate/ffmpeg-loopback-decoding
new file mode 100644
index 0000000000..e535b9060f
--- /dev/null
+++ b/tests/ref/fate/ffmpeg-loopback-decoding
@@ -0,0 +1,57 @@
+faefe475118cacc36dff3cab59baa6cf *tests/data/fate/ffmpeg-loopback-decoding.nut
+6478832 tests/data/fate/ffmpeg-loopback-decoding.nut
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 704x288
+#sar 0: 0/1
+0, 0, 0, 1, 304128, 0xe07dafdd
+0, 1, 1, 1, 304128, 0xc5734e5d
+0, 2, 2, 1, 304128, 0x855acdcc
+0, 3, 3, 1, 304128, 0x4ad94309
+0, 4, 4, 1, 304128, 0x174ebea3
+0, 5, 5, 1, 304128, 0xdb416da6
+0, 6, 6, 1, 304128, 0x72442b79
+0, 7, 7, 1, 304128, 0x00ddf9ed
+0, 8, 8, 1, 304128, 0xe7e7a773
+0, 9, 9, 1, 304128, 0x7df26501
+0, 10, 10, 1, 304128, 0x4f5a3eb3
+0, 11, 11, 1, 304128, 0x1ad35b6c
+0, 12, 12, 1, 304128, 0xec8e6f56
+0, 13, 13, 1, 304128, 0xb237e0ef
+0, 14, 14, 1, 304128, 0x55b26ce2
+0, 15, 15, 1, 304128, 0x22920436
+0, 16, 16, 1, 304128, 0x54eea0c0
+0, 17, 17, 1, 304128, 0x17113686
+0, 18, 18, 1, 304128, 0xeb9ae1af
+0, 19, 19, 1, 304128, 0x1ba09d4c
+0, 20, 20, 1, 304128, 0x0100748f
+0, 21, 21, 1, 304128, 0xcc914570
+0, 22, 22, 1, 304128, 0x9bc21952
+0, 23, 23, 1, 304128, 0xc118d0af
+0, 24, 24, 1, 304128, 0x7e4b2df0
+0, 25, 25, 1, 304128, 0x1078bff2
+0, 26, 26, 1, 304128, 0xeedbeda1
+0, 27, 27, 1, 304128, 0x35ac0a1b
+0, 28, 28, 1, 304128, 0x3644fb76
+0, 29, 29, 1, 304128, 0x5efa175c
+0, 30, 30, 1, 304128, 0x72c14f39
+0, 31, 31, 1, 304128, 0xd7c46bb0
+0, 32, 32, 1, 304128, 0x20f368ab
+0, 33, 33, 1, 304128, 0x9bea7ced
+0, 34, 34, 1, 304128, 0xf1b66b94
+0, 35, 35, 1, 304128, 0x3e5e6815
+0, 36, 36, 1, 304128, 0x6c2d5e3a
+0, 37, 37, 1, 304128, 0x763046b0
+0, 38, 38, 1, 304128, 0x05f71f4c
+0, 39, 39, 1, 304128, 0x3db72dff
+0, 40, 40, 1, 304128, 0x86e34c11
+0, 41, 41, 1, 304128, 0x09334889
+0, 42, 42, 1, 304128, 0xc8566851
+0, 43, 43, 1, 304128, 0x4a7ec9da
+0, 44, 44, 1, 304128, 0x609a176b
+0, 45, 45, 1, 304128, 0x98deede0
+0, 46, 46, 1, 304128, 0x59ee66a3
+0, 47, 47, 1, 304128, 0x0fc5c8c2
+0, 48, 48, 1, 304128, 0x0371d7b0
+0, 49, 49, 1, 304128, 0xd81c18cf
--
2.44.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-13 13:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 13:56 [FFmpeg-devel] [PATCH] fate/ffmpeg: add a test for loopback decoding James Almer
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git