ffmpeg: init filtergraphs only after we have a frame on each input