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

Michael Niedermayer michael at niedermayer.cc
Wed Jul 6 22:54:12 EEST 2016


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

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160706/292c0da1/attachment.sig>


More information about the ffmpeg-devel mailing list