[FFmpeg-user] hls single file muxer publishes truncated segments?

Daniel Oberhoff danieloberhoff at googlemail.com
Wed Dec 5 16:15:42 EET 2018


Am 05.12.18 um 13:15 schrieb Carl Eugen Hoyos:
> 2018-12-05 11:55 GMT+01:00, Daniel Oberhoff <danieloberhoff at googlemail.com>:
>
>> We are now starting to use the single file hls muxer with the fmp4 file
>> format. While running a test i found the situation where a segment
>> appeared in the playlist that was not yet fully written.
> Command line and complete, uncut console output missing.
> Can you also explain how (exactly) I can reproduce?

sure. so i generate the stream from my mbp webcam like so:

 ffmpeg -f avfoundation -r 10  -i "0" -g 1 -hls_flags single_file
-hls_list_size 0 -hls_segment_type fmp4 -f hls test_single_file_mp4.m3u8

then if you consume this as fast as you can, for example like so:

ffmpeg -i test_single_file_mp4.m3u8 -f null /dev/null

you will get lots of error messages. if you do multi file hls like so:

ffmpeg -f avfoundation -r 10  -i "0" -g 1 -hls_list_size 0
-hls_segment_filename test_segments/segment%07d.ts -hls_base_url
test_segments/  -f hls test_hls.m3u8

and consume like so:

 ffmpeg -i test_hls.m3u8 -f null /dev/null

all is good.


Best


Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 5657 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20181205/a6d13a69/attachment.key>


More information about the ffmpeg-user mailing list