[FFmpeg-trac] #10418(avdevice:new): DirectShow, wrong pixel format
FFmpeg
trac at avcodec.org
Mon Jun 19 09:34:55 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: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+------------------------------------
Comment (by Michael Koch):
I suspect the problem is in line 70 of dshow.c, but I can't make a test
because I can't compile FFmpeg under Windows.
"RGB8" is in the Directshow documentation defined as "RGB, 8 bpp,
palettized".
"AV_PIX_FMT_RGB8" in FFmpeg is defined in line 86 of pixfmt.h as "packed
RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)".
These are two different pixel formats.
Shouldn't line 70 in dshow.c be changed to AV_PIX_FMT_PAL8, and the
palette must be loaded from the DirectShow driver?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10418#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list