![]() Necessary cookies are absolutely essential for the website to function properly. f hls -hls_time 4 -hls_playlist_type event stream.m3u8 c:v libx264 -crf 21 -preset veryfast -g 25 -sc_threshold 0 \ This means, that always when a new scene starts an I-Frame will be set. Since it’s FFmpeg we can easily disable this feature.Īnd the new playlist looks as we were expecting: Segments with the exact same duration. The reason for this is that FFmpeg has a scene detection. But there are still some glitches above and also below 4 seconds. Well, now it is much closer to what we want. ![]() After that a new group will be created (starting with a new I-Frame). This option forces a target size of 25 frames. So each second will start with a new picture group. My video source has 25 FPS (25 pictures per second). seek in the stream the player chooses the nearest new stream*.ts file and starts playing it. The problem here is that the segmenter splits starts a new file only at keyframes (I-Frames). A constant value is required for a good buffering in the player. Instead a TARGETDURATION of 10 is set and the segment length (value after #EXTINF:) is also not constant. But we have seen, that the segmentation is not working as expected.Īfter a look in the stream.m3u8 we have a big surprise: The given target duration of 4 seconds are not used. ![]() We have set up our fist livestream that was already playable in safari. On Using FFmpeg as a HLS streaming server (Part 1) – HLS Basics Follow the link here to get an overview over all articles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |