This reverts commit 939a712449718b8fa805e31ae781f80e3f014ef7. this update broke compatibility with ffmpeg 4 and 6