[FFmpeg-user] hls_init_time problem

Steven Liu lingjiujianke at gmail.com
Wed Apr 26 02:53:54 EEST 2017


2017-04-14 16:46 GMT+08:00 ? ? <closezling at outlook.com>:

> Hi,
>
> I’m record a stream from ip camera with H264 video encoding & PCMA audio
> encoding to m3u8
> Ffmpeg version:3.2.4
> OS:OSX
>
> Here is my command:
>
> ffmpeg -rtsp_transport tcp -i rtsp://192.168.0.40/1/h264major -vcodec
> copy -acodec aac -hls_init_time 2 -hls_time 60
> -hls_list_size 0 -hls_flags +single_file+round_durations
> -hls_segment_filename test.ts -t 3600 test.m3u8
>
> But in the m3u8 file,every segment entry’s duration is 2 seconds
>
> Which part did I do wrong?
>
you should not use both -hls_init_time 2 and  -hls_list_size 0,
-hls_init_time 2 is enabled on first hls m3u8 window(before sequence(#
EXT-X-MEDIA-SEQUENCE) value change.)

>
> Thx in advance!
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list