Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

手机拍摄的视频带有旋转信息,视频播放时没做兼容 #326

Closed
GuoJun-Zhang-0115 opened this issue Nov 19, 2024 · 3 comments

Comments

@GuoJun-Zhang-0115
Copy link

mp4box简析的的信息中, 视频轨道中 matrix 字段记录了旋转信息, 在播放时的时候没处理。

看了这篇文章 对此有相关记录

@GuoJun-Zhang-0115
Copy link
Author

output.mov

用于测试的视频素材

@hughfenghen hughfenghen changed the title 手机拍摄的视频带有旋转信息,视频播放时没做兼容(无意中发现,研究了一下) 手机拍摄的视频带有旋转信息,视频播放时没做兼容 Nov 19, 2024
@hughfenghen
Copy link
Member

hughfenghen commented Nov 19, 2024

修改 Sprite rotate 属性可以旋转素材,修正旋转效果。

如果要自动修改,需要解析 matrix 信息,目前没有暴露这个数据,可以参考 #235

@GuoJun-Zhang-0115
Copy link
Author

明白了,感谢😄

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

No branches or pull requests

2 participants