-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
您好,我如何获取,视频帧实际渲染的宽高是多少? #206
Comments
或者说,我能在onFrame修改帧的像素内容重新丢进去渲染吗 |
mediainfo里有宽高,宽高发送改变有 onFrame回调的参数是用户可修改的视频帧。不过对于硬件解码我没提供接口访问gpu资源,你得用软解或VideoFrame.to()转为可访问的资源。 |
原视频尺寸19201080 QQuickItem 大小是 1100700,我想获取你实际绘制内容的宽高是多少,不知道你是如何控制缩放的 |
默认是按 视频宽高比 * MediaInfo.video[].codec.par 缩放到setVideoSurfaceSize设置的大小的。你也可以用其他缩放模式 setAspectRatio |
好嘞,我试试 |
是不是因为像素对齐导致的误差,我看网上说h.264是16像素对齐 |
没关系 |
我关了,这个不是issue,应该开discuss |
save只用宽高没用par,所以可能不一样。par信息我可能每写进图片里。 你可以在讨论里开个话题。开issue和讨论注意模板,比如提供日志,否则会浪费很多时间 |
No description provided.
The text was updated successfully, but these errors were encountered: