#3805(undetermined:new): hash brown decoding error
#3805: hash brown decoding error -------------------------------------+------------------------------------- Reporter: dericed | Owner: Type: defect | Status: new Priority: critical | Component: Version: git- | undetermined master | Keywords: png Blocked By: | Blocking: Reproduced by developer: 0 | Analyzed by developer: 0 -------------------------------------+------------------------------------- Summary of the bug: The official digital portrait of the McDonald's hash brown decodes incorrectly in ffmpeg adding distorted orange colors. The png is here: http://www.mcdonalds.com/content/dam/McDonalds/item/mcdonalds-Hash- Brown.png. How to reproduce: {{{ ffplay http://www.mcdonalds.com/content/dam/McDonalds/item/mcdonalds-Hash- Brown.png ffplay version N-64536-gc8b2cf4 Copyright (c) 2003-2014 the FFmpeg developers built on Jul 8 2014 23:01:07 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable- libmp3lame --enable-libxvid --enable-libfreetype --enable-ffplay --enable- libopenjpeg --extra- cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' libavutil 52. 91.100 / 52. 91.100 libavcodec 55. 68.102 / 55. 68.102 libavformat 55. 45.100 / 55. 45.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 10.100 / 4. 10.100 libavresample 1. 3. 0 / 1. 3. 0 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, image2, from 'http://www.mcdonalds.com/content/dam/McDonalds/item/mcdonalds-Hash- Brown.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, rgba, 444x320 [SAR 2835:2835 DAR 111:80], 25 tbr, 25 tbn, 25 tbc 0.67 M-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#3805: hash brown decoding error -------------------------------------+------------------------------------- Reporter: dericed | Owner: Type: defect | Status: new Priority: normal | Component: Version: git-master | undetermined Keywords: png | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos): * priority: critical => normal Comment: Do you think this is a regression? -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#3805: hash brown decoding error -------------------------------------+------------------------------------- Reporter: dericed | Owner: Type: defect | Status: closed Priority: normal | Component: Version: git-master | undetermined Keywords: png | Resolution: Blocking: | worksforme Analyzed by developer: 0 | Blocked By: | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos): * status: new => closed * resolution: => worksforme Comment: {{{ffplay}}} - and {{{ffmpeg}}} without additional options - cannot (and to the best if my knowledge will not) display transparency, the following works fine: {{{ $ ffmpeg -f lavfi -i color=white:s=444x320 -i mcdonalds-Hash-Brown.png -filter_complex overlay -vframes 1 out.jpg }}} I consider the image slightly broken, I don't think transparent parts of an image should be masked out by the decoder. -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#3805: Transparent png pixels should show the background colour -------------------------------------+------------------------------------ Reporter: dericed | Owner: Type: enhancement | Status: reopened Priority: wish | Component: avcodec Version: git-master | Resolution: Keywords: png | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Changes (by cehoyos): * status: closed => reopened * type: defect => enhancement * component: undetermined => avcodec * priority: normal => wish * resolution: worksforme => -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#3805: Transparent png pixels should show the background colour -------------------------------------+------------------------------------ Reporter: dericed | Owner: Type: enhancement | Status: reopened Priority: wish | Component: avcodec Version: git-master | Resolution: Keywords: png | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Comment (by kurosu): ffmpeg doesn't parse the bKGB chunk that contains this information as indeed you can't have both transparency and a background at the same time in ffmpeg. -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#3805: Transparent png pixels should show the background colour -------------------------------------+------------------------------------ Reporter: dericed | Owner: Type: enhancement | Status: reopened Priority: wish | Component: avcodec Version: git-master | Resolution: Keywords: png | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Comment (by cehoyos): Replying to [comment:4 kurosu]:
ffmpeg doesn't parse the bKGB chunk that contains this information as indeed you can't have both transparency and a background at the same time in ffmpeg.
Yes but the sample in question does not contain a bKGB chunk and is still displayed better by many / all other programs that support displaying png. -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#3805: Transparent png pixels should show the background colour -------------------------------------+------------------------------------ Reporter: dericed | Owner: Type: enhancement | Status: reopened Priority: wish | Component: avcodec Version: git-master | Resolution: Keywords: png | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Changes (by Underground78): * cc: underground78@… (added) Comment: Seems like the same issue is reproducible with this [http://i.imgur.com/CUIxed3.png image] which looks like [http://i.imgur.com/cY9dDoo.png this] in ffmpeg. -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#3805: Transparent png pixels should show the background colour -------------------------------------+------------------------------------ Reporter: dericed | Owner: Type: enhancement | Status: reopened Priority: wish | Component: ffplay Version: git-master | Resolution: Keywords: png | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------ Changes (by richardpl): * component: avcodec => ffplay -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805#comment:7> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#3805: Transparent png pixels should show the background colour -------------------------------------+---------------------------------- Reporter: dericed | Owner: Type: enhancement | Status: closed Priority: wish | Component: ffplay Version: git-master | Resolution: fixed Keywords: png | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+---------------------------------- Changes (by richardpl): * status: reopened => closed * resolution: => fixed Comment: Can no longer reproduce with mpv/ffplay. -- Ticket URL: <https://trac.ffmpeg.org/ticket/3805#comment:8> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg