mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fate/mov: add PCM in mp4 test
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
d4ee177a36
commit
9e1ffeda8c
@ -165,6 +165,18 @@ FATE_MOV_FFMPEG-$(call TRANSCODE, PCM_S16LE, MOV, WAV_DEMUXER PAN_FILTER) \
|
|||||||
fate-mov-channel-description: tests/data/asynth-44100-1.wav tests/data/filtergraphs/mov-channel-description
|
fate-mov-channel-description: tests/data/asynth-44100-1.wav tests/data/filtergraphs/mov-channel-description
|
||||||
fate-mov-channel-description: CMD = transcode wav $(TARGET_PATH)/tests/data/asynth-44100-1.wav mov "-filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/mov-channel-description -map [outFL] -map [outFR] -map [outFC] -map [outLFE] -map [outBL] -map [outBR] -map [outDL] -map [outDR] -c:a pcm_s16le" "-map 0 -c copy -frames:a 0"
|
fate-mov-channel-description: CMD = transcode wav $(TARGET_PATH)/tests/data/asynth-44100-1.wav mov "-filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/mov-channel-description -map [outFL] -map [outFR] -map [outFC] -map [outLFE] -map [outBL] -map [outBR] -map [outDL] -map [outDR] -c:a pcm_s16le" "-map 0 -c copy -frames:a 0"
|
||||||
|
|
||||||
|
# Test PCM in mp4 and channel layout
|
||||||
|
FATE_MOV_FFMPEG-$(call TRANSCODE, PCM_S16LE, MOV, WAV_DEMUXER PAN_FILTER) \
|
||||||
|
+= fate-mov-mp4-pcm
|
||||||
|
fate-mov-mp4-pcm: tests/data/asynth-44100-1.wav tests/data/filtergraphs/mov-mp4-pcm
|
||||||
|
fate-mov-mp4-pcm: CMD = transcode wav $(TARGET_PATH)/tests/data/asynth-44100-1.wav mp4 "-filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/mov-mp4-pcm -map [mono] -map [stereo] -map [2.1] -map [5.1] -map [7.1] -c:a pcm_s16le" "-map 0 -c copy -frames:a 0"
|
||||||
|
|
||||||
|
# Test floating sample format PCM in mp4 and unusual channel layout
|
||||||
|
FATE_MOV_FFMPEG-$(call TRANSCODE, PCM_S16LE, MOV, WAV_DEMUXER PAN_FILTER) \
|
||||||
|
+= fate-mov-mp4-pcm-float
|
||||||
|
fate-mov-mp4-pcm-float: tests/data/asynth-44100-1.wav
|
||||||
|
fate-mov-mp4-pcm-float: CMD = transcode wav $(TARGET_PATH)/tests/data/asynth-44100-1.wav mp4 "-af aresample,pan=FL+LFE+BR|c0=c0|c1=c0|c2=c0 -c:a pcm_f32le" "-map 0 -c copy -frames:a 0"
|
||||||
|
|
||||||
FATE_FFMPEG += $(FATE_MOV_FFMPEG-yes)
|
FATE_FFMPEG += $(FATE_MOV_FFMPEG-yes)
|
||||||
|
|
||||||
fate-mov: $(FATE_MOV) $(FATE_MOV_FFMPEG-yes) $(FATE_MOV_FFPROBE) $(FATE_MOV_FASTSTART) $(FATE_MOV_FFMPEG_FFPROBE-yes)
|
fate-mov: $(FATE_MOV) $(FATE_MOV_FFMPEG-yes) $(FATE_MOV_FFPROBE) $(FATE_MOV_FASTSTART) $(FATE_MOV_FFMPEG_FFPROBE-yes)
|
||||||
|
5
tests/filtergraphs/mov-mp4-pcm
Normal file
5
tests/filtergraphs/mov-mp4-pcm
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[0:a:0]pan=mono|c0=c0[mono];
|
||||||
|
[0:a:0]pan=stereo|c0=c0|c1=c0[stereo];
|
||||||
|
[0:a:0]pan=2.1|c0=c0|c1=c0|c2=c0[2.1];
|
||||||
|
[0:a:0]pan=5.1|c0=c0|c1=c0|c2=c0|c3=c0|c4=c0|c5=c0[5.1];
|
||||||
|
[0:a:0]pan=7.1|c0=c0|c1=c0|c2=c0|c3=c0|c4=c0|c5=c0|c6=c0|c7=c0[7.1];
|
27
tests/ref/fate/mov-mp4-pcm
Normal file
27
tests/ref/fate/mov-mp4-pcm
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
1573ecbd24a65a6ec23ef08a861614b3 *tests/data/fate/mov-mp4-pcm.mp4
|
||||||
|
10589277 tests/data/fate/mov-mp4-pcm.mp4
|
||||||
|
#tb 0: 1/44100
|
||||||
|
#media_type 0: audio
|
||||||
|
#codec_id 0: pcm_s16le
|
||||||
|
#sample_rate 0: 44100
|
||||||
|
#channel_layout_name 0: mono
|
||||||
|
#tb 1: 1/44100
|
||||||
|
#media_type 1: audio
|
||||||
|
#codec_id 1: pcm_s16le
|
||||||
|
#sample_rate 1: 44100
|
||||||
|
#channel_layout_name 1: stereo
|
||||||
|
#tb 2: 1/44100
|
||||||
|
#media_type 2: audio
|
||||||
|
#codec_id 2: pcm_s16le
|
||||||
|
#sample_rate 2: 44100
|
||||||
|
#channel_layout_name 2: 2.1
|
||||||
|
#tb 3: 1/44100
|
||||||
|
#media_type 3: audio
|
||||||
|
#codec_id 3: pcm_s16le
|
||||||
|
#sample_rate 3: 44100
|
||||||
|
#channel_layout_name 3: 5.1
|
||||||
|
#tb 4: 1/44100
|
||||||
|
#media_type 4: audio
|
||||||
|
#codec_id 4: pcm_s16le
|
||||||
|
#sample_rate 4: 44100
|
||||||
|
#channel_layout_name 4: 7.1
|
7
tests/ref/fate/mov-mp4-pcm-float
Normal file
7
tests/ref/fate/mov-mp4-pcm-float
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
691a76a847e0f3720c09cca341971f19 *tests/data/fate/mov-mp4-pcm-float.mp4
|
||||||
|
3175929 tests/data/fate/mov-mp4-pcm-float.mp4
|
||||||
|
#tb 0: 1/44100
|
||||||
|
#media_type 0: audio
|
||||||
|
#codec_id 0: pcm_f32le
|
||||||
|
#sample_rate 0: 44100
|
||||||
|
#channel_layout_name 0: 3 channels (FL+LFE+BR)
|
Loading…
Reference in New Issue
Block a user