ffmpeg: factor common code from new_a/v/s/d_stream to new_output_stream()