Skip to content

Add audio and image format fields to metadata#1240

Merged
ddennedy merged 2 commits into
masterfrom
metadata_formats
May 14, 2026
Merged

Add audio and image format fields to metadata#1240
ddennedy merged 2 commits into
masterfrom
metadata_formats

Conversation

@bmatherly
Copy link
Copy Markdown
Member

Add image_formats and audio_formats to the filter metadata so that applications can look up what formats are supported by the service. This can be used in Shotcut to map image formats to keywords rgba, yuv, and 10bit.

@@ -0,0 +1,2180 @@
# FFmpeg filter supported MLT formats
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though FFMpeg has a rich framework for a filter to describe the formats it supports, the public API does not provide a way for the application to query those formats. They are only used internally for negotiating the connections in a filtergraph.

I used AI to help me write a script to inspect the FFMpeg source code and extract these format lists. I suppose we will maintain it manually over time. Or maybe we should keep the script around so we can re-run it from time to time.

This is the one thing that gives me pause about this whole PR. Maybe it is not worth the long-term maintenance.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the script to src/modules/avformat

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread src/modules/avformat/filter_info.yml
@ddennedy ddennedy merged commit a6d8c8d into master May 14, 2026
25 checks passed
@ddennedy ddennedy deleted the metadata_formats branch May 14, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants