Skip to content

Add audio and image format fields to metadata#1240

Open
bmatherly wants to merge 1 commit intomasterfrom
metadata_formats
Open

Add audio and image format fields to metadata#1240
bmatherly wants to merge 1 commit intomasterfrom
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.

@@ -0,0 +1,2180 @@
# FFmpeg filter supported MLT formats
# Filters without known formats are placeholders encoded as "" (not empty maps).
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.

Maybe this file could be combined with blacklist.txt, resolution_scale.yml, and yuv_only.txt. I am willing to merge those in a separate PR if we are interested in that.

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.

1 participant