Update ffmpeg for ogg duration fix

Fixes issue 418.
Move multithreading out of the template function to reduce binary size.
RGB conversion coefficients are constant.