Android的视频帧处理 [英] Android video frame processing

查看:588
本文介绍了Android的视频帧处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的应用程序,它确实在镜头帧某些实时图像处理。对于这一点,我使用的previewFrame preVIEW回调的方法
这很好地满足支持至少具有640×480或更高分辨率的preVIEW帧的摄像机。但是,当摄像头不支持这么大的相机preVIEW分辨率,应用程序编程拒绝处理这些帧。现在,我的问题是手机,如索尼Xperia 进入。这是一个非常好的设备,可以录制视频,最高分辨率1280×720,但遗憾的是相机的最高preVIEW规模小480x320,这是太小了,我的需要。

I am working on application that does some real time image processing on camera frames. For that, I use preview callback's method onPreviewFrame.
This works fine for cameras that support preview frames that have resolution at least 640x480 or larger. But when camera does not support such large camera preview resolution, application is programmed to refuse processing such frames. Now, the problem I have is with phones like Sony Xperia Go. It is a very nice device that can record video up to resolution 1280x720, but unfortunately maximum camera preview size is 480x320, which is too small for my needs.

我想知道的是如何获得这些较大的摄像头帧(可达1280×720或以上)?显然,它具有由于相机应用程序必须在该分辨率记录视频的能力是可能的 - 因此本申请在某种程度上必须能够访问这些较大的帧。如何从我的应用程序做?

What I would like to know is how to obtain these larger camera frames (up to 1280x720 or more)? Obviously it has to be possible because camera application has the ability to record videos in that resolution - therefore this application somehow must be able to access those larger frames. How to do the same from my application?

应用已经支持Android 2.1及更高版本,但我会很高兴,即使我找到我的问题的解决方案仅适用于Android 4.0或更高版本。

Application has to support Android 2.1 and later, but I would be very happy even if I find the solution for my problem only for Android 4.0 or newer.

这个问题是相似<$c$c>http://stackoverflow.com/questions/8839109/processing-android-video-frame-by-frame-while-recording,但我并不需要保存的视频 - 我只需要那些高分辨率视频帧...

This question is similar to http://stackoverflow.com/questions/8839109/processing-android-video-frame-by-frame-while-recording, but I don't need to save the video - I only need those high resolution video frames...

非常感谢你提前!

推荐答案

看来你能做的唯一一件事是从MediaRe codeR数据进行解码帧。 您可以使用的ffmpeg从LocalSocket去code recoreder数据。

It seems the only thing you can do is decoding frames from MediaRecoder data. You may use ffmpeg to decode recoreder data from LocalSocket.

希望下面的开源项目可以帮助:

Hope the following open source projects may help:

IPCAMERA换机器人:<一href="https://$c$c.google.com/p/ipcamera-for-android/">https://$c$c.google.com/p/ipcamera-for-android/

ipcamera-for-android: https://code.google.com/p/ipcamera-for-android/

spydroid-IPCAMERA:<一href="https://$c$c.google.com/p/spydroid-ipcamera/">https://$c$c.google.com/p/spydroid-ipcamera/

spydroid-ipcamera: https://code.google.com/p/spydroid-ipcamera/

这篇关于Android的视频帧处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆