Added ffprobe wrapper.
Moved stream processing out of main.