diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2016-12-07 07:43:36 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2016-12-07 07:43:36 +0800 |
commit | 6b95da9af91cd912561aa25593d6a41caa071963 (patch) | |
tree | 55537dee466b7a99e5e85760c129023370f047e1 /libavutil | |
parent | 728651df06f48b49228ac5b8241b1ebe8d5b9d73 (diff) | |
download | ffmpeg-6b95da9af91cd912561aa25593d6a41caa071963.tar.gz |
avformat/hlsenc: save the EXT-X-DISCONTINUITY from old list
when use fix ticket 2nd problem.
command line test step:
rm -rf output*;./ffmpeg -i ~/Movies/objectC/facebook.mp4 -an -c:v copy
-f hls -hls_time 4 -hls_list_size 5 -hls_flags +delete_segments
-hls_flags +append_list -hls_flags +omit_endlist -hls_flags
+discont_start -t 50 output.m3u8
./ffmpeg -i ~/Movies/objectC/facebook.mp4 -an -c:v libx264 -g 4 -f hls
-hls_time 4 -hls_list_size 5 -hls_flags +delete_segments -hls_flags
+append_list -hls_flags +omit_endlist -hls_flags +discont_start -t 5
output.m3u8
./ffmpeg -i ~/Movies/objectC/facebook.mp4 -an -c:v libx264 -g 4 -f hls
-hls_time 4 -hls_list_size 5 -hls_flags +delete_segments -hls_flags
+append_list -hls_flags +omit_endlist -hls_flags +discont_start -t 5
output.m3u8
result:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:6
#EXTINF:4.120000,
output6.ts
#EXT-X-DISCONTINUITY
#EXTINF:4.000000,
output7.ts
#EXTINF:0.960000,
output8.ts
#EXT-X-DISCONTINUITY
#EXTINF:4.000000,
output9.ts
#EXTINF:0.960000,
output10.ts
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavutil')
0 files changed, 0 insertions, 0 deletions