Opened 4 years ago

Closed 4 years ago

#7518 closed defect (needs_more_info)

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 (3)

comment:1 by Carl Eugen Hoyos, 4 years ago

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 by Carl Eugen Hoyos, 4 years ago

Or ask Thermoteknix for a sample.

comment:3 by Carl Eugen Hoyos, 4 years ago

Resolution: needs_more_info
Status: newclosed
Note: See TracTickets for help on using tickets.