input_mpv refactored and tuned