[FFmpeg-devel] [PATCH] add split_by_time flag for support splite mpegts segment at non-keyframe

Steven Liu lingjiujianke at gmail.com
Thu Jul 7 01:58:45 EEST 2016


2016-07-07 3:54 GMT+08:00 Michael Niedermayer <michael at niedermayer.cc>:

> 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 at 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 at localhost ffmpeg]#
> > [root at localhost ffmpeg]#
> > [root at 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 <liuqi at gosun.com>
> > ---
> >  libavformat/hlsenc.c |    4 +++-
> >  1 files changed, 3 insertions(+), 1 deletions(-)
>
> missing update to the documentation
>
>
Update the documentation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-split_by_time-flag-for-support-splite-mpegts-seg.patch
Type: application/octet-stream
Size: 3272 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160707/2ef45e45/attachment.obj>


More information about the ffmpeg-devel mailing list