2016-07-07 3:54 GMT+08:00 Michael Niedermayer <[email protected]>:
> On Wed, Jul 06, 2016 at 05:57:57PM +0800, Steven Liu wrote: > > support split hls segment at duration set by hls_time > > > > after the patch , the ffmpeg can split the mpegts for hls by hls_time > > parameter > > > > [root@localhost ffmpeg]# ./ffmpeg -i /root/facebook.mp4 -v quiet -c > copy -f > > hls -hls_time 3 -hls_flags split_by_time -bsf:v h264_mp4toannexb > > -hls_list_size 20 -t 30 output_afterpatch.m3u8 > > [root@localhost ffmpeg]# > > [root@localhost ffmpeg]# > > [root@localhost ffmpeg]# cat output_afterpatch.m3u8 > > #EXTM3U > > #EXT-X-VERSION:3 > > #EXT-X-TARGETDURATION:4 > > #EXT-X-MEDIA-SEQUENCE:0 > > #EXTINF:3.040000, > > output_afterpatch0.ts > > #EXTINF:3.160000, > > output_afterpatch1.ts > > #EXTINF:2.840000, > > output_afterpatch2.ts > > #EXTINF:3.160000, > > output_afterpatch3.ts > > #EXTINF:2.880000, > > output_afterpatch4.ts > > #EXTINF:3.080000, > > output_afterpatch5.ts > > #EXTINF:2.920000, > > output_afterpatch6.ts > > #EXTINF:3.120000, > > output_afterpatch7.ts > > #EXTINF:2.880000, > > output_afterpatch8.ts > > #EXTINF:2.960000, > > output_afterpatch9.ts > > #EXTINF:-0.040000, > > output_afterpatch10.ts > > #EXT-X-ENDLIST > > > > > > support split hls segment at duration set by hls_time > > > > Signed-off-by: LiuQi <[email protected]> > > --- > > libavformat/hlsenc.c | 4 +++- > > 1 files changed, 3 insertions(+), 1 deletions(-) > > missing update to the documentation > > Update the documentation.
0001-add-split_by_time-flag-for-support-splite-mpegts-seg.patch
Description: Binary data
_______________________________________________ ffmpeg-devel mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
