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
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
dfa.mak fate/dfa: Fix test requirements 2022-04-28 02:39:37 +02:00
dnn.mak
dnxhd.mak fate/dnxhd: Fix test requirements 2022-05-03 04:18:05 +02:00
dpcm.mak
dvvideo.mak
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
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
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
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
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
libavdevice.mak
libavformat.mak
libavutil.mak avutil/tests/uuid: add uuid tests 2022-06-12 18:34:37 +10:00
libswresample.mak
libswscale.mak
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
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
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
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
xvid.mak