Add audio and image format fields to metadata#1240
Conversation
| @@ -0,0 +1,2180 @@ | |||
| # FFmpeg filter supported MLT formats | |||
There was a problem hiding this comment.
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). | |||
There was a problem hiding this comment.
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.
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.