1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +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
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
alac.mak
als.mak
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
atrac.mak
audio.mak
bmp.mak fate/bmp: Fix test requirements 2022-04-28 02:39:37 +02:00
build.mak
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
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
fft.mak
fifo-muxer.mak
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
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
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
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
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
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
mov.mak avformat/mov: Only read the primary item for AVIF 2022-06-29 12:16:40 -07:00
mp3.mak
mpc.mak
mpeg4.mak fate/mpeg4: Fix test requirements 2022-05-03 04:18:06 +02:00
mpegps.mak
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
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
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
vorbis.mak
vpx.mak fate/vpx: Remove unused define parameters 2022-05-31 12:45:41 +02:00
vqf.mak
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