mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
tests/fate/hlsenc: add testcase of ac3 surround sound input in hlsenc
add probeaudiostream for get audio stream's codec_name,codec_time_base, sample_fmt,channels and channel_layout. Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
73fe0cbb94
commit
9ee010e734
@ -89,6 +89,10 @@ probefmt(){
|
||||
run ffprobe${PROGSUF}${EXECSUF} -show_entries format=format_name -print_format default=nw=1:nk=1 -v 0 "$@"
|
||||
}
|
||||
|
||||
probeaudiostream(){
|
||||
run ffprobe${PROGSUF}${EXECSUF} -show_entries stream=codec_name,codec_time_base,sample_fmt,channels,channel_layout -v 0 "$@"
|
||||
}
|
||||
|
||||
probetags(){
|
||||
run ffprobe${PROGSUF}${EXECSUF} -show_entries format_tags -v 0 "$@"
|
||||
}
|
||||
|
@ -97,5 +97,17 @@ FATE_HLSENC-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILT
|
||||
fate-hls-fmp4: tests/data/hls_segment_type_fmp4.m3u8
|
||||
fate-hls-fmp4: CMD = framecrc -flags +bitexact -i $(TARGET_PATH)/tests/data/hls_fmp4.m3u8 -vf setpts=N*23
|
||||
|
||||
FATE_FFMPEG += $(FATE_HLSENC-yes)
|
||||
tests/data/hls_fmp4_ac3.m3u8: TAG = GEN
|
||||
tests/data/hls_fmp4_ac3.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
|
||||
$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
|
||||
-stream_loop 4 -i $(SAMPLES)/ac3/monsters_inc_5.1_448_small.ac3 -c copy -map 0 \
|
||||
-hls_segment_type fmp4 -hls_fmp4_init_filename now.mp4 -hls_list_size 0 \
|
||||
-hls_time 2 -hls_segment_filename "$(TARGET_PATH)/tests/data/hls_fmp4_%d.m4s" \
|
||||
$(TARGET_PATH)/tests/data/hls_fmp4_ac3.m3u8 2>/dev/null
|
||||
|
||||
FATE_HLSENC-$(call ALLYES, HLS_DEMUXER EAC3_DEMUXER) += fate-hls-fmp4_ac3
|
||||
fate-hls-fmp4_ac3: tests/data/hls_fmp4_ac3.m3u8
|
||||
fate-hls-fmp4_ac3: CMD = probeaudiostream $(TARGET_PATH)/tests/data/now.mp4
|
||||
|
||||
FATE_SAMPLES_FFMPEG += $(FATE_HLSENC-yes)
|
||||
fate-hlsenc: $(FATE_HLSENC-yes)
|
||||
|
9
tests/ref/fate/hls-fmp4_ac3
Normal file
9
tests/ref/fate/hls-fmp4_ac3
Normal file
@ -0,0 +1,9 @@
|
||||
[STREAM]
|
||||
codec_name=ac3
|
||||
codec_time_base=1/48000
|
||||
sample_fmt=fltp
|
||||
channels=6
|
||||
channel_layout=5.1(side)
|
||||
[SIDE_DATA]
|
||||
[/SIDE_DATA]
|
||||
[/STREAM]
|
Loading…
Reference in New Issue
Block a user