从mp4视频中提取帧 [英] extracting frames form mp4 video
本文介绍了从mp4视频中提取帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我需要从mp4视频获取帧任何人都可以帮助我使用库我尝试了avifile.dll并且它将与avi视频一起工作但现在我需要从它打开mp4视频和grap帧(bmp)
谢谢
hi i need to get frames from mp4 video any one can help me with the library i tried the avifile.dll and it worked will with avi video but now i need to open mp4 video and grap frames (bmp) from it
thanks
推荐答案
我建议使用开源FFmpeg或libavcodec:http://en.wikipedia.org/wiki/Ffmpeg [ ^ ],
http://ffmpeg.org/ [ ^ ],
http://en.wikipedia.org/wiki/Libavcodec [ ^ ],
http://libav.org/ [ ^ ]。
在两个c ases,你可以获得免费的开源实用工具,可以制作几乎所有内容,包括提取视频帧或从帧图片中组装你的视频。
现在,如何使用它以编程方式在.NET应用程序中?首先,您可以使用System.Diagnostics.Process.Start
运行它来使用可用的实用程序:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx [ ^ ]。
如果这还不够好,你可以自己将库包装在.NET程序集中,或找到合适的包装器。请参阅:
http://www.ffmpeg-csharp.com/ [ ^ ],
http://sourceforge.net/projects/sharpffmpeg/ [ ^ ],
http://vbffmpegwrapper.codeplex.com/ [ ^ ]。
毕竟,尝试找一些: http://bit.ly/1uJfv0S [ ^ ]。
如果你想工作在你自己的包装但不知道如何,问一个问题,我会给你基本的想法(使用P / Invoke或C ++ / CLI混合模式项目)。
祝你好运,
-SA
I would recommend using open-source FFmpeg or libavcodec: http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].
In both cases, you can get free open-source utilities which can make nearly everything, including extracting video frames or assembling your video from frame pictures.
Now, how to use it programmatically in a .NET application? First, you can use the available utility by running it usingSystem.Diagnostics.Process.Start
:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx[^].
If this is not good enough, you can wrap the library in a .NET assembly by yourself or find appropriate wrapper. Please see:
http://www.ffmpeg-csharp.com/[^],
http://sourceforge.net/projects/sharpffmpeg/[^],
http://vbffmpegwrapper.codeplex.com/[^].
After all, try to find some more: http://bit.ly/1uJfv0S[^].
If you wish to work at such wrapper by yourself but don't know how, ask a question, I'll give you the basic ideas (using P/Invoke or C++/CLI "mixed-mode" project).
Good luck,
—SA
这篇关于从mp4视频中提取帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文