-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add VideoFrame.rotation
#1675
Add VideoFrame.rotation
#1675
Conversation
49b6ddb
to
14203e1
Compare
14203e1
to
541b5e7
Compare
A more user friendly API would be #1676 but will be a breaking/behaviour change for some users. |
This API seems weird to me |
My understanding is that the rotation is now part of sidechannel data in MP4 streams. |
If I understand the FFmpeg documentation correctly, the rotation information is only part of the AVPacket side data (which PyAV doesn't expose yet) or part of the AVFrame side data. I think |
d9da4f2
to
17b0b96
Compare
Done in 17b0b96 The mypy failure in |
This adds a
VideoFrame.rotation
property which usesav_display_rotation_get
to read the rotation value fromDISPLAYMATRIX
.This exposes a wrapper aroundav_display_rotation_get
allowing users to read the rotation value from theDISPLAYMATRIX
.Not sure if this is the most usable API but at least this brings back the ability to read display rotation information.Fixes #1047
Closes #1629