访问&在Windows Phone 7应用程序中操作.mp4文件中的视频帧 [英] Accessing & Manipulating video frames from .mp4 file in Windows Phone 7 app

查看:152
本文介绍了访问&在Windows Phone 7应用程序中操作.mp4文件中的视频帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可能知道,当您在Windows Phone上录制视频时,它会保存为.mp4。我希望能够访问视频文件(即使它只存储在应用程序的独立存储中),并操作每个帧的像素值。



我找不到任何允许我将.mp4加载到应用程序中,然后访问这些框架。我希望能够将被操纵的视频保存为.mp4文件,或者能够共享。



有没有人想出一套好的步骤来做这个?
我的猜测是先将.mp4文件加载到Stream对象中。从这里我不知道我到底能做什么,但是我想把它变成一种我可以遍历帧的形式,操纵像素,然后一旦操作完成,再用音频创建一个.mp4。 / p>

解决方案

我试过一次完全一样的事情。不幸的是,没有公开的图书馆可以帮助你。你将不得不编写自己的代码来做到这一点。

有关这方面的解决方法是先阅读mp4的存储格式,帧存储在那里。然后你可以读取mp4,提取帧,修改它们,并将它们以原始格式缝合。



我最担心的是硬件可能不够强大在足够少的时间内完成这一点。


As you may know, when you record a video on a windows phone, it is saved as a .mp4. I want to be able to access the video file (even if it's only stored in isolated storage for the app), and manipulate the pixel values for each frame.

I can't find anything that allows me to load a .mp4 into an app, then access the frames. I want to be able to save the manipulated video as .mp4 file as well, or be able to share it.

Has anyone figured out a good set of steps to do this? My guess was to first load the .mp4 file into a Stream object. From here I don't know what exactly I can do, but I want to get it into a form where I can iterate through the frames, manipulate the pixels, then create a .mp4 with the audio again once the manipulation is completed.

解决方案

I tried doing the exact same thing once. Unfortunately, there are no publicly available libraries that will help you with this. You will have to write your own code to do this.

The way to go about this would be to first read up on the storage format of mp4 and figure out how the frames are stored there. You can then read the mp4, extract the frames, modify them and stitch them back in the original format.

My biggest concern is that the hardware might not be powerful enough to accomplish this in a sufficiently small amount of time.

这篇关于访问&在Windows Phone 7应用程序中操作.mp4文件中的视频帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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