[FFmpeg-trac] #9497(undetermined:new): ffmpeg reports wrong display aspect ratio (DAR) for matroska files.
FFmpeg
trac at avcodec.org
Fri Nov 5 12:26:14 EET 2021
#9497: ffmpeg reports wrong display aspect ratio (DAR) for matroska files.
-------------------------------------+-------------------------------------
Reporter: Rikitiki | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
ffmpeg reports wrong display aspect ratio (DAR) for matroska files.
If DAR is 160:67 then ffprobe displays:
{{{
"sample_aspect_ratio": "90:67",
"display_aspect_ratio": "160:67",
}}}
and mkvinfo displays:
{{{
| + Display width: 160
| + Display height: 67
}}}
If DAR is 161:67 then ffprobe displays:
{{{
"sample_aspect_ratio": "123:91",
"display_aspect_ratio": "656:273",
}}}
and mkvinfo displays:
{{{
| + Display width: 161
| + Display height: 67
}}}
A matroska file is created by mkvmerge from raw h264 stream. The h264
stream is created by ffmpeg from bmp files.
How to reproduce:
1. unpack attcahed file
2. replace VAR_FFMPEG_BINS & MKVMERGE_BINS to right location of the tools
3. execute run.cmd to obtain output
Pay attention to CASE_1 & CASE_2 texts to change input DAR
ffmpeg version: ffmpeg-4.4.1-full_build
mkvmerge version: mkvtoolnix-64-bit-62.0.0
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9497>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list