First time here? Check out the FAQ!
answered 2017-08-23 08:04:43 -0600
I have noticed the same and it seems to be an issue with FFmpeg 3.3 in macports. Activating ffmpeg @3.2.4_4+gpl2 solves the issue for me (both for my code and for your test program).