#4983(undetermined:new): Grayscale PNG to grayscale rawvideo gives strange result
#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
#4983: Grayscale PNG to grayscale rawvideo gives strange result -------------------------------------+------------------------------------- Reporter: kagami | Owner: Type: defect | Status: closed Priority: normal | Component: Version: git-master | undetermined Keywords: | Resolution: invalid Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by kagami): * status: new => closed * resolution: => invalid Comment: Oh, sorry, it's actually correct. -- Ticket URL: <https://trac.ffmpeg.org/ticket/4983#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg