2017-04-14 16:46 GMT+08:00 ? ? <[email protected]>:

> 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
> [email protected]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to