zeus
zeus

Reputation: 12975

How to fragment a video in HLS mp4 segment using ffmpeg?

I know that ffmpeg is able to produce mp4 segment (https://trac.ffmpeg.org/ticket/5699#no1), but i can't find how to do it :(

actually I do

ffmpeg -i input.mp4 -hls_time 10 output.m3u8

but of course I have .ts segment and me I want .mp4 segment :(

Upvotes: 2

Views: 9029

Answers (1)

csimon2
csimon2

Reputation: 76

FYI, as of May 2018, this appears to be fixed in ffmpeg v4:

ffmpeg -y -i udp://@:50000 -c copy -hls_segment_type fmp4 -hls_time 6 -hls_list_size 10 -hls_flags delete_segments+append_list+split_by_time -hls_playlist_type event ~/Sites/foo/index_4000.m3u8

Upvotes: 3

Related Questions