Opened 18 months ago
Closed 18 months ago
#9988 closed defect (invalid)
Resolution metadata for JPEG with orientation
Reported by: | Jozef Chutka | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | mjpeg |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
In the current version (N-108614-g37ee36f689-20221011) of FFmpeg and FFprobe when a JPEG with orientation side data is in use, the reported resolution does not respect the applied orientation.
ffprobe -i input.jpg ... Input #0, image2, from 'input.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 50360 kb/s Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1800x1200 [SAR 72:72 DAR 3:2], 25 fps, 25 tbr, 25 tbn
For example image 1800x1200 with orientation 90, should report resolution 1200x1800.
Following are the main reasons:
- when such media is being loaded and encoded the output has the correct resolution
ffmpeg -i input.jpg -y output.png
will change from reported 1800x1200 to 1200x1800 (confusing).
Input #0, image2, from 'input.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 50360 kb/s Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1800x1200 [SAR 72:72 DAR 3:2], 25 fps, 25 tbr, 25 tbn ... Output #0, image2, to 'output.png': Metadata: encoder : Lavf59.34.101 Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 1200x1800 [SAR 1:1 DAR 2:3], q=2-31, 200 kb/s, 2
- Any software (photoshop, chrome, ...) that opens JPEG with orientation will report resolution following the orientation metadata.
- The resolution information without orientation respected has no real life use for end user I can think of.
- Correct me if I am wrong, but it seems impossible to extract orientation information using
ffmpeg
executable, the only way I managed to discover is to useffprobe -show_frames
and parse SIDE_DATA
Attachments (1)
Change History (3)
by , 18 months ago
comment:1 by , 18 months ago
Description: | modified (diff) |
---|
comment:2 by , 18 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I don't think this is a valid ticket.