[FFmpeg-devel] [PATCH] avcodec/ass: explicitly set ScaledBorderAndShadow

Oneric oneric at oneric.de
Fri Apr 17 03:15:17 EEST 2020


Patch attached.

Currently ffmpeg does not set the 'ScaledBorderAndShadow' header for ASS 
subtitles. This currently leads to inconsistent behaviour depending on the 
renderer(see https://github.com/libass/libass/issues/287#issuecomment-338654103)

Although libass will probably change the default to match *VSFilter soon, it is 
imho still a good idea to set this explicitly. Scaling the fontsize but not the
bordersize with the viewport is inconsistent and probably confusing.
Explicitly setting this header to "yes" is also the default in Aegisub (ASS 
authoring tool) since 2007.
https://github.com/TypesettingTools/Aegisub/commit/5269a2e2a1e1dab7aaf4ddde4055c8637cd413d4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcodec-ass-explicitly-set-ScaledBorderAndShadow.patch
Type: text/x-diff
Size: 695 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200417/6140e0d8/attachment.patch>


More information about the ffmpeg-devel mailing list