[FFmpeg-trac] #6998(ffmpeg:new): [Feature Request] add IYU2 and Y410 to DShow/FFMPEG

FFmpeg trac at avcodec.org
Wed Jan 31 18:52:22 EET 2018


#6998: [Feature Request] add IYU2 and Y410 to DShow/FFMPEG
-------------------------------------+-------------------------------------
             Reporter:  XxJonathXx   |                     Type:
               Status:  new          |  enhancement
            Component:  ffmpeg       |                 Priority:  normal
             Keywords:  ffmpeg       |                  Version:
  dshow pixel_format yuv444p         |  unspecified
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 Hello,

 I have a Magewell Pro Capture HDMI 4K Plus and it supports IYU2 (yuv 444
 8-bit) and Y410 (yuv 444 10-bit), however, neither DShow nor FFMPEG does
 support them.

 IYU2 = 0x32555949
 Y410 = 0x30313459

 I did try adding them on my own (in dshow.c I added the case for each and
 made IYU2 recognize as yuv444p and Y410 as yuv444p10le. Within the raw.c I
 have  added the corresponding tags)

 dshow.c
 {{{
         case 0x32555949:
                 return AV_PIX_FMT_YUV444P;
         case 0x30313459:
                 return AV_PIX_FMT_YUV444P10BE;
 }}}
 raw.c
 {{{
     { AV_PIX_FMT_YUV444P,     MKTAG('I', 'Y', 'U', '2') },
     { AV_PIX_FMT_YUV444P10LE, MKTAG('Y', '4', '1', '0') },
 }}}

 For IYU2 it actually worked. DShow recognized it as a pixel format for my
 capture card, and I was able to select it for recording. However, the
 recorded image is distorted (wrong colors) and it looks as if it is zoomed
 in. I assume that I either did something wrong, as in applying the wrong
 formats, or something else has to be added for it to work.
 Unfortunately I am not knowledgable enough to do it on my own.

 About Y410: While it was shown as a pixel format for my capture card via
 DShow, I was also able to select it, however, I did get the following
 error message:
 {{{[rawvideo @ 000002b1a22c2680] Invalid buffer size, packet size 14745600
 < expected frame_size 22118400
 Error while decoding stream #0:0: Invalid argument}}}

 Thanks in advance.

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


More information about the FFmpeg-trac mailing list