[英]How to record Tango color camera video stream
I have been able to display the video from Tango color camera on a TextureView using TangoTextureCameraPreview.我已经能够使用 TangoTextureCameraPreview 在 TextureView 上显示来自 Tango 彩色相机的视频。 Now, I would like to record the video steam into .mp4 files.
现在,我想将视频流录制成 .mp4 文件。 It is relatively easy with MediaRecorder and Camera2, but I am not sure how to do it with Tango.
使用 MediaRecorder 和 Camera2 相对容易,但我不确定如何使用 Tango。 Is there a way to create a PersistentInputSurface from Tango that is accepted by MediaRecorder?
有没有办法从 MediaRecorder 接受的 Tango 创建 PersistentInputSurface? If not, is the GLSurfaceView from TangoCameraPreview and MediaCodec the right direction to look into?
如果不是,来自 TangoCameraPreview 和 MediaCodec 的 GLSurfaceView 是正确的研究方向吗?
Thanks!谢谢!
It depends if you want to use depth data or not.这取决于您是否要使用深度数据。 If not, Tango camera can act as a standard Android camera.
如果没有,Tango 相机可以充当标准的 Android 相机。 If you don't want to write the code from scratch, you can check Media for Mobile API here: https://github.com/INDExOS/media-for-mobile It will work for Tango the same way it works for any other Android device.
如果您不想从头开始编写代码,您可以在此处检查 Media for Mobile API: https : //github.com/INDExOS/media-for-mobile它适用于 Tango 的方式与适用于任何其他产品的方式相同安卓设备。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.