2022-05-26 00:05:32 +02:00
|
|
|
FATE_MAPCHAN-$(call FILTERDEMDECENCMUX, PAN, WAV, PCM_S16LE, PCM_S16LE, WAV, MD5_PROTOCOL) += fate-mapchan-6ch-extract-2
|
2012-04-22 20:14:01 +03:00
|
|
|
fate-mapchan-6ch-extract-2: tests/data/asynth-22050-6.wav
|
2015-08-17 21:47:20 +02:00
|
|
|
fate-mapchan-6ch-extract-2: CMD = ffmpeg -i $(TARGET_PATH)/tests/data/asynth-22050-6.wav -map_channel 0.0.0 -fflags +bitexact -f wav md5: -map_channel 0.0.1 -fflags +bitexact -f wav md5:
|
2011-12-14 22:04:32 +03:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_MAPCHAN-$(call FILTERDEMDECENCMUX, PAN ARESAMPLE, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-mapchan-6ch-extract-2-downmix-mono
|
2012-06-01 19:44:07 +03:00
|
|
|
fate-mapchan-6ch-extract-2-downmix-mono: tests/data/asynth-22050-6.wav
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-mapchan-6ch-extract-2-downmix-mono: CMD = md5 -auto_conversion_filters -i $(TARGET_PATH)/tests/data/asynth-22050-6.wav -map_channel 0.0.1 -map_channel 0.0.0 -ac 1 -fflags +bitexact -f wav
|
2011-12-14 22:04:32 +03:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_MAPCHAN-$(call FILTERDEMDECENCMUX, PAN, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-mapchan-silent-mono
|
2012-04-22 20:14:01 +03:00
|
|
|
fate-mapchan-silent-mono: tests/data/asynth-22050-1.wav
|
2015-08-17 21:47:20 +02:00
|
|
|
fate-mapchan-silent-mono: CMD = md5 -i $(TARGET_PATH)/tests/data/asynth-22050-1.wav -map_channel -1 -map_channel 0.0.0 -fflags +bitexact -f wav
|
2011-12-14 22:04:32 +03:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_MAPCHAN-$(call FILTERDEMDECENCMUX, PAN, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-mapchan-2ch-extract-ch0-ch2-trailing
|
2017-08-22 11:30:45 +02:00
|
|
|
fate-mapchan-2ch-extract-ch0-ch2-trailing: tests/data/asynth-44100-2.wav
|
|
|
|
fate-mapchan-2ch-extract-ch0-ch2-trailing: CMD = md5 -i $(TARGET_PATH)/tests/data/asynth-44100-2.wav -map_channel 0.0.0 -map_channel 0.0.2? -fflags +bitexact -f wav
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_MAPCHAN-$(call FILTERDEMDECENCMUX, PAN, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-mapchan-3ch-extract-ch0-ch2-trailing
|
2017-08-22 11:30:45 +02:00
|
|
|
fate-mapchan-3ch-extract-ch0-ch2-trailing: tests/data/asynth-44100-3.wav
|
|
|
|
fate-mapchan-3ch-extract-ch0-ch2-trailing: CMD = md5 -i $(TARGET_PATH)/tests/data/asynth-44100-3.wav -map_channel 0.0.0 -map_channel 0.0.2? -fflags +bitexact -f wav
|
|
|
|
|
2013-03-09 17:46:46 +03:00
|
|
|
FATE_MAPCHAN = $(FATE_MAPCHAN-yes)
|
|
|
|
|
2012-05-10 03:14:44 +03:00
|
|
|
FATE_FFMPEG += $(FATE_MAPCHAN)
|
2011-12-14 22:04:32 +03:00
|
|
|
fate-mapchan: $(FATE_MAPCHAN)
|
2013-01-01 20:20:55 +03:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_FFMPEG-$(call FILTERFRAMECRC, COLOR) += fate-ffmpeg-filter_complex
|
2015-08-17 21:47:20 +02:00
|
|
|
fate-ffmpeg-filter_complex: CMD = framecrc -filter_complex color=d=1:r=5 -fflags +bitexact
|
2013-03-17 15:32:57 +03:00
|
|
|
|
2017-10-08 14:51:03 +02:00
|
|
|
# Ticket 6603
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_FFMPEG-$(call FILTERFRAMECRC, AEVALSRC ASETNSAMPLES ARESAMPLE, AC3_FIXED_ENCODER) += fate-ffmpeg-filter_complex_audio
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-ffmpeg-filter_complex_audio: CMD = framecrc -auto_conversion_filters -filter_complex "aevalsrc=0:d=0.1,asetnsamples=1537" -c ac3_fixed
|
2017-10-08 14:51:03 +02:00
|
|
|
|
2017-10-27 22:14:23 +02:00
|
|
|
# Ticket 6375, use case of NoX
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call FRAMECRC, MOV, PNG ALAC, ARESAMPLE_FILTER) += fate-ffmpeg-attached_pics
|
|
|
|
fate-ffmpeg-attached_pics: CMD = threads=2 framecrc -i $(TARGET_SAMPLES)/lossless-audio/inside.m4a -threads 1 -max_muxing_queue_size 16 -af aresample
|
2017-10-08 15:27:50 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call FILTERDEMDEC, COLORKEY OVERLAY SCALE, MPEGPS IMAGE_PPM_PIPE, CAVS PPM, CAVSVIDEO_PARSER) += fate-ffmpeg-filter_colorkey
|
2016-01-21 18:11:47 +02:00
|
|
|
fate-ffmpeg-filter_colorkey: tests/data/filtergraphs/colorkey
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-ffmpeg-filter_colorkey: CMD = framecrc -auto_conversion_filters -idct simple -fflags +bitexact -flags +bitexact -sws_flags +accurate_rnd+bitexact -i $(TARGET_SAMPLES)/cavs/cavs.mpg -fflags +bitexact -flags +bitexact -sws_flags +accurate_rnd+bitexact -i $(TARGET_SAMPLES)/lena.pnm -an -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/colorkey -sws_flags +accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -qscale 2 -frames:v 10
|
2016-01-21 18:11:47 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_FFMPEG-$(call FILTERFRAMECRC, COLOR) += fate-ffmpeg-lavfi
|
2015-08-17 21:47:20 +02:00
|
|
|
fate-ffmpeg-lavfi: CMD = framecrc -lavfi color=d=1:r=5 -fflags +bitexact
|
2013-03-17 15:32:57 +03:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call ENCDEC2, MPEG4, RAWVIDEO, AVI, RAWVIDEO_DEMUXER FRAMECRC_MUXER) += fate-force_key_frames
|
2014-11-30 20:47:45 +02:00
|
|
|
fate-force_key_frames: tests/data/vsynth_lena.yuv
|
2013-01-01 20:20:55 +03:00
|
|
|
fate-force_key_frames: CMD = enc_dec \
|
2014-11-30 20:47:45 +02:00
|
|
|
"rawvideo -s 352x288 -pix_fmt yuv420p" tests/data/vsynth_lena.yuv \
|
2013-01-01 20:20:55 +03:00
|
|
|
avi "-c mpeg4 -g 240 -qscale 10 -force_key_frames 0.5,0:00:01.5" \
|
2022-05-04 12:04:21 +02:00
|
|
|
framecrc "" "-skip_frame nokey"
|
2013-01-01 20:51:38 +03:00
|
|
|
|
2022-01-22 00:38:37 +02:00
|
|
|
# Tests that the video is properly autorotated using the contained
|
|
|
|
# display matrix and that the generated file does not contain
|
|
|
|
# a display matrix any more.
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG_FFPROBE-$(call TRANSCODE, MPEG2VIDEO, MOV, H264_DECODER AAC_FIXED_DECODER AC3_FIXED_ENCODER EXTRACT_EXTRADATA_BSF) += fate-autorotate
|
2022-05-04 12:04:21 +02:00
|
|
|
fate-autorotate: CMD = transcode "mov -c:a aac_fixed" $(TARGET_SAMPLES)/filter/sample-in-issue-505.mov mov "-c:v mpeg2video -c:a ac3_fixed" "-c copy -t 0.5" "-show_entries stream_side_data_list"
|
2022-01-22 00:38:37 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call FILTERDEMDEC, OVERLAY SCALE, RAWVIDEO VOBSUB, RAWVIDEO DVDSUB, DVDSUB_ENCODER) += fate-sub2video
|
2014-11-30 20:47:45 +02:00
|
|
|
fate-sub2video: tests/data/vsynth_lena.yuv
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-sub2video: CMD = framecrc -auto_conversion_filters \
|
2014-11-30 20:47:45 +02:00
|
|
|
-f rawvideo -r 5 -s 352x288 -pix_fmt yuv420p -i $(TARGET_PATH)/tests/data/vsynth_lena.yuv \
|
2014-03-18 03:29:50 +03:00
|
|
|
-ss 132 -i $(TARGET_SAMPLES)/sub/vobsub.idx \
|
|
|
|
-filter_complex "sws_flags=+accurate_rnd+bitexact\;[0:0]scale=720:480[v]\;[v][1:0]overlay[v2]" \
|
2021-12-09 06:01:27 +02:00
|
|
|
-map "[v2]" -c:v rawvideo -threads 1 -map 1:s -c:s dvdsub
|
2013-04-01 16:42:59 +03:00
|
|
|
|
2020-03-12 00:38:33 +02:00
|
|
|
# Very basic sub2video example, decode and convert to AVFrame with sub2video.
|
|
|
|
# Attempt to not touch timestamps.
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call FRAMECRC, VOBSUB, DVDSUB, SCALE_FILTER) += fate-sub2video_basic
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-sub2video_basic: CMD = framecrc -auto_conversion_filters \
|
2020-03-12 00:38:33 +02:00
|
|
|
-i $(TARGET_SAMPLES)/sub/vobsub.idx \
|
|
|
|
-vsync passthrough -copyts \
|
|
|
|
-filter_complex "sws_flags=+accurate_rnd+bitexact\;[0:s:0]scale" \
|
2021-12-09 06:01:27 +02:00
|
|
|
-c:v rawvideo -threads 1
|
2020-03-12 00:38:33 +02:00
|
|
|
|
2020-03-12 01:22:15 +02:00
|
|
|
# Time-limited run with a sample that doesn't require seeking and
|
|
|
|
# contains samples within the initial period.
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call FRAMECRC, SUP, PGSSUB, SCALE_FILTER RAWVIDEO_ENCODER) += fate-sub2video_time_limited
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-sub2video_time_limited: CMD = framecrc -auto_conversion_filters \
|
2020-03-12 01:22:15 +02:00
|
|
|
-i $(TARGET_SAMPLES)/sub/pgs_sub.sup \
|
|
|
|
-vsync passthrough -copyts \
|
|
|
|
-t 15 \
|
|
|
|
-filter_complex "sws_flags=+accurate_rnd+bitexact\;[0:s:0]scale" \
|
2021-12-09 06:01:27 +02:00
|
|
|
-c:v rawvideo -threads 1
|
2020-03-12 01:22:15 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_FFMPEG-$(call ENCDEC, PCM_S16LE, PCM_S16LE) += fate-unknown_layout-pcm
|
2013-04-01 16:42:59 +03:00
|
|
|
fate-unknown_layout-pcm: $(AREF)
|
|
|
|
fate-unknown_layout-pcm: CMD = md5 \
|
2014-03-18 03:29:50 +03:00
|
|
|
-guess_layout_max 0 -f s16le -ac 1 -ar 44100 -i $(TARGET_PATH)/$(AREF) -f s16le
|
2013-04-01 16:42:59 +03:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_FFMPEG-$(call FILTERDEMDECENCMUX, ARESAMPLE, PCM_S32LE, PCM_S32LE, AC3_FIXED, AC3) += fate-unknown_layout-ac3
|
2013-04-01 16:42:59 +03:00
|
|
|
fate-unknown_layout-ac3: $(AREF)
|
2020-08-14 18:58:27 +02:00
|
|
|
fate-unknown_layout-ac3: CMD = md5 -auto_conversion_filters \
|
ac3enc_fixed: convert to 32-bit sample format
The AC3 encoder used to be a separate library called "Aften", which
got merged into libavcodec (literally, SVN commits and all).
The merge preserved as much features from the library as possible.
The code had two versions - a fixed point version and a floating
point version. FFmpeg had floating point DSP code used by other
codecs, the AC3 decoder including, so the floating-point DSP was
simply replaced with FFmpeg's own functions.
However, FFmpeg had no fixed-point audio code at that point. So
the encoder brought along its own fixed-point DSP functions,
including a fixed-point MDCT.
The fixed-point MDCT itself is trivially just a float MDCT with a
different type and each multiply being a fixed-point multiply.
So over time, it got refactored, and the FFT used for all other codecs
was templated.
Due to design decisions at the time, the fixed-point version of the
encoder operates at 16-bits of precision. Although convenient, this,
even at the time, was inadequate and inefficient. The encoder is noisy,
does not produce output comparable to the float encoder, and even
rings at higher frequencies due to the badly approximated winow function.
Enter MIPS (owned by Imagination Technologies at the time). They wanted
quick fixed-point decoding on their FPUless cores. So they contributed
patches to template the AC3 decoder so it had both a fixed-point
and a floating-point version. They also did the same for the AAC decoder.
They however, used 32-bit samples. Not 16-bits. And we did not have
32-bit fixed-point DSP functions, including an MDCT. But instead of
templating our MDCT to output 3 versions (float, 32-bit fixed and 16-bit fixed),
they simply copy-pasted their own MDCT into ours, and completely
ifdeffed our own MDCT code out if a 32-bit fixed point MDCT was selected.
This is also the status quo nowadays - 2 separate MDCTs, one which
produces floating point and 16-bit fixed point versions, and one
sort-of integrated which produces 32-bit MDCT.
MIPS weren't all that interested in encoding, so they left the encoder
as-is, and they didn't care much about the ifdeffery, mess or quality - it's
not their problem.
So the MDCT/FFT code has always been a thorn in anyone looking to clean up
code's eye.
Backstory over. Internally AC3 operates on 25-bit fixed-point coefficients.
So for the floating point version, the encoder simply runs the float MDCT,
and converts the resulting coefficients to 25-bit fixed-point, as AC3 is inherently
a fixed-point codec. For the fixed-point version, the input is 16-bit samples,
so to maximize precision the frame samples are analyzed and the highest set
bit is detected via ac3_max_msb_abs_int16(), and the coefficients are then
scaled up via ac3_lshift_int16(), so the input for the FFT is always at least 14 bits,
computed in normalize_samples(). After FFT, the coefficients are scaled up to 25 bits.
This patch simply changes the encoder to accept 32-bit samples, reusing
the already well-optimized 32-bit MDCT code, allowing us to clean up and drop
a large part of a very messy code of ours, as well as prepare for the future lavu/tx
conversion. The coefficients are simply scaled down to 25 bits during windowing,
skipping 2 separate scalings, as the hacks to extend precision are simply no longer
necessary. There's no point in running the MDCT always at 32 bits when you're
going to drop 6 bits off anyway, the headroom is plenty, and the MDCT rounds
properly.
This also makes the encoder even slightly more accurate over the float version,
as there's no coefficient conversion step necessary.
SIZE SAVINGS:
ARM32:
HARDCODED TABLES:
BASE - 10709590
DROP DSP - 10702872 - diff: -6.56KiB
DROP MDCT - 10667932 - diff: -34.12KiB - both: -40.68KiB
DROP FFT - 10336652 - diff: -323.52KiB - all: -364.20KiB
SOFTCODED TABLES:
BASE - 9685096
DROP DSP - 9678378 - diff: -6.56KiB
DROP MDCT - 9643466 - diff: -34.09KiB - both: -40.65KiB
DROP FFT - 9573918 - diff: -67.92KiB - all: -108.57KiB
ARM64:
HARDCODED TABLES:
BASE - 14641112
DROP DSP - 14633806 - diff: -7.13KiB
DROP MDCT - 14604812 - diff: -28.31KiB - both: -35.45KiB
DROP FFT - 14286826 - diff: -310.53KiB - all: -345.98KiB
SOFTCODED TABLES:
BASE - 13636238
DROP DSP - 13628932 - diff: -7.13KiB
DROP MDCT - 13599866 - diff: -28.38KiB - both: -35.52KiB
DROP FFT - 13542080 - diff: -56.43KiB - all: -91.95KiB
x86:
HARDCODED TABLES:
BASE - 12367336
DROP DSP - 12354698 - diff: -12.34KiB
DROP MDCT - 12331024 - diff: -23.12KiB - both: -35.46KiB
DROP FFT - 12029788 - diff: -294.18KiB - all: -329.64KiB
SOFTCODED TABLES:
BASE - 11358094
DROP DSP - 11345456 - diff: -12.34KiB
DROP MDCT - 11321742 - diff: -23.16KiB - both: -35.50KiB
DROP FFT - 11276946 - diff: -43.75KiB - all: -79.25KiB
PERFORMANCE (10min random s32le):
ARM32 - before - 39.9x - 0m15.046s
ARM32 - after - 28.2x - 0m21.525s
Speed: -30%
ARM64 - before - 36.1x - 0m16.637s
ARM64 - after - 36.0x - 0m16.727s
Speed: -0.5%
x86 - before - 184x - 0m3.277s
x86 - after - 190x - 0m3.187s
Speed: +3%
2021-01-09 02:51:52 +02:00
|
|
|
-guess_layout_max 0 -f s32le -ac 1 -ar 44100 -i $(TARGET_PATH)/$(AREF) \
|
2013-04-01 16:42:59 +03:00
|
|
|
-f ac3 -flags +bitexact -c ac3_fixed
|
2015-12-06 06:00:54 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call FILTERDEMDEC, AMIX ARESAMPLE SINE, RAWVIDEO, \
|
|
|
|
PCM_S16LE RAWVIDEO, LAVFI_INDEV \
|
|
|
|
MPEG4_ENCODER AC3_FIXED_ENCODER) \
|
2021-12-02 16:31:49 +02:00
|
|
|
+= fate-shortest
|
2021-12-01 16:01:11 +02:00
|
|
|
fate-shortest: tests/data/vsynth_lena.yuv
|
2021-12-02 11:24:59 +02:00
|
|
|
fate-shortest: CMD = framecrc -auto_conversion_filters -f lavfi -i "sine=3000:d=10" -f lavfi -i "sine=1000:d=1" -sws_flags +accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -idct simple -f rawvideo -s 352x288 -pix_fmt yuv420p -i $(TARGET_PATH)/tests/data/vsynth_lena.yuv -filter_complex "[0:a:0][1:a:0]amix=inputs=2[audio]" -map 2:v:0 -map "[audio]" -sws_flags +accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -idct simple -dct fastint -qscale 10 -threads 1 -c:v mpeg4 -c:a ac3_fixed -shortest
|
2017-06-30 00:40:17 +02:00
|
|
|
|
2022-06-08 12:42:39 +02:00
|
|
|
# test interleaving video with a sparse subtitle stream
|
|
|
|
FATE_SAMPLES_FFMPEG-$(call ALLYES, COLOR_FILTER, VOBSUB_DEMUXER, MATROSKA_DEMUXER,, \
|
|
|
|
RAWVIDEO_ENCODER, MATROSKA_MUXER, FRAMECRC_MUXER) += fate-shortest-sub
|
|
|
|
fate-shortest-sub: CMD = enc_dec \
|
|
|
|
vobsub $(TARGET_SAMPLES)/sub/vobsub.idx matroska \
|
|
|
|
"-filter_complex 'color=s=1x1:rate=1:duration=400' -pix_fmt rgb24 -allow_raw_vfw 1 -c:s copy -c:v rawvideo" \
|
2022-06-10 14:21:42 +02:00
|
|
|
framecrc "-map 0 -c copy -shortest -shortest_buf_duration 40"
|
2022-06-08 12:42:39 +02:00
|
|
|
|
2021-12-20 14:30:16 +02:00
|
|
|
# Basic test for fix_sub_duration, which calculates duration based on the
|
|
|
|
# following subtitle's pts.
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call FILTERDEMDECENCMUX, MOVIE, MPEGVIDEO, \
|
|
|
|
MPEG2VIDEO, SUBRIP, SRT, LAVFI_INDEV \
|
|
|
|
MPEGVIDEO_PARSER CCAPTION_DECODER PIPE_PROTOCOL) \
|
2021-12-20 14:30:16 +02:00
|
|
|
+= fate-ffmpeg-fix_sub_duration
|
|
|
|
fate-ffmpeg-fix_sub_duration: CMD = fmtstdout srt -fix_sub_duration \
|
|
|
|
-real_time 1 -f lavfi \
|
|
|
|
-i "movie=$(TARGET_SAMPLES)/sub/Closedcaption_rollup.m2v[out0+subcc]"
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_STREAMCOPY-$(call REMUX, MP4 MOV, EAC3_DEMUXER) += fate-copy-trac3074
|
2017-06-30 00:40:17 +02:00
|
|
|
fate-copy-trac3074: CMD = transcode eac3 $(TARGET_SAMPLES)/eac3/csi_miami_stereo_128_spx.eac3\
|
|
|
|
mp4 "-codec copy -map 0" "-codec copy"
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_STREAMCOPY-$(call TRANSCODE, RAWVIDEO DVVIDEO, MOV, PCM_S16LE_DECODER) += fate-copy-trac236
|
2016-09-05 18:47:24 +02:00
|
|
|
fate-copy-trac236: CMD = transcode mov $(TARGET_SAMPLES)/mov/fcp_export8-236.mov\
|
|
|
|
mov "-codec copy -map 0"
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_STREAMCOPY-$(call TRANSCODE, RAWVIDEO MPEG2VIDEO, MXF, MPEGTS_DEMUXER MPEGVIDEO_PARSER MPEGAUDIO_PARSER MP2_DECODER ARESAMPLE_FILTER PCM_S16LE_DECODER) += fate-copy-trac4914
|
2016-09-05 19:12:41 +02:00
|
|
|
fate-copy-trac4914: CMD = transcode mpegts $(TARGET_SAMPLES)/mpeg2/xdcam8mp2-1s_small.ts\
|
2020-08-14 18:58:27 +02:00
|
|
|
mxf "-c:a pcm_s16le -af aresample -c:v copy"
|
2016-09-05 19:12:41 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_STREAMCOPY-$(call TRANSCODE, RAWVIDEO MPEG2VIDEO, AVI, MPEGTS_DEMUXER MPEGVIDEO_PARSER MPEGAUDIO_PARSER EXTRACT_EXTRADATA_BSF MP2_DECODER ARESAMPLE_FILTER) += fate-copy-trac4914-avi
|
2016-09-05 19:31:57 +02:00
|
|
|
fate-copy-trac4914-avi: CMD = transcode mpegts $(TARGET_SAMPLES)/mpeg2/xdcam8mp2-1s_small.ts\
|
2020-08-14 18:58:27 +02:00
|
|
|
avi "-c:a copy -c:v copy" "-af aresample"
|
2016-09-05 19:31:57 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_STREAMCOPY-$(call TRANSCODE, RAWVIDEO H264, AVI, H264_DEMUXER H264_PARSER EXTRACT_EXTRADATA_BSF) += fate-copy-trac2211-avi
|
2016-09-09 23:53:32 +02:00
|
|
|
fate-copy-trac2211-avi: CMD = transcode "h264 -r 14" $(TARGET_SAMPLES)/h264/bbc2.sample.h264\
|
2022-05-26 00:05:32 +02:00
|
|
|
avi "-c:v copy"
|
2016-09-09 23:53:32 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
ifneq (,$(filter fate-lavf-apng,$(FATE_LAVF_VIDEO)))
|
|
|
|
FATE_STREAMCOPY-$(call TRANSCODE, RAWVIDEO APNG, APNG) += fate-copy-apng
|
|
|
|
endif
|
2019-03-14 19:47:57 +02:00
|
|
|
fate-copy-apng: fate-lavf-apng
|
2022-05-04 15:49:40 +02:00
|
|
|
fate-lavf-apng: KEEP_FILES ?= 1
|
2019-04-04 00:17:43 +02:00
|
|
|
fate-copy-apng: CMD = transcode apng tests/data/lavf/lavf.apng apng "-c:v copy"
|
2019-03-14 19:47:57 +02:00
|
|
|
|
2016-09-09 16:47:11 +02:00
|
|
|
FATE_STREAMCOPY-$(call DEMMUX, OGG, OGG) += fate-limited_input_seek fate-limited_input_seek-copyts
|
2015-12-06 06:00:54 +02:00
|
|
|
fate-limited_input_seek: CMD = md5 -ss 1.5 -t 1.3 -i $(TARGET_SAMPLES)/vorbis/moog_small.ogg -c:a copy -fflags +bitexact -f ogg
|
|
|
|
fate-limited_input_seek-copyts: CMD = md5 -ss 1.5 -t 1.3 -i $(TARGET_SAMPLES)/vorbis/moog_small.ogg -c:a copy -copyts -fflags +bitexact -f ogg
|
2016-09-09 16:47:11 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_STREAMCOPY-$(call REMUX, PSP MOV, H264_PARSER H264_DECODER) += fate-copy-psp
|
2016-10-01 21:04:40 +02:00
|
|
|
fate-copy-psp: CMD = transcode "mov" $(TARGET_SAMPLES)/h264/wwwq_cut.mp4\
|
|
|
|
psp "-c copy" "-codec copy"
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_STREAMCOPY-$(call FRAMEMD5, FLV, H264) += fate-ffmpeg-streamloop
|
2019-09-04 11:53:35 +02:00
|
|
|
fate-ffmpeg-streamloop: CMD = framemd5 -stream_loop 2 -i $(TARGET_SAMPLES)/flv/streamloop.flv -c copy
|
|
|
|
|
2021-12-01 16:01:11 +02:00
|
|
|
tests/data/audio_shorter_than_video.nut: TAG = GEN
|
|
|
|
tests/data/audio_shorter_than_video.nut: tests/data/vsynth_lena.yuv
|
|
|
|
tests/data/audio_shorter_than_video.nut: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
|
2021-12-17 03:04:11 +02:00
|
|
|
$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< -nostdin \
|
2021-12-02 03:02:45 +02:00
|
|
|
-sws_flags +accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -idct simple -f rawvideo -s 352x288 -pix_fmt yuv420p -i $(TARGET_PATH)/tests/data/vsynth_lena.yuv \
|
2021-12-02 01:30:06 +02:00
|
|
|
-f lavfi -i "sine=1000:d=1" \
|
2021-12-02 11:24:59 +02:00
|
|
|
-sws_flags +accurate_rnd+bitexact -fflags +bitexact -flags +bitexact -idct simple -dct fastint -qscale 10 -c:v mpeg4 -threads 1 -c:a pcm_s16le -bitexact \
|
2021-12-01 16:01:11 +02:00
|
|
|
-y $(TARGET_PATH)/tests/data/audio_shorter_than_video.nut 2>/dev/null
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_STREAMCOPY-$(call FRAMEMD5, NUT, RAWVIDEO PCM_S16LE MPEG4, \
|
|
|
|
RAWVIDEO_DEMUXER LAVFI_INDEV \
|
|
|
|
MPEG4_ENCODER PCM_S16LE_ENCODER \
|
|
|
|
SINE_FILTER ARESAMPLE_FILTER AMIX_FILTER \
|
|
|
|
NUT_MUXER AC3_FIXED_ENCODER) \
|
|
|
|
+= fate-copy-shortest1 fate-copy-shortest2
|
|
|
|
fate-copy-shortest1 fate-copy-shortest2: tests/data/audio_shorter_than_video.nut
|
2021-12-02 03:02:45 +02:00
|
|
|
fate-copy-shortest1: CMD = framemd5 -auto_conversion_filters -fflags +bitexact -flags +bitexact -f lavfi -i "sine=3000:d=10" -f lavfi -i "sine=1000:d=1" -i $(TARGET_PATH)/tests/data/audio_shorter_than_video.nut -filter_complex "[0:a:0][1:a:0]amix=inputs=2[audio]" -map 2:v:0 -map "[audio]" -fflags +bitexact -flags +bitexact -c:v copy -c:a ac3_fixed -shortest
|
|
|
|
fate-copy-shortest2: CMD = framemd5 -auto_conversion_filters -fflags +bitexact -flags +bitexact -f lavfi -i "sine=3000:d=10" -i $(TARGET_PATH)/tests/data/audio_shorter_than_video.nut -filter_complex "[0:a:0][1:a:0]amix=inputs=2[audio]" -map 1:v:0 -map "[audio]" -fflags +bitexact -flags +bitexact -c:v copy -c:a ac3_fixed -shortest
|
2021-12-01 16:01:11 +02:00
|
|
|
|
2016-09-09 16:47:11 +02:00
|
|
|
fate-streamcopy: $(FATE_STREAMCOPY-yes)
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call TRANSCODE, RAWVIDEO, MATROSKA, MOV_DEMUXER QTRLE_DECODER) += fate-rgb24-mkv
|
2016-09-20 05:21:51 +02:00
|
|
|
fate-rgb24-mkv: CMD = transcode "mov" $(TARGET_SAMPLES)/qtrle/aletrek-rle.mov\
|
2021-12-09 06:01:27 +02:00
|
|
|
matroska "-c:v rawvideo -threads 1 -pix_fmt rgb24 -allow_raw_vfw 1 -frames:v 1"
|
2016-09-20 05:21:51 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call REMUX, MOV, AAC_DEMUXER AAC_DECODER AAC_PARSER AAC_ADTSTOASC_BSF) += fate-adtstoasc_ticket3715
|
2016-09-20 15:26:03 +02:00
|
|
|
fate-adtstoasc_ticket3715: CMD = transcode "aac" $(TARGET_SAMPLES)/aac/foo.aac\
|
|
|
|
mov "-c copy -bsf:a aac_adtstoasc" "-codec copy"
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call REMUX, H264, MOV_DEMUXER H264_MP4TOANNEXB_BSF H264_PARSER H264_DECODER EXTRACT_EXTRADATA_BSF) += fate-h264_mp4toannexb_ticket2991 fate-h264_mp4toannexb_ticket5927 fate-h264_mp4toannexb_ticket5927_2
|
2016-09-23 21:25:32 +02:00
|
|
|
fate-h264_mp4toannexb_ticket2991: CMD = transcode "mp4" $(TARGET_SAMPLES)/h264/wwwq_cut.mp4\
|
|
|
|
h264 "-c:v copy -bsf:v h264_mp4toannexb" "-codec copy"
|
2016-11-04 22:38:53 +02:00
|
|
|
fate-h264_mp4toannexb_ticket5927: CMD = transcode "mp4" $(TARGET_SAMPLES)/h264/thezerotheorem-cut.mp4 \
|
|
|
|
h264 "-c:v copy -bsf:v h264_mp4toannexb -an" "-c:v copy"
|
|
|
|
fate-h264_mp4toannexb_ticket5927_2: CMD = transcode "mp4" $(TARGET_SAMPLES)/h264/thezerotheorem-cut.mp4 \
|
|
|
|
h264 "-c:v copy -an" "-c:v copy"
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call TRANSCODE, MPEG4 MPEG2VIDEO, AVI, MPEGPS_DEMUXER MPEGVIDEO_DEMUXER MPEGVIDEO_PARSER EXTRACT_EXTRADATA_BSF REMOVE_EXTRADATA_BSF) += fate-ffmpeg-bsf-remove-k fate-ffmpeg-bsf-remove-r fate-ffmpeg-bsf-remove-e
|
2016-09-23 12:57:33 +02:00
|
|
|
fate-ffmpeg-bsf-remove-k: CMD = transcode "mpeg" $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg\
|
|
|
|
avi "-vbsf remove_extra=k" "-codec copy"
|
|
|
|
fate-ffmpeg-bsf-remove-r: CMD = transcode "mpeg" $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg\
|
2016-09-23 16:26:56 +02:00
|
|
|
avi "-vbsf remove_extra=keyframe" "-codec copy"
|
2016-09-23 12:57:33 +02:00
|
|
|
fate-ffmpeg-bsf-remove-e: CMD = transcode "mpeg" $(TARGET_SAMPLES)/mpeg2/matrixbench_mpeg2.lq1.mpg\
|
|
|
|
avi "-vbsf remove_extra=e" "-codec copy"
|
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-$(call DEMMUX, APNG, FRAMECRC, SETTS_BSF PIPE_PROTOCOL) += fate-ffmpeg-setts-bsf
|
2022-03-17 04:44:17 +02:00
|
|
|
fate-ffmpeg-setts-bsf: CMD = framecrc -i $(TARGET_SAMPLES)/apng/clock.png -c:v copy -bsf:v "setts=duration=if(eq(NEXT_PTS\,NOPTS)\,PREV_OUTDURATION\,(NEXT_PTS-PTS)/2):ts=PTS/2" -fflags +bitexact
|
2016-09-20 05:21:51 +02:00
|
|
|
|
2016-09-09 16:47:11 +02:00
|
|
|
FATE_SAMPLES_FFMPEG-yes += $(FATE_STREAMCOPY-yes)
|
2017-06-10 00:02:27 +02:00
|
|
|
|
2022-05-26 00:05:32 +02:00
|
|
|
FATE_TIME_BASE-$(call PARSERDEMDEC, MPEGVIDEO, MPEGPS, MPEG2VIDEO, MPEGVIDEO_DEMUXER MXF_MUXER) += fate-time_base
|
2017-06-10 00:02:27 +02:00
|
|
|
fate-time_base: CMD = md5 -i $(TARGET_SAMPLES)/mpeg2/dvd_single_frame.vob -an -sn -c:v copy -r 25 -time_base 1001:30000 -fflags +bitexact -f mxf
|
|
|
|
|
|
|
|
FATE_SAMPLES_FFMPEG-yes += $(FATE_TIME_BASE-yes)
|