简体   繁体   English

如何录制 Tango 彩色摄像机视频流

[英]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.

相关问题 激活探戈彩色相机的自动对焦 - Activate autofocus for tango color camera Android MedicCodec:如何从摄像机录制视频文件并将视频流传输到网络? - Android MedicCodec: How to record a video file from camera and stream the video to the web? 录制来自Project Tango的RAW视频 - Record RAW video from Project Tango 如何将Android上的视频录制到Stream中 - How to record video on Android into Stream 如何通过摄像头录制视频,并在视频上录制 SystemTimeStamp - How to Record the Video through Camera, And Record the SystemTimeStamp over the Video 如何使用TextureView上的相机预览录制视频 - How to record the video using camera preview on TextureView 如何从前置摄像头录制视频? - How to record video from Front Facing Camera? 如何使用SurfaceView在前置摄像头中录制视频 - How to record video in front camera using surfaceview 如何在TextureView Camera流预览上绘制对象并使用对象记录流? - How to draw objects on TextureView Camera stream preview and record the stream with objects? 在使用Camera 2 Android录制视频期间,如何在单击按钮时使相机重新聚焦? - How to refocus the camera on button click during record of video with Camera 2 Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM