Opened 4 years ago

Closed 4 years ago

#4983 closed defect (invalid)

Grayscale PNG to grayscale rawvideo gives strange result

Reported by: kagami Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Attachments (1)

16x16.png (77 bytes) - added by kagami 4 years ago.

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by kagami

comment:1 Changed 4 years ago by kagami

  • Resolution set to invalid
  • Status changed from new to closed

Oh, sorry, it's actually correct.

Note: See TracTickets for help on using tickets.