[FFmpeg-devel] [PATCH 1/1] [RFC] ffprobe: report DAR even if SAR is undefined

Tobias Rapp t.rapp at noa-archive.com
Tue Apr 17 09:52:57 EEST 2018

On 17.04.2018 07:32, Timo Teras wrote:
> [...]
> Do note that calculating the reduced DAR requires some mathematics
> which may not be simple to do from e.g. shell or simple scripting
> languages. This is the primary reason why I was hoping ffprobe to do
> this for me.
> Would it be acceptable to print the reduced "raw" height:width ratio as
> surface_aspect_ratio (or with some other better name)?
> The application interpreting the info can then use that instead of
> display_aspect_ratio when it's N/A.

Depending on the application use-case it might be sufficient to use a 
float DAR, i.e. when comparing to a list of values like 4:3, 16:9, etc 
(within some "epsilon" delta, of course).


More information about the ffmpeg-devel mailing list