Commit 59e8ec0a authored by Martin Storsjö's avatar Martin Storsjö

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: 's avatarMartin Storsjö <martin@martin.st>
parent 8ad5124b
...@@ -415,6 +415,7 @@ TESTPROGS = seek \ ...@@ -415,6 +415,7 @@ TESTPROGS = seek \
srtp \ srtp \
url \ url \
TESTPROGS-$(CONFIG_MOV_MUXER) += movenc
TESTPROGS-$(CONFIG_NETWORK) += noproxy TESTPROGS-$(CONFIG_NETWORK) += noproxy
TESTPROGS-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += rtmpdh TESTPROGS-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += rtmpdh
......
This diff is collapsed.
...@@ -14,5 +14,9 @@ FATE_LIBAVFORMAT-yes += fate-url ...@@ -14,5 +14,9 @@ FATE_LIBAVFORMAT-yes += fate-url
fate-url: libavformat/url-test$(EXESUF) fate-url: libavformat/url-test$(EXESUF)
fate-url: CMD = run libavformat/url-test 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-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT-yes)
fate-libavformat: $(FATE_LIBAVFORMAT) fate-libavformat: $(FATE_LIBAVFORMAT)
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment