1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00
FFmpeg/libavformat
Steven Liu 6b95da9af9 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>
2016-12-07 07:43:36 +08:00
..
2016-11-07 00:51:49 +01:00
2016-07-03 04:37:48 +02:00
2016-08-22 22:03:37 +02:00
2016-10-17 20:41:26 +02:00
2016-11-30 02:22:50 +01:00
2016-11-07 00:51:49 +01:00
2016-06-19 18:51:39 +02:00
2016-06-19 18:51:39 +02:00
2016-07-17 13:10:27 -03:00
2016-10-21 19:41:09 +02:00
2016-11-26 11:28:22 +08:00
2016-05-04 18:16:21 +02:00
2016-05-04 18:16:21 +02:00
2016-05-19 17:02:06 +02:00
2016-07-15 10:25:02 +02:00
2016-11-30 12:18:58 -05:00
2016-09-10 16:40:47 -07:00
2016-12-02 15:04:24 -05:00
2016-11-08 22:27:11 +01:00
2016-05-21 18:49:45 +02:00
2016-11-07 00:51:49 +01:00
2016-11-10 01:18:43 +01:00
2016-11-07 00:51:49 +01:00
2016-07-02 09:30:40 +02:00
2016-10-09 20:09:00 +02:00
2016-07-17 13:10:27 -03:00
2016-11-23 00:57:10 +01:00
2016-10-20 19:54:54 +02:00
2016-11-23 01:16:42 +01:00
2016-07-17 13:10:27 -03:00
2016-11-02 01:16:23 -05:00
2016-06-25 15:53:11 -05:00
2016-05-03 15:45:10 +02:00
2016-10-09 20:09:00 +02:00
2016-08-04 16:25:40 -03:00
2016-11-07 00:51:49 +01:00
2016-11-07 00:51:49 +01:00