Everything works again, except for when I use the theora video codec.
Something goes wrong with the ffmpeg command. Apparently it's the switch
order, but I'm not completely sure yet.