Opened 3 weeks ago

Last modified 3 weeks ago

#7518 new defect

Using -pix_fmt gray16 creates incorrect AVI

Reported by: v0lt Owned by:
Priority: normal Component: avformat
Version: unspecified Keywords: avi
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I create AVI with the following command.

ffmpeg -i "input.avi" -pix_fmt gray16 -c:v rawvideo output.avi

I get a warning:

[avi @ 0000000002bef880] gray16le rawvideo cannot be written to avi, output file will be unreadable

The file has fourcc 0x00000000 and is recognized by video players as RGB555.

I think it is more correct to record fourcc 'Y16 ' (0x20363159).
https://www.fourcc.org/pixel-format/yuv-y16/
https://www.fourcc.org/y16/

Change History (2)

comment:1 Changed 3 weeks ago by cehoyos

  • Keywords avi added

Please provide a file containing gray16 that plays with Windows Media Player - the relevant application for avi. We prefer not to invent new mappings for avi, use nut instead.

comment:2 Changed 3 weeks ago by cehoyos

Or ask Thermoteknix for a sample.

Note: See TracTickets for help on using tickets.