[MPlayer-dev-eng] [PATCH] update dwScale/dwRate when fps changes

Rich Felker dalias at aerifal.cx
Wed Apr 20 20:13:29 CEST 2005


On Wed, Apr 20, 2005 at 08:00:34PM +0200, Nico Sabbi wrote:
> 
> This patch updates the values of mux_v->dwScale and mux_v->dwRate when 
> fps changes
> (e.g. telecined mpeg2) and updates the muxer_stream's timer accordingly.
> When saving mpeg files, this patch permits to auto-sync variable fps 
> content as well as
> constant fps (that is unaffected), but I'm not sure how these updates 
> affect other muxers,
> so comment please.

There's no way to support variable/mixed fps without tracking pts all
the way from the demuxer/framer (the latter of which does not exist in
G1) to the encoder/muxer. IMO this is a very ugly hack specific to
mpeg and -ovc copy..

Rich




More information about the MPlayer-dev-eng mailing list