Message ID | 20181224094456.36457-1-lq@chinaffmpeg.org |
---|---|
State | Accepted |
Commit | 2780cd33d938f1bfb627685a8b93c0a30b90fb0b |
Headers | show |
Steven Liu <lq@chinaffmpeg.org> 于2018年12月24日周一 下午5:45写道: > > init add three test examples: > 1. check no endlist at the end > 2. check endlist at the end > 3. check hls_list_size 0 full list > > Signed-off-by: Steven Liu <lq@chinaffmpeg.org> > --- > tests/Makefile | 1 + > tests/fate/hlsenc.mak | 43 +++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 44 insertions(+) > create mode 100644 tests/fate/hlsenc.mak > > diff --git a/tests/Makefile b/tests/Makefile > index 24680b8150..90801b42b2 100644 > --- a/tests/Makefile > +++ b/tests/Makefile > @@ -131,6 +131,7 @@ include $(SRC_PATH)/tests/fate/gif.mak > include $(SRC_PATH)/tests/fate/h264.mak > include $(SRC_PATH)/tests/fate/hap.mak > include $(SRC_PATH)/tests/fate/hevc.mak > +include $(SRC_PATH)/tests/fate/hlsenc.mak > include $(SRC_PATH)/tests/fate/hw.mak > include $(SRC_PATH)/tests/fate/id3v2.mak > include $(SRC_PATH)/tests/fate/image.mak > diff --git a/tests/fate/hlsenc.mak b/tests/fate/hlsenc.mak > new file mode 100644 > index 0000000000..80536239fc > --- /dev/null > +++ b/tests/fate/hlsenc.mak > @@ -0,0 +1,43 @@ > +tests/data/live_no_endlist.m3u8: TAG = GEN > +tests/data/live_no_endlist.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data > + $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ > + -f lavfi -v verbose -i "aevalsrc=cos(2*PI*t)*sin(2*PI*(440+4*t)*t):d=20" -f hls -hls_time 3 -map 0 \ > + -hls_flags omit_endlist -codec:a mp2fixed -hls_segment_filename $(TARGET_PATH)/tests/data/live_no_endlist_%03d.ts \ > + $(TARGET_PATH)/tests/data/live_no_endlist.m3u8 2>/dev/null > + > +FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-hls-live-no-endlist > +fate-hls-live-no-endlist: tests/data/live_no_endlist.m3u8 > +fate-hls-live-no-endlist: SRC = $(TARGET_PATH)/tests/data/live_no_endlist.m3u8 > +fate-hls-live-no-endlist: CMD = md5 -i $(SRC) -af hdcd=process_stereo=false -t 6 -f s24le > +fate-hls-live-no-endlist: CMP = oneline > +fate-hls-live-no-endlist: REF = e038bb8e65d4c1745b9b3ed643e607a3 > + > +tests/data/live_last_endlist.m3u8: TAG = GEN > +tests/data/live_last_endlist.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data > + $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ > + -f lavfi -v verbose -i "aevalsrc=cos(2*PI*t)*sin(2*PI*(440+4*t)*t):d=20" -f hls -hls_time 3 -map 0 \ > + -codec:a mp2fixed -hls_segment_filename $(TARGET_PATH)/tests/data/live_last_endlist_%03d.ts \ > + $(TARGET_PATH)/tests/data/live_last_endlist.m3u8 2>/dev/null > + > +FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-hls-live-last-endlist > +fate-hls-live-last-endlist: tests/data/live_last_endlist.m3u8 > +fate-hls-live-last-endlist: SRC = $(TARGET_PATH)/tests/data/live_last_endlist.m3u8 > +fate-hls-live-last-endlist: CMD = md5 -i $(SRC) -af hdcd=process_stereo=false -t 6 -f s24le > +fate-hls-live-last-endlist: CMP = oneline > +fate-hls-live-last-endlist: REF = 2ca8567092dcf01e37bedd50454d1ab7 > + > + > +tests/data/live_endlist.m3u8: TAG = GEN > +tests/data/live_endlist.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data > + $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ > + -f lavfi -i "aevalsrc=cos(2*PI*t)*sin(2*PI*(440+4*t)*t):d=20" -f hls -hls_time 3 -map 0 \ > + -hls_list_size 0 -codec:a mp2fixed -hls_segment_filename $(TARGET_PATH)/tests/data/live_endlist_%d.ts \ > + $(TARGET_PATH)/tests/data/live_endlist.m3u8 2>/dev/null > + > +FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-hls-live-endlist > +fate-hls-live-endlist: tests/data/live_endlist.m3u8 > +fate-hls-live-endlist: SRC = $(TARGET_PATH)/tests/data/live_endlist.m3u8 > +fate-hls-live-endlist: CMD = md5 -i $(SRC) -af hdcd=process_stereo=false -t 20 -f s24le > +fate-hls-live-endlist: CMP = oneline > +fate-hls-live-endlist: REF = e189ce781d9c87882f58e3929455167b > + > -- > 2.15.2 (Apple Git-101.1) > > > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel ping
On Mon, Dec 24, 2018 at 05:44:56PM +0800, Steven Liu wrote: > init add three test examples: > 1. check no endlist at the end > 2. check endlist at the end > 3. check hls_list_size 0 full list > > Signed-off-by: Steven Liu <lq@chinaffmpeg.org> > --- > tests/Makefile | 1 + > tests/fate/hlsenc.mak | 43 +++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 44 insertions(+) > create mode 100644 tests/fate/hlsenc.mak tested on x86-32 & 64 linux, mingw32 & 64, arm and mips qemu thx [...]
Michael Niedermayer <michael@niedermayer.cc> 于2019年1月3日周四 下午8:32写道: > > On Mon, Dec 24, 2018 at 05:44:56PM +0800, Steven Liu wrote: > > init add three test examples: > > 1. check no endlist at the end > > 2. check endlist at the end > > 3. check hls_list_size 0 full list > > > > Signed-off-by: Steven Liu <lq@chinaffmpeg.org> > > --- > > tests/Makefile | 1 + > > tests/fate/hlsenc.mak | 43 +++++++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 44 insertions(+) > > create mode 100644 tests/fate/hlsenc.mak > > tested on x86-32 & 64 linux, mingw32 & 64, arm and mips qemu Pushed Thanks > > thx > > [...] > -- > Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB > > Freedom in capitalist society always remains about the same as it was in > ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
diff --git a/tests/Makefile b/tests/Makefile index 24680b8150..90801b42b2 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -131,6 +131,7 @@ include $(SRC_PATH)/tests/fate/gif.mak include $(SRC_PATH)/tests/fate/h264.mak include $(SRC_PATH)/tests/fate/hap.mak include $(SRC_PATH)/tests/fate/hevc.mak +include $(SRC_PATH)/tests/fate/hlsenc.mak include $(SRC_PATH)/tests/fate/hw.mak include $(SRC_PATH)/tests/fate/id3v2.mak include $(SRC_PATH)/tests/fate/image.mak diff --git a/tests/fate/hlsenc.mak b/tests/fate/hlsenc.mak new file mode 100644 index 0000000000..80536239fc --- /dev/null +++ b/tests/fate/hlsenc.mak @@ -0,0 +1,43 @@ +tests/data/live_no_endlist.m3u8: TAG = GEN +tests/data/live_no_endlist.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data + $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ + -f lavfi -v verbose -i "aevalsrc=cos(2*PI*t)*sin(2*PI*(440+4*t)*t):d=20" -f hls -hls_time 3 -map 0 \ + -hls_flags omit_endlist -codec:a mp2fixed -hls_segment_filename $(TARGET_PATH)/tests/data/live_no_endlist_%03d.ts \ + $(TARGET_PATH)/tests/data/live_no_endlist.m3u8 2>/dev/null + +FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-hls-live-no-endlist +fate-hls-live-no-endlist: tests/data/live_no_endlist.m3u8 +fate-hls-live-no-endlist: SRC = $(TARGET_PATH)/tests/data/live_no_endlist.m3u8 +fate-hls-live-no-endlist: CMD = md5 -i $(SRC) -af hdcd=process_stereo=false -t 6 -f s24le +fate-hls-live-no-endlist: CMP = oneline +fate-hls-live-no-endlist: REF = e038bb8e65d4c1745b9b3ed643e607a3 + +tests/data/live_last_endlist.m3u8: TAG = GEN +tests/data/live_last_endlist.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data + $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ + -f lavfi -v verbose -i "aevalsrc=cos(2*PI*t)*sin(2*PI*(440+4*t)*t):d=20" -f hls -hls_time 3 -map 0 \ + -codec:a mp2fixed -hls_segment_filename $(TARGET_PATH)/tests/data/live_last_endlist_%03d.ts \ + $(TARGET_PATH)/tests/data/live_last_endlist.m3u8 2>/dev/null + +FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-hls-live-last-endlist +fate-hls-live-last-endlist: tests/data/live_last_endlist.m3u8 +fate-hls-live-last-endlist: SRC = $(TARGET_PATH)/tests/data/live_last_endlist.m3u8 +fate-hls-live-last-endlist: CMD = md5 -i $(SRC) -af hdcd=process_stereo=false -t 6 -f s24le +fate-hls-live-last-endlist: CMP = oneline +fate-hls-live-last-endlist: REF = 2ca8567092dcf01e37bedd50454d1ab7 + + +tests/data/live_endlist.m3u8: TAG = GEN +tests/data/live_endlist.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data + $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ + -f lavfi -i "aevalsrc=cos(2*PI*t)*sin(2*PI*(440+4*t)*t):d=20" -f hls -hls_time 3 -map 0 \ + -hls_list_size 0 -codec:a mp2fixed -hls_segment_filename $(TARGET_PATH)/tests/data/live_endlist_%d.ts \ + $(TARGET_PATH)/tests/data/live_endlist.m3u8 2>/dev/null + +FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-hls-live-endlist +fate-hls-live-endlist: tests/data/live_endlist.m3u8 +fate-hls-live-endlist: SRC = $(TARGET_PATH)/tests/data/live_endlist.m3u8 +fate-hls-live-endlist: CMD = md5 -i $(SRC) -af hdcd=process_stereo=false -t 20 -f s24le +fate-hls-live-endlist: CMP = oneline +fate-hls-live-endlist: REF = e189ce781d9c87882f58e3929455167b +
init add three test examples: 1. check no endlist at the end 2. check endlist at the end 3. check hls_list_size 0 full list Signed-off-by: Steven Liu <lq@chinaffmpeg.org> --- tests/Makefile | 1 + tests/fate/hlsenc.mak | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 tests/fate/hlsenc.mak