[FFmpeg-devel] [PATCH 2/2] avcodec/srtdec: attempt to correct SubRip positioning
u at pkh.me
Thu May 14 12:16:06 CEST 2015
On Sun, Feb 08, 2015 at 12:42:11PM +0100, Clément Bœsch wrote:
> On Sun, Feb 08, 2015 at 12:40:19PM +0100, Clément Bœsch wrote:
> > The positioning was completely wrong. First, the coordinates are
> > expressed in ASS playback resolution (which is by default 384x288).
> > Secondly, the coordinates define a drawing rectangle, not a moving area.
> > The previous code was making subtitles move from a random position to
> > another random position.
> > Here we rescale assuming the video resolution is a DVD one (720x480). We
> > can't really do anything better so far, but since these positioning are
> > often from a DVD rip we can't consider them relatively safe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 473 bytes
Desc: not available
More information about the ffmpeg-devel