[FFmpeg-devel] [PATCH] Populate field order returned by avs script, Trac Ticket 8757

emcodem at ffastrans.com emcodem at ffastrans.com
Sun Jan 17 02:26:08 EET 2021


The purpose of this is to tell ffmpeg which field order the returned 
clip of the avisynth .avs script decided to finally deliver, which is 
handy in an automated environment.
Interlacing is generally a very hard topic in avisynth, the huge comment 
is neccessary to explain my reasons.
Additionally to the comment in the patch, i can tell that i set unknown 
instead of progressive for backward compatibility. (i was struggeling 
with this, maybe i should have even left it unset in case it is not 
clearly tff or bff interlaced.

    /*  Set interlacing type. 
http://avisynth.nl/index.php/Interlaced_fieldbased
     *   The following typically only works when assumetff (-bff) and 
assumefieldbased is used in the avs.
     *   This is because most avisynth source plugins do not set the 
parity info in the clip properties.
     *   We could use GetParity() to be more accurate but it decodes a 
frame which is
     *   expensive and can potentially lead to unforeseen behaviour when 
seeking later.
     *   In case Parity is not known, we still cannot guarantee that
     */

Tests with different avisynth source plugins, e.g. directshowsource, 
ffms2, mpeg2source delivered the expected result.
Make FATE passed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Populate-field-order-returned-by-avs-script-Trac-Tic.patch
Type: text/x-diff
Size: 1864 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210117/c1cb12b5/attachment.patch>


More information about the ffmpeg-devel mailing list