diff options
author | James Almer <jamrial@gmail.com> | 2024-03-13 10:54:22 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-03-14 10:00:03 -0300 |
commit | d925b2e13982b528e5feb0392d4edcaaa386525f (patch) | |
tree | 00c76ca32314f4ca4ea8051ec9d4e5e7e36db0d5 /tests | |
parent | 8ff4a4a4f4f73c5e276fa0cbe6cd5a148ebdd4ae (diff) | |
download | ffmpeg-d925b2e13982b528e5feb0392d4edcaaa386525f.tar.gz |
fate/ffmpeg: add a test for loopback decoding
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/ffmpeg.mak | 7 | ||||
-rw-r--r-- | tests/ref/fate/ffmpeg-loopback-decoding | 57 |
2 files changed, 64 insertions, 0 deletions
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak index 669c878c7f..e1705141ec 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 - -flags +bitexact -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 |