[FFmpeg-devel] [PATCH 0/2] avdevice/dshow: set color information in stream
Diederick Niehorster
dcnieho at gmail.com
Wed Jun 2 09:28:55 EEST 2021
These two patches check if a DirectShow device provides color
information and sets this in the AVStream. If a device provides equivalent formats with and without color information, the format with color information is used.
I'm a first-time contributor, hope all is in order.
Example output of list_options for a device supporting extended color
information, before and after this patch series:
pixel_format=yuyv422 min s=640x480 fps=5 max s=640x480 fps=30
pixel_format=yuyv422 min s=640x480 fps=5 max s=640x480 fps=30 (tv, bt470bg/bt709/unknown, topleft)
vcodec=h264 min s=640x480 fps=5 max s=640x480 fps=30
vcodec=h264 min s=640x480 fps=5 max s=640x480 fps=30 (tv, bt470bg/bt709/unknown, topleft)
vcodec=mjpeg min s=1920x1080 fps=5 max s=1920x1080 fps=30
vcodec=mjpeg min s=1920x1080 fps=5 max s=1920x1080 fps=30 (pc, bt470bg/bt709/unknown, center)
Diederick Niehorster (2):
avdevice/dshow: discover source color range/space/etc
avdevice/dshow: select format with extended color info
libavdevice/dshow.c | 601 +++++++++++++++++++++++++++++++++++++-------
1 file changed, 514 insertions(+), 87 deletions(-)
--
2.28.0.windows.1
More information about the ffmpeg-devel
mailing list