hls single file muxer publishes truncated segments?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

hls single file muxer publishes truncated segments?

Daniel Oberhoff-3
Hello all,


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. this makes us
have to use clunky workarounds. i also tested with multi file muxing and
did not see the problem. is this problem known? is there a way around it?


Best


Daniel Oberhoff


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

pEpkey.asc (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: hls single file muxer publishes truncated segments?

Carl Eugen Hoyos-2
2018-12-05 11:55 GMT+01:00, Daniel Oberhoff <[hidden email]>:

> 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?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: hls single file muxer publishes truncated segments?

Daniel Oberhoff-3

Am 05.12.18 um 13:15 schrieb Carl Eugen Hoyos:
> 2018-12-05 11:55 GMT+01:00, Daniel Oberhoff <[hidden email]>:
>
>> 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


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

pEpkey.asc (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: hls single file muxer publishes truncated segments?

Daniel Oberhoff-3
In reply to this post by Carl Eugen Hoyos-2

Am 05.12.18 um 13:15 schrieb Carl Eugen Hoyos:
> 2018-12-05 11:55 GMT+01:00, Daniel Oberhoff <[hidden email]>:
>
>> 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?

Sorry, i missed you asked for console output. I attach 4 files,
generator/consumer for single file and generator/consumer for multifile

So i noticed actually in this case it doesnt crash, but get stuck and
not produce any output beyond 2MB. The porblem i had was actually when
using our own program that polls on the m3u8 and once a new segment
appears tries to read that. and there i got a premature eof. Thats a bit
harder to minimize though.


Daniel Oberhoff


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

multi_file_consumer.txt (4K) Download Attachment
multi_file_generator.txt (9K) Download Attachment
single_file_consumer.txt (3K) Download Attachment
single_file_generator.txt (69K) Download Attachment
pEpkey.asc (5K) Download Attachment