[FFmpeg-trac] #7518(avformat:new): Using -pix_fmt gray16 creates incorrect AVI

FFmpeg trac at avcodec.org
Thu Oct 25 17:41:44 EEST 2018


#7518: Using -pix_fmt gray16 creates incorrect AVI
----------------------------------+---------------------------------------
             Reporter:  v0lt      |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  unspecified
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 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/

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7518>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list