Opened 3 years ago
Closed 2 years ago
#9293 closed defect (invalid)
ffmpeg is unable to identify the aspect ratio of some video files
Reported by: | strangiato | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | mov aspect |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
Summary of the bug:
Hi
I use ffmpeg 2:4.4-4 on Arch Linux.
My file manager called Dolphin is unable to display the aspect ratio of some video files when its detailed view mode is used.
This issue was initially reported on KDE bug tracker, here is the link of the report:
https://bugs.kde.org/show_bug.cgi?id=438098
In the comment 2, KDE contributor Méven Car said that Dolphin uses ffmpeg to extract details of video files, that for some reason is unable to identify the aspect ratio of the test files attached in the bug report.
How to reproduce:
- download any video file attached to this report
- run ffmpeg -i <any_video_file_downloaded_in_the_step_1>
% ffmpeg -i output: The SAR (sample aspect ratior) is missing for video stream. video stream of 701D2C8E-A096-4BC7-9D97-2DA9C0321DB5.MOV fie: Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 4730 kb/s, 29.99 fps, 29.97 tbr, 600 tbn, 1200 tbc (default) video stream of 2021-02-18\ 03-36-58.mkv file: Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 2560x1080, 60 fps, 60 tbr, 1k tbn, 120 tbc (default) ffmpeg version 4.4 built on Arch Linux
Attachments (2)
Change History (5)
by , 3 years ago
Attachment: | 701D2C8E-A096-4BC7-9D97-2DA9C0321DB5.MOV added |
---|
by , 3 years ago
Attachment: | 2021-02-18 03-36-58.mkv added |
---|
comment:1 by , 3 years ago
Description: | modified (diff) |
---|
comment:2 by , 3 years ago
comment:3 by , 2 years ago
Keywords: | mov aspect added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
The mov file does not contain a pasp atom (that would contain an aspect ratio) and the display matrix in the tkhd atom is the identity matrix. The remaining question is if the identify matrix in the QuickTime tkhd atom indicates no aspect ratio or an aspect ratio of 1:1.
Compare with the output for a video just created with ffmpeg:
This video does not contain any aspect ratio information. Therefore, ffmpeg does not print it.
The same probably applies to the MOV file, but I do not know the tools to examine it.