Currently PyAV 9.2.0 supports only till 3.10. The latest pyav 11 does support till python 12, however upon trying the latest package, I seem to notice a memory leak when looping the video, so we'll have to set to 9.2.0.
I would suggest anyone coming across this problem to stick to 3.10 or lower for some more time.
#46