aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests/fate/ffmpeg: evaluate thread count in fate-run.sh rather than makeAnton Khirnov2024-03-231-1/+1
| | | | Fixes fate-ffmpeg-loopback-decoding with THREADS=random*
* fate/filter-audio: Don't use pcm output for channelsplit testAndreas Rheinhardt2024-03-222-4/+4
| | | | | | | | | | | This test muxes two streams into a single pcm file, although the two streams are of course not recoverable from the output (unless one has extra information). So use the streamhash muxer instead (which also provides coverage for it; it was surprisingly unused in FATE so far). This is in preparation for actually enforcing a limit of one stream for the PCM muxers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/libx265: add support for writing out CLL and MDCVJan Ekström2024-03-202-0/+21
| | | | | | | The newer of these two are the separate integers for content light level, introduced in 3952bf3e98c76c31594529a3fe34e056d3e3e2ea , with X265_BUILD 75. As we already require X265_BUILD of at least 89, no further conditions are required.
* avcodec/libx264: add support for writing out CLL and MDCVJan Ekström2024-03-202-0/+20
| | | | | | | | | | | | Both of these two structures were first available with X264_BUILD 163, so make relevant functionality conditional on the version being at least such. Keep handle_side_data available in all cases as this way X264_init does not require additional version based conditions within it. Finally, add a FATE test which verifies that pass-through of the MDCV/CLL side data is working during encoding.
* avcodec/libsvtav1: add support for writing out CLL and MDCVJan Ekström2024-03-202-0/+19
| | | | | | | | | | | | These two were added in 28e23d7f348c78d49a726c7469f9d4e38edec341 and 3558c1f2e97455e0b89edef31b9a72ab7fa30550 for version 0.9.0 of SVT-AV1, which is also our minimum requirement right now. In other words, no additional version limiting conditions seem to be required. Additionally, add a FATE test which verifies that pass-through of the MDCV/CLL side data is working during encoding.
* avutil/frame: add helper for adding side data to arrayJan Ekström2024-03-202-0/+18
| | | | | Additionally, add an API test to check that the no-duplicates addition works after duplicates have been inserted.
* fate/atrac: Add atrac->aea, atrac->matroska remux testsAndreas Rheinhardt2024-03-193-2/+198
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* tests/ref/lavf-fate/hevc.flv: Fix ref fileAndreas Rheinhardt2024-03-181-2/+2
| | | | | | Unbreaks the lavf-fate-hevc.flv FATE test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/lavf-container: correct operator; unbreak buildGyan Doshi2024-03-181-1/+1
|
* fate/flvenc: support enhanced flv PacketTypeMetadataZhu Pengfei2024-03-184-4/+9
| | | | | Signed-off-by: Zhu Pengfei <411294962@qq.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* fate/lavf-audio: Test writing AIFF-native tagsAndreas Rheinhardt2024-03-173-17/+18
| | | | | | | | In particular, test writing tags with odd strlen. (These tags are zero-padded to even size.) Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/channel_layout: add specific text versions for unknown and unused ↵Marton Balint2024-03-161-1/+3
| | | | | | channels Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/channel_layout: factorize parsing list of channel namesMarton Balint2024-03-161-4/+4
| | | | | | | Also make use of the av_channel_from_string() function to determine the channel id. This fixes some parse issues in av_channel_layout_from_string(). Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/tests/channel_layout: add some av_channel_from_string and ↵Marton Balint2024-03-161-0/+26
| | | | | | | | | av_channel_layout_from_string tests We lacked tests which supposed to fail, and there are some which should fail but right now it does not. This will be fixed in a later commit. Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/tests/channel_layout: make printing results part of the testsMarton Balint2024-03-161-88/+88
| | | | | | | | | | Deduplicates a lot of code. Some minor differences (mostly white space and inconsistent use of quotes) are expected in the fate tests, there was no point aiming for exactly the same formatting. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/pcm: decrease target audio frame per sec to 10Marton Balint2024-03-1694-7911/+3152
| | | | | | | | | | This makes the wav and pcm demuxer demux bigger packets, which is more efficient. As a side effect of the bigger packets, audio durations can become less exact for command lines such as "ffmpeg -i $INPUT -c:a copy -t 1.0 $OUTPUT". Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/wavdec: use ff_pcm_default_packet_size for the default packet sizeMarton Balint2024-03-1615-629/+1485
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/pcm: factorize and improve determining the default packet sizeMarton Balint2024-03-162-46/+46
| | | | | | | | | | | | | | - Remove the 1024 cap on the number of samples, for high sample rate audio it was suboptimal, calculate the low neighbour power of two for the number of samples (audio blocks) instead. - Make the function work correctly also for non-pcm codecs by using the stream bitrate to estimate the target packet size. A previous version of this patch used av_get_audio_frame_duration2() the estimate the desired packet size, but for some codecs that returns the duration of a single audio frame regardless of frame_bytes. - Fallback to 4096/block_align*block_align if bitrate is not available. Signed-off-by: Marton Balint <cus@passwd.hu>
* fate/wmavoice: add missing aresample filter dependencyJames Almer2024-03-151-8/+8
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/vqf: add missing aresample filter dependencyJames Almer2024-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/voice: add missing aresample filter dependencyJames Almer2024-03-151-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/vorbis: add missing aresample filter dependencyJames Almer2024-03-151-3/+5
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/real: add missing aresample filter dependencyJames Almer2024-03-151-3/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/pcm: add missing aresample filter dependencyJames Almer2024-03-151-5/+5
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/mpc: add missing aresample filter dependencyJames Almer2024-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/mp3: add missing aresample filter dependencyJames Almer2024-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/mov: add missing aresample filter dependencyJames Almer2024-03-151-5/+7
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/monkeysaudio: add missing aresample filter dependencyJames Almer2024-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/lossless-audio: add missing aresample filter dependencyJames Almer2024-03-151-7/+7
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/libswresample: add missing aresample filter dependencyJames Almer2024-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/iamf: add missing aresample filter dependencyJames Almer2024-03-151-7/+7
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/hlsenc: add missing aresample filter dependencyJames Almer2024-03-151-8/+8
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/gapless: add missing aresample filter dependencyJames Almer2024-03-151-39/+39
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/ffprobe: add missing aresample filter dependencyJames Almer2024-03-152-17/+17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/ffmpeg: add missing aresample filter dependencyJames Almer2024-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/filter-audio: add missing aresample filter dependencyJames Almer2024-03-151-22/+22
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/fate-container: add missing aresample filter dependencyJames Almer2024-03-151-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/demux: add missing aresample filter dependencyJames Almer2024-03-151-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/audio: add missing aresample filter dependencyJames Almer2024-03-151-13/+15
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/atrac: add missing aresample filter dependencyJames Almer2024-03-151-3/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/amrwb: add missing aresample filter dependencyJames Almer2024-03-151-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/amrnb: add missing aresample filter dependencyJames Almer2024-03-151-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/alac: add missing aresample filter dependencyJames Almer2024-03-151-2/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/adpcm: add missing aresample filter dependencyJames Almer2024-03-151-22/+22
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/ac3: add missing aresample filter dependencyJames Almer2024-03-151-5/+5
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/aac: add missing aresample filter dependencyJames Almer2024-03-151-5/+5
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* configure: Remove av_restrictAndreas Rheinhardt2024-03-154-8/+4
| | | | | | | | | All versions of MSVC that support C11 (namely >= v19.27) also support the restrict keyword, therefore av_restrict is no longer necessary since 75697836b1db3e0f0a3b7061be6be28d00c675a0. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fate/ffmpeg: add missing idct decoder option to fate-ffmpeg-loopback-decodingJames Almer2024-03-141-1/+1
| | | | | | Should fix failures on x86_32 targets. Signed-off-by: James Almer <jamrial@gmail.com>
* fate/ffmpeg: add a -threads input option to the loopback decoderJames Almer2024-03-141-2/+2
| | | | | | Honor the requested value passed when calling make fate. Signed-off-by: James Almer <jamrial@gmail.com>
* fate/ffmpeg: add a test for loopback decodingJames Almer2024-03-142-0/+64
| | | | Signed-off-by: James Almer <jamrial@gmail.com>