[FFmpeg-trac] #10418(avdevice:new): DirectShow, wrong pixel format

FFmpeg trac at avcodec.org
Tue Jun 20 23:42:21 EEST 2023


#10418: DirectShow, wrong pixel format
--------------------------------------+------------------------------------
             Reporter:  Michael Koch  |                    Owner:  (none)
                 Type:  defect        |                   Status:  new
             Priority:  normal        |                Component:  avdevice
              Version:  git-master    |               Resolution:
             Keywords:  dshow         |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+------------------------------------
Comment (by Michael Koch):

 A simple bugfix could be in line 70 of dshow.c to replace AV_PIX_FMT_RGB8
 by AV_PIX_FMT_GRAY8. I know that it's a hack and the correct way is to use
 AV_PIX_FMT_PAL8 and read the palette.
 But for this camera the hack should work because the palette does anyway
 contain only 256 shades of gray. Because nobody noticed this issue
 earlier, that probably means that there exist no color cameras that use
 the RGB8 pixel format with a non-grayscale palette.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10418#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list