Description
Bug Description
When I run app-swt-detection on cpb-aacip-0b2dcf6b574.mp4, it finishes successfully, but there are many hundreds (thousands?) of lines of error/diagnostic output.
I think this is due to encountering a decode error. I have encountered this problem only about 10 times (out of tens of thousands of runs). I can supply additional media files if necessary.
Reproduction steps
Run app-swt-detection on [cpb-aacip-0b2dcf6b574.mp4]. Look at output.
(It may be necessary to set the tp sampling interval to something low, like 250ms.)
Expected behavior
Ideally, it just logs a warning once and moves on.
Log output
[NULL @ 0x5624b32d08c0] Invalid NAL unit size (0 > 1286).
[NULL @ 0x5624b32d08c0] missing picture in access unit with size 1290
[h264 @ 0x5624b2fdcc00] Invalid NAL unit size (0 > 1286).
[h264 @ 0x5624b2fdcc00] Error splitting the input into NAL units.
[NULL @ 0x5624b32d08c0] Invalid NAL unit size (0 > 481).
[NULL @ 0x5624b32d08c0] missing picture in access unit with size 485
[h264 @ 0x5624b3c3e240] Invalid NAL unit size (0 > 481).
[h264 @ 0x5624b3c3e240] Error splitting the input into NAL units.
[NULL @ 0x5624b32d08c0] Invalid NAL unit size (0 > 523).
[NULL @ 0x5624b32d08c0] missing picture in access unit with size 527
[h264 @ 0x5624b35ba440] Invalid NAL unit size (0 > 523).
[h264 @ 0x5624b35ba440] Error splitting the input into NAL units.
. . .
[NULL @ 0x5624b32d08c0] Invalid NAL unit size (0 > 524).
[NULL @ 0x5624b32d08c0] missing picture in access unit with size 528
[h264 @ 0x5624b2f62540] Invalid NAL unit size (0 > 631).
[h264 @ 0x5624b2f62540] Error splitting the input into NAL units.
[h264 @ 0x5624b2f300c0] Invalid NAL unit size (0 > 524).
[h264 @ 0x5624b2f300c0] Error splitting the input into NAL units.
[NULL @ 0x5624b32d08c0] Invalid NAL unit size (0 > 5533).
[NULL @ 0x5624b32d08c0] missing picture in access unit with size 5537
[h264 @ 0x5624b34c3580] Invalid NAL unit size (0 > 5533).
[h264 @ 0x5624b34c3580] Error splitting the input into NAL units.
Screenshots
No response
Additional context
For the same videos that cause this error, I have had problems with visaid_builder
also. At first, they caused crashes, until I started handling decode errors. I also started supressing extra output.
However, I think there's an additional factor. I think the amount of output depends on the version of PyAV being used. I think that maybe using PyAV 13 instead of 12 might quell most of this output.