You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug in PyAV or ffmpeg. But here goes...
Overview
When ffmpeg debugging is enabled, and a corrupt packet is encountered, it reports a different pts from the current PyAV packet that has .is_corrupt == True.
The ffmpeg logging indicates a corrupt packet of pts=X. However, the packet.is_corrupt is the next one.
Versions
OS: Ubuntu 22.04LTS
PyAV: v13.1.0
Ugly workaround
last_packet=av.Packet()
forpacketinin_container.demux():
iflast_packet.is_corrupt: # BUG! why is it off by one?!?log.warning(f"this corrupt: {packet}")
last_packet=packet
In the above, the pts of the ffmpeg DEBUG corrupt packet matches ours.
Activity