-
Notifications
You must be signed in to change notification settings - Fork 477
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
预览尺寸问题 #472
Comments
这个是是否全屏显示,与我的提问无关。 |
嗯, 内置提供的只是一个简单的demo, 你可以自己写一下相关的逻辑 |
目前使用了裁剪的办法实现了不同宽高比,但是视频如何裁剪,大佬有暴漏ffmpeg的命令接口么? |
引入了另一个ffmpeg库,裁剪实现了。 |
如果不更改相机的预览(即setpreviewsize),只更改surfaceview的尺寸,会导致拍摄与预览画面不一致。因为预览显示的是放大/缩小后的画面。
根据其他相机经验:如果相机预览比例与拍摄比例一致,则可以保证预览与拍摄画面一致。
通过cameraInstance获取params确实可以设置预览的尺寸,但画面会变形拉伸,猜测与mFrameRecorder.render实现有关,如何实现预览尺寸更改仍能保证画面不变形呢?求指教
The text was updated successfully, but these errors were encountered: