[FFmpeg-devel] [PATCH 2/2] avcodec/srtdec: attempt to correct SubRip positioning

Clément Bœsch u at pkh.me
Sun Feb 8 12:42:11 CET 2015

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.



Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150208/70e332b3/attachment.asc>

More information about the ffmpeg-devel mailing list