Fix issue with empty streams.
Add test for ffmpeg processing.