Closed nschlia closed 2 years ago
Running ffmpeg with the -loglevel debug parameter reveals:
AVIOContext @ 0x555d80d8d040] Statistics: 654240 bytes read, 0 seeks256.9kbits/s speed=15.2x
[hls @ 0x555d80d84300] HLS request for url '/mnt/video/Musik/I Miss My Death - While You Remember Me(Live 2013).m4v/000002.ts', offset 0, playlist 0
[hls @ 0x555d80d84300] Opening '/mnt/video/Musik/I Miss My Death - While You Remember Me(Live 2013).m4v/000002.ts' for reading
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 17 expected 4 got 0
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 0 expected 4 got 0
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 4096 expected 4 got 0
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 256 expected 8 got 0
[mpegts @ 0x555d80d8b900] Packet corrupt (stream = 0, dts = 897424).
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 257 expected 4 got 0
[AVIOContext @ 0x555d80f47300] Statistics: 684320 bytes read, 0 seeks432.4kbits/s speed=12.1x
[hls @ 0x555d80d84300] HLS request for url '/mnt/video/Musik/I Miss My Death - While You Remember Me(Live 2013).m4v/000003.ts', offset 0, playlist 0
[hls @ 0x555d80d84300] Opening '/mnt/video/Musik/I Miss My Death - While You Remember Me(Live 2013).m4v/000003.ts' for reading
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 17 expected 4 got 0
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 0 expected 4 got 0
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 4096 expected 4 got 0
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 256 expected 4 got 0
[mpegts @ 0x555d80d8b900] Packet corrupt (stream = 0, dts = 1797424).
[mpegts @ 0x555d80d8b900] Continuity check failed for pid 257 expected 8 got 0
[AVIOContext @ 0x555d80f47300] Statistics: 713836 bytes read, 0 seeks416.7kbits/s speed=11.8x
[hls @ 0x555d80d84300] HLS request for url '/mnt/video/Musik/I Miss My Death - While You Remember Me(Live 2013).m4v/000004.ts', offset 0, playlist 0
There is a longer discussion about this matter here: https://ffmpeg-trac.avcodec.narkive.com/XzBIhn9B/2828-avformat-new-hls-segment-mpegts-continuity-counter-is-being-incorrectly-set-to-0-on-each This does not seem to be a problem with Firefox etc, W3C mentions "Timestamp rollovers and discontinuities must be handled by the UA. " https://rawgit.com/w3c/media-source/30c2d1e/media-source.html#mpeg2ts-discontinuities Well, anyway, I think we can close this as minor problem.
Several warnings when processing an HLS stream with FFmpeg, for example "[mpegts @ 0x564b6ca37400] Packet corrupt (stream = 0, dts = 8995024)".
The seems to be an invalid DTS in the first packet, see "[mpegts @ 0x564b6ca37400] Invalid timestamps stream=0, pts=1024, dts=8589932616, size=26430"
This is obviously the very last packet of the segment. Checking the segment alone does not reveal any problems, only when the segments are combined.
Not a big issue, as the streams actually play fine, but should be checked anyway.
Example log: