[FFmpeg-user] setdar ratio - syntax

Moritz Barsnick barsnick at gmx.net
Sun Nov 25 14:32:32 EET 2018


On Sun, Nov 25, 2018 at 11:28:32 +0000, Ben Barker wrote:
> However, "setdar=x:y" will not work, though it used to. Doesn't matter -
> it's working now!

>From a quick glance, this commit changed that behavior:

https://github.com/FFmpeg/FFmpeg/commit/88fd836a015a5f3380df74592e440e7d1e5b8000

(included from ffmpeg 4.0 onwards).

The (allowed) syntax indeed used to be
$ ffmpeg [...] -vf setdar=dar_num=4:dar_den=3 [...]
which would have corresponded to
                   setdar=4:3

(two separate parameters, coincidentally separated by a colon).

But the latter syntax should have given a warning since ffmpeg 2.0.

Moritz


More information about the ffmpeg-user mailing list