用于将 Motion Jpeg 文件转换为 Jpeg 静态图像的 .Net 库?
我有几台松下相机用于拍摄视频,它们生成 Motion JPEG(包装为 .mov)。我想编写一个简单的工具(用 C# 语言)将 .mov 文件转换为一组 JPG 剧照。
找不到太多帮助,因为大多数人想要阅读流或采取其他方式(从静止图像到视频)。
我应该用什么?我发现至少有几个不同的库可能有用。 (DirectShow,OpenCV)但我很感激任何关于如何完成这项任务的建议......
I have a couple of Panasonic cameras that I use for shooting video, and they produce Motion JPEG (wrapped as .mov). I want to write a simple tool (in C#) to convert the .mov files to a set of JPG stills.
Can't find much help becasue most folks want to read streams or to go the other way (from stills to video).
What should I use? I have picked up that there are at least couple of different libraries that might be useful. (DirectShow, OpenCV) but I'd appreciate any and all advice on how to approach this task...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后,我只是分析了文件,制定了标题并编写了代码。如果其他人也能完成同样的任务,那很简单,只需观察关键帧,这似乎重复了我推断的“启动 JPEG”代码 3 次(至少对于我的相机而言)。
也许有用....
In the end, I just analysed the files, worked out the headers and wrote the code. If anyone else is up to the same task, it's pretty easy, just watch for the keyframes, which seem to repeat what I'd deduced is the "start JPEG" code 3 times (at least for my camera).
Maybe useful....