Fix usage of time_ratio by ffmpeg and x264 modules