[FFmpeg-devel] [PATCH 00/35] avdevice (mostly dshow) enhancements

Diederick Niehorster dcnieho at gmail.com
Tue Jun 8 02:03:39 EEST 2021


This patch series implements a series of features, mostly enhancing the
dshow avdevice, but also adding new functionality to avformat and
avutil. This whole patchset enabled users of the FFmpeg API to fully
query and control a dshow device, making FFmpeg a nice backend for any
program that needs access to, e.g., a webcam.

[PATCH 29/35] avdevice/dshow: implement capabilities API
and
[PATCH 32/35] examples: adding device_get_capabilities example
have incorporated all of Andreas Rheinhardt's review comments.

Querying the capabilities of a dshow device is now also possible on a
device that is already opened. I expect/guess however that it may not be
possible to achieve that for all of the avdevices, so in principle it is
important that this patchset adds the ability to create an allocated but
unopened AVFormatContext+AVInputFormat with the new function
avformat_alloc_input_context().

Diederick Niehorster (35):
  avdevice/dshow: implement option to use device video timestamps
  avdevice/dshow: add use_video_device_timestamps to docs
  avdevice/dshow: query graph and sample time only once
  avdevice/dshow: handle unknown sample time
  avdevice/dshow: set no-seek flags
  avdevice/dshow: implement get_device_list
  avdevice/dshow: list_devices: show media type(s) per device
  avdevice: add info about media types(s) to AVDeviceInfo
  avdevice/dshow: add media type info to get_device_list
  fftools: provide media type info for devices
  avformat: add control_message function to AVInputFormat
  avdevice/dshow: implement control_message interface
  avdevice: adding control message requesting to show config dialog
  avdevice/dshow: accept show config dialog control message
  avdevice/dshow: tv_tuner_audio_dialog cleanup missing
  avdevice/dshow: add config dialog command for crossbar and tv tuner
  avdevice/dshow: discover source color range/space/etc
  avdevice/dshow: select format with extended color info
  avdevice/avdevice: Revert "Deprecate AVDevice Capabilities API"
  avdevice/avdevice: clean up avdevice_capabilities_create
  avdevice: capabilities API details no longer public
  avformat: avdevice capabilities API details no longer public
  avformat: cosmetics
  avutil/opt: AVOptionRange gains is_set field.
  avutil/opt: add av_opt_to_string
  avdevice: Add internal helpers for querying device capabilities
  avdevice/dshow: move audio format helpers
  avdevice/dshow: when closing, set context fields back to zero
  avdevice/dshow: implement capabilities API
  avdevice/dshow: cosmetics
  avformat: add avformat_alloc_input_context()
  examples: adding device_get_capabilities example
  Makefile/examples: cosmetics
  avdevice/dshow: prevent NULL access
  avdevice/dshow: capabilities query also works on opened device

 configure                              |    2 +
 doc/examples/.gitignore                |    1 +
 doc/examples/Makefile                  |   47 +-
 doc/examples/Makefile.example          |    1 +
 doc/examples/device_get_capabilities.c |  192 ++++
 doc/indevs.texi                        |    6 +
 fftools/cmdutils.c                     |   41 +-
 libavdevice/avdevice.c                 |   94 +-
 libavdevice/avdevice.h                 |   59 +-
 libavdevice/dshow.c                    | 1372 +++++++++++++++++++++---
 libavdevice/dshow_capture.h            |   12 +
 libavdevice/dshow_crossbar.c           |   95 +-
 libavdevice/dshow_pin.c                |   46 +-
 libavdevice/internal.h                 |   64 ++
 libavdevice/utils.c                    |   48 +
 libavdevice/version.h                  |    4 +-
 libavformat/avformat.h                 |   57 +-
 libavformat/utils.c                    |   66 +-
 libavformat/version.h                  |    4 +-
 libavutil/opt.c                        |   94 +-
 libavutil/opt.h                        |   17 +-
 libavutil/version.h                    |    2 +-
 22 files changed, 2021 insertions(+), 303 deletions(-)
 create mode 100644 doc/examples/device_get_capabilities.c

-- 
2.28.0.windows.1



More information about the ffmpeg-devel mailing list