Skip to content

Conversation

@davidplowman
Copy link
Contributor

The profile can now be set as well as queried, so that applications can now encode using different profiles. I've also added a profiles property so that applications have a reasonable way to see what profiles exist, and to choose the correct profile name.

There's also a small new encoder test which checks we can set the codec profile and see it change.

There's one point to note with this change:

As far as I can tell, the list of available profiles has moved from the AVCodec object to the AVCodecDescriptor. I haven't been able to find anything written about this, but it seems to me that, in recent versions of FFmpeg, the AVCodec profiles are often empty, and the use of this field may be deprecated.

Again, as far as I can tell, fetching them from the AVCodecDescriptor seems to work in all cases, so that's how I've written the code. Hope that makes sense. If anyone else knows any more about this, I'd love to find out!

The profile property of a stream can now be set.

To help applications find appropriate profiles, a profiles property
has been added which lists the available profile names.

A test has been added to check that we can set and retrieve profiles
properly.
@WyattBlue WyattBlue merged commit 850f115 into PyAV-Org:main Nov 12, 2024
8 checks passed
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