diff options
author | Martin Storsjö <martin@martin.st> | 2015-11-06 01:12:11 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-11-10 22:50:25 +0300 |
commit | 59e8ec0aa8ab174701d01a3bfe96fedd0b7fcead (patch) | |
tree | f86bca8dfef6f20b7dae5f4aa726195c72a12993 /tests | |
parent | 8ad5124b7ecf7f727724e270a7b4bb8c7bcbf6a4 (diff) |
movenc: Add an API unit test for fragmenting options/calls
Contrary to the normal fate tests that run via avconv, this tests
nontrivial call sequences that are only doable via the API
(mainly for different corner cases when using the muxer for
segmenting).
The test muxes fake packet data (with extradata that looks
enough like proper data to make the file be viewable with e.g.
boxdumper) and checks the hash of the produced files. The test also
verifies that fragments produced via different call sequences remain
identical (to avoid e.g. updating the output hashes and suddenly
having fragments that used to be identical suddenly diverging), for
fragments written with frag_discont and/or delay_moov.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fate/libavformat.mak | 4 | ||||
-rw-r--r-- | tests/ref/fate/movenc | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/fate/libavformat.mak b/tests/fate/libavformat.mak index a9c02bcbaf..b9cca35d30 100644 --- a/tests/fate/libavformat.mak +++ b/tests/fate/libavformat.mak @@ -14,5 +14,9 @@ FATE_LIBAVFORMAT-yes += fate-url fate-url: libavformat/url-test$(EXESUF) fate-url: CMD = run libavformat/url-test +FATE_LIBAVFORMAT-$(CONFIG_MOV_MUXER) += fate-movenc +fate-movenc: libavformat/movenc-test$(EXESUF) +fate-movenc: CMD = run libavformat/movenc-test + FATE-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT-yes) fate-libavformat: $(FATE_LIBAVFORMAT) diff --git a/tests/ref/fate/movenc b/tests/ref/fate/movenc new file mode 100644 index 0000000000..929f146e1e --- /dev/null +++ b/tests/ref/fate/movenc @@ -0,0 +1,20 @@ +4e7e78793cdda3c9ed28fbf47df39c43 2449 non-empty-moov +5b825dc829f35c9d5b76834c378276d7 2897 non-empty-moov-elst +0fd659671dec7d05cfa533a4579b1d6d 2817 non-empty-moov-no-elst +890ad73874bff5aefbd549bc75a15b8e 9139 ismv +aa6f42a0546a27f7047f1cff812a552f 2327 empty-moov +9a439649d13cdcddf6179234fe3d8a8e 2727 empty-moov-no-elst +2451cb44e678845ed26e014e1affe5e8 2559 empty-moov-no-elst-no-adjust +aa6f42a0546a27f7047f1cff812a552f 2327 delay-moov +09354eac8e7a48216d535df8a88db5ca 2639 delay-moov-elst +5c2a209249df8c7e3d55418da2ebe5cf 1846 delay-moov-empty-track +89e03fa0c53e4a89b7fbb1df9f93774f 1749 delay-moov-empty-track-flush +f8f6bf271a512bff1edba1d930172829 1183 empty-moov-header +f12baf7c4269695817337192c7069328 996 empty-moov-content +f8f6bf271a512bff1edba1d930172829 1183 delay-moov-header +f12baf7c4269695817337192c7069328 996 delay-moov-content +76e1081bbab7541eadcaf4b19d37eff6 584 empty-moov-second-frag +76e1081bbab7541eadcaf4b19d37eff6 584 empty-moov-second-frag-discont +76e1081bbab7541eadcaf4b19d37eff6 584 delay-moov-second-frag-discont +4407220c69fb6d96fd3f4daea05140c3 3647 vfr +4407220c69fb6d96fd3f4daea05140c3 3647 vfr-noduration |