[FFmpeg-trac] #4983(undetermined:new): Grayscale PNG to grayscale rawvideo gives strange result
FFmpeg
trac at avcodec.org
Mon Nov 2 21:19:43 CET 2015
#4983: Grayscale PNG to grayscale rawvideo gives strange result
-------------------------------------+-------------------------------------
Reporter: kagami | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
I have simple 16x16 grayscale PNG image with checkboard pattern. Pixel
values go like this: {{{0x00 0xff ..}}}
I convert it to rawvideo grayscale with: {{{ffmpeg -i in.png -f rawvideo
-pix_fmt gray out.y}}} and it gives me following result:
{{{
$ xxd out.y
00000000: ff00 ff00 ff00 ff00 ff00 ff00 ff00 ff00 ................
00000010: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff ................
00000020: ff00 ff00 ff00 ff00 ff00 ff00 ff00 ff00 ................
00000030: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff ................
00000040: ff00 ff00 ff00 ff00 ff00 ff00 ff00 ff00 ................
00000050: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff ................
00000060: ff00 ff00 ff00 ff00 ff00 ff00 ff00 ff00 ................
00000070: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff ................
00000080: ff00 ff00 ff00 ff00 ff00 ff00 ff00 ff00 ................
00000090: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff ................
000000a0: ff00 ff00 ff00 ff00 ff00 ff00 ff00 ff00 ................
000000b0: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff ................
000000c0: ff00 ff00 ff00 ff00 ff00 ff00 ff00 ff00 ................
000000d0: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff ................
000000e0: ff00 ff00 ff00 ff00 ff00 ff00 ff00 ff00 ................
000000f0: 00ff 00ff 00ff 00ff 00ff 00ff 00ff 00ff ................
}}}
For some reason I get {{{0xff 0x00 ..}}} pattern in the output.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4983>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list