1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-07 11:13:41 +02:00
FFmpeg/tests/fate
Anton Khirnov 4740fea7dd fftools/ffmpeg: rework -shortest implementation
The -shortest option (which finishes the output file at the time the
shortest stream ends) is currently implemented by faking the -t option
when an output stream ends. This approach is fragile, since it depends
on the frames/packets being processed in a specific order. E.g. there
are currently some situations in which the output file length will
depend unpredictably on unrelated factors like encoder delay. More
importantly, the present work aiming at splitting various ffmpeg
components into different threads will make this approach completely
unworkable, since the frames/packets will arrive in effectively random
order.

This commit introduces a "sync queue", which is essentially a collection
of FIFOs, one per stream. Frames/packets are submitted to these FIFOs
and are then released for further processing (encoding or muxing) when
it is ensured that the frame in question will not cause its stream to
get ahead of the other streams (the logic is similar to libavformat's
interleaving queue).

These sync queues are then used for encoding and/or muxing when the
-shortest option is specified.

A new option – -shortest_buf_duration – controls the maximum number of
queued packets, to avoid runaway memory usage.

This commit changes the results of the following tests:
- copy-shortest[12]: the last audio frame is now gone. This is
  correct, since it actually outlasts the last video frame.
- shortest-sub: the video packets following the last subtitle packet are
  now gone. This is also correct.
2022-07-23 11:53:19 +02:00
..
aac.mak fate-aac: use the fast coder for tests 2021-05-21 19:28:50 +02:00
ac3.mak ac3: convert to new channel layout API 2022-03-15 09:42:39 -03:00
acodec.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
adpcm.mak fate: add adpcm_ima_ws test in a VQA v3 file 2021-04-29 23:52:46 +10:00
alac.mak
als.mak fate/als: Add test for conformance file with 512 channels. 2019-08-24 09:33:44 +02:00
amrnb.mak fate/amr[nw]b: Use REMUX where appropriate 2022-04-28 02:39:37 +02:00
amrwb.mak fate/amr[nw]b: Use REMUX where appropriate 2022-04-28 02:39:37 +02:00
api.mak tests/fate-run: Remove temporary fate-lavf files if possible 2022-05-06 05:39:25 +02:00
apng.mak fate: add a more extensive test for APNG_DISPOSE_OP_BACKGROUND 2021-05-14 11:15:13 +02:00
atrac.mak avcodec/atrac1: fix decoder: QMF delay compensation should be 39 samples 2015-11-21 11:38:45 +01:00
audio.mak fate: disable automatic conversions on many tests. 2020-09-08 14:16:08 +02:00
bmp.mak fate/bmp: Fix test requirements 2022-04-28 02:39:37 +02:00
build.mak Merge commit 'db869f4ea4405fb8f9736e5ecdca70f77621a28e' 2017-10-11 19:02:04 -03:00
caf.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
canopus.mak fate/canopus: Fix test requirements 2022-05-03 04:18:05 +02:00
cbs.mak avcodec/av1dec: avoid probing with av1dec 2020-10-06 11:28:12 -03:00
cdxl.mak fate/cdxl: Fix test requirements 2022-04-28 02:39:37 +02:00
checkasm.mak lavc/aarch64: motion estimation functions in neon 2022-06-28 00:51:39 +03:00
concatdec.mak tests/fate-run: Remove temporary fate-lavf files if possible 2022-05-06 05:39:25 +02:00
cover-art.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
dca.mak fate/dca: Fix test requirements 2022-06-01 14:56:50 +02:00
demux.mak fate/demux: Move Sony OpenMG audio (oma) test into a new file 2021-09-27 07:08:59 +02:00
dfa.mak fate/dfa: Fix test requirements 2022-04-28 02:39:37 +02:00
dnn.mak tests/dnn: Make DNN tests regular libavfilter tests 2021-12-19 00:46:29 +01:00
dnxhd.mak fate/dnxhd: Fix test requirements 2022-05-03 04:18:05 +02:00
dpcm.mak
dvvideo.mak tests: Add fate-bsf-dv-error-marker 2022-03-15 22:52:42 +01:00
ea.mak fate/ea: Fix test requirements 2022-05-03 04:18:05 +02:00
exif.mak
ffmpeg.mak fftools/ffmpeg: rework -shortest implementation 2022-07-23 11:53:19 +02:00
ffprobe.mak fate/ffprobe: Verify ffprobe XML output against schema file 2021-07-13 08:57:23 +02:00
fft.mak fft: remove 16-bit FFT and MDCT code 2021-01-14 01:44:21 +01:00
fifo-muxer.mak tests/fate/fifo-muxer: update fifo-muxer dependencies 2017-05-08 08:42:00 +02:00
filter-audio.mak fate: add crystalizer test 2022-03-25 18:18:44 +01:00
filter-video.mak avfilter: Add blockdetect filter 2022-05-24 11:21:36 +02:00
fits.mak fate/fits: Use transcode for transcode-like test 2022-04-28 02:39:37 +02:00
flac.mak
flvenc.mak tests/fate: Remove intermediate file of flv-add_keyframe_index test 2022-05-20 10:16:04 +02:00
gapless.mak fate/demux, gapless, image: Add missing ffprobe dependencies 2021-09-19 23:52:20 +02:00
gif.mak fate/gif: Remove nonsense requirement 2022-05-03 04:18:06 +02:00
h264.mak fate/h264: Add Active Format Descriptor test 2022-07-09 20:24:31 +02:00
hap.mak fate/hap: Fix test requirements 2022-05-03 04:18:06 +02:00
hevc.mak fate/hevc: Fix test requirements 2022-05-03 04:18:06 +02:00
hlsenc.mak FATE: always pass -nostdin to ffmpeg 2021-12-22 18:38:40 -06:00
hw.mak tests: Add EXESUF to program calls. 2019-04-19 01:11:39 +02:00
id3v2.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
image.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
imf.mak avformat/imf: add IMF CPL with repeated resources to FATE 2022-02-03 04:00:09 +01:00
indeo.mak fate: Add separate target for all indeo3 tests 2016-03-01 21:54:10 +01:00
lavf-audio.mak fate/lavf-audio: Disable CRC for lavf-peak_only.wav test 2022-05-06 05:39:10 +02:00
lavf-container.mak fate/lavf-container: Fix test requirements 2022-04-28 02:40:49 +02:00
lavf-image2pipe.mak fate/lavf-image2pipe: Fix test requirements 2022-04-28 02:40:49 +02:00
lavf-image.mak fate: add PFM encoder tests 2022-07-03 15:16:31 +02:00
lavf-video.mak fate/lavf-video: Fix test requirements 2022-04-28 02:40:49 +02:00
libavcodec.mak avcodec/tests/utils: Rename to avcodec 2021-09-26 12:56:08 +02:00
libavdevice.mak tests: Move all test programs to a subdirectory 2016-05-13 14:55:56 +02:00
libavformat.mak avformat/tests: add test for ff_rescale_interval() 2022-03-19 21:34:04 +10:00
libavutil.mak avutil/tests/uuid: add uuid tests 2022-06-12 18:34:37 +10:00
libswresample.mak fate: disable automatic conversions on many tests. 2020-09-08 14:16:08 +02:00
libswscale.mak swscale: Take the destination range into account for yuv->rgb->yuv conversions 2022-02-25 11:01:17 +02:00
lossless-audio.mak fate: disable automatic conversions on many tests. 2020-09-08 14:16:08 +02:00
lossless-video.mak fate/lossless-video: Fix test requirements 2022-05-03 04:18:06 +02:00
matroska.mak fate/matroska: Add test for remuxing DVB subtitles to Matroska 2022-05-12 08:33:11 +02:00
microsoft.mak fate/microsoft: Fix test requirements 2022-05-03 04:18:06 +02:00
monkeysaudio.mak fate: disable automatic conversions on many tests. 2020-09-08 14:16:08 +02:00
mov.mak avformat/mov: Only read the primary item for AVIF 2022-06-29 12:16:40 -07:00
mp3.mak fate: disable automatic conversions on many tests. 2020-09-08 14:16:08 +02:00
mpc.mak fate: Convert the musepack8 test to an oneoff test 2020-11-17 23:47:31 +02:00
mpeg4.mak fate/mpeg4: Fix test requirements 2022-05-03 04:18:06 +02:00
mpegps.mak fate: Fix dependencies to sample files to use local paths 2019-12-12 11:27:55 +02:00
mpegts.mak tests/Makefile: Make DEMDEC etc. auxiliary functions more flexible 2022-04-28 02:39:37 +02:00
mxf.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
oma.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
opus.mak fate/opus: Restore fate-opus-(celt|hybrid|silk) 2022-05-31 12:45:41 +02:00
pcm.mak fate/pcm: Add pcm_dvd transcode tests 2022-07-10 16:58:58 +02:00
pixfmt.mak fate/pixfmt: test xyz12le 2021-08-29 18:44:46 +02:00
pixlet.mak fate/pixlet: Fix test requirements 2022-05-03 04:18:06 +02:00
probe.mak
prores.mak fate/prores: Fix test requirements 2022-05-03 04:18:06 +02:00
qt.mak fate/qt: Fix test requirements 2022-05-03 04:18:05 +02:00
qtrle.mak fate/qtrle: Fix test requirements 2022-05-03 04:18:06 +02:00
real.mak Merge commit '043b0b9fb1481053b712d06d2c5b772f1845b72b' 2017-03-24 11:40:35 +01:00
screen.mak fate/screen: Fix test requirements 2022-04-28 02:39:37 +02:00
seek.mak tests/Makefile: Redo how to keep intermediate FATE-files 2022-05-06 05:39:25 +02:00
segment.mak FATE: always pass -nostdin to ffmpeg 2021-12-22 18:38:40 -06:00
source-check.sh tests/fate/source-check: Use git grep in place of grep 2017-03-30 03:12:05 +02:00
source.mak
speedhq.mak fate/speedhq: Fix test requirements 2022-04-28 02:39:37 +02:00
subtitles.mak fate/subtitles: Use REMUX where appropriate 2022-04-14 18:39:57 +02:00
truehd.mak avcodec/options_table: Treat (request_)channel_layout as channel layout 2021-08-15 23:19:35 +02:00
utvideo.mak fate/utvideo: Fix test requirements 2022-04-28 02:39:37 +02:00
vbn.mak fate/vbn, tests/fate-run: Delete intermediate VBN-files after tests 2022-05-03 04:18:05 +02:00
vcodec.mak tests/fate/vcodec: add tests for ffv1 2pass mode 2022-05-24 13:35:16 +02:00
video.mak fate/video: Fix test requirements 2022-04-28 02:39:37 +02:00
voice.mak fate: disable automatic conversions on many tests. 2020-09-08 14:16:08 +02:00
vorbis.mak fate/oggvorbis: Fix tests after fixing AV_PKT_DATA_SKIP_SAMPLES 2021-07-12 09:55:21 +02:00
vpx.mak fate/vpx: Remove unused define parameters 2022-05-31 12:45:41 +02:00
vqf.mak Merge commit '4141a5a240fba44b4b4a1c488c279d7dd8a11ec7' 2017-10-03 21:28:07 -03:00
wavpack.mak fate/wavpack: Test APE cuesheet tags 2022-05-31 12:45:41 +02:00
webm-dash-manifest.mak fate/vpx: Move webm-dash-manifest tests to a new file 2022-05-03 04:18:06 +02:00
wma.mak avcodec/wmadec: fix WMA gapless playback 2021-09-12 22:23:35 +02:00
xvid.mak