Opened 2 months ago
Last modified 4 weeks ago
#11170 reopened enhancement
Support merging HEIC tile grids in ffmpeg
Reported by: | markshw2222 | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | ffmpeg |
Version: | git-master | Keywords: | |
Cc: | markshw2222 | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
How to reproduce:
ffmpeg -i input.heic output.png
Attachments (1)
Change History (4)
by , 2 months ago
Attachment: | IMG_4765.HEIC added |
---|
comment:1 by , 7 weeks ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 7 weeks ago
Component: | undetermined → ffmpeg |
---|---|
Priority: | normal → wish |
Resolution: | invalid |
Status: | closed → reopened |
Summary: | transcoding of HEIC images results in black/white image → Support merging HEIC tile grids in ffmpeg |
Type: | defect → enhancement |
Version: | unspecified → git-master |
Upon further inspection, the gray stream should not be selected by default by the CLI as it's the HDR gainmap.
Changing this to a feature request to merge and output the main image, and tag the HDR gainmap as such.
comment:3 by , 4 weeks ago
One way is
Get grid info
ffprobe -loglevel trace input.heic 2>&1 | grep grid_row
Extract grid images
ffmpeg -i input.heic -map 0 output_%d.png
Then
Merge
ffmpeg -i pngs/output_%d.png -vf "tile=8x6" final_output.png
Note:
See TracTickets
for help on using tickets.
See the "Stream #0:49". By default, ffmpeg chooses the gray 2016x1512 hevc stream if you don't set manual maps.