如何制作一个C#win form程序,将视频分解为帧,然后将这些帧重新组合成一个视频? [英] How do I make a C# win form program that breaks a video down to frames, then put those frames back together to make a video?

查看:175
本文介绍了如何制作一个C#win form程序,将视频分解为帧,然后将这些帧重新组合成一个视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我看起来很新,所以我正在寻找一个彻底且易于理解的答案。



如何制作一个C#win表单程序,将视频分解为帧,然后将这些帧重新组合成一个视频?

我还希望能够通过设置选择要提取的帧间隔时间。例如,提取相隔一秒的帧。

这可能,我做了一些研究,但我不明白如何使用以下网站上显示的代码。



据说是将视频细分为帧的代码。但是我不知道把它放在哪里。我是否将其作为按钮或其他内容的事件。

http://www.researchgate.net/发布/ Has_anyone_code_in_C_to_read_video_file_and_split_it_into_frames [ ^ ]



从图像制作视频的代码,它看起来很有前景,所以我试图复制并粘贴它的视觉工作室。但是使用BytescoutImageToVideoLib的行;有一个错误,问我是否错过了参考。我错过了什么参考?

http://bytescout.com/products/developer/ imagetovideosdk / imagetovideosdk_first_step_with_visual_c_sharp_net.html [ ^ ]



我还注意到代码项目上有一个类似于此的页面,但可下载的演示项目根本不起作用。我没有看到花时间在最终产品被破坏的地方的重点。

从视频文件中提取帧 [ ^ ]



非常感谢任何帮助。

解决方案

如果您无法理解所提供的代码,我们不太可能在快速答案论坛中为您提供帮助!



但是 - 您的第一个链接 - 您可以将代码放在任何您喜欢的地方。除了其他选项之外,按钮点击事件也是合适的。



第二个链接上缺少的参考可能是byteScout图像到视频库。



最后,在CodeProject文章的第三个链接上 - 通常我会建议使用该文章底部的评论论坛,但作者似乎没有回复评论。但是,我

引用:

看到花时间在最终产品被破坏的地方

- 这是一种学习的好方法,恰好是大多数开发人员定期面对的场景。



其他文章 [ ^ ]您可能会觉得有用

First, I'm fairly new to see sharp so I'm looking for a thorough and easy to understand answer.

How do I make a C# win form program that breaks a video down to frames, then puts those frames back together to make a video?
I also want to be able to select which frames to extract by setting an interval time. For example, extract frames that are one second apart.
Is this possible, I have done some research but I don't understand how to use the codes displayed on the following websites.

Supposedly code to breakdown video into frames. However I do not know where to put it. Do I make it the event for a button or something.
http://www.researchgate.net/post/Has_anyone_code_in_C_to_read_video_file_and_split_it_into_frames[^]

Code for making a video from images, it looked promising so i tried to copy and paste it visual studio. However the line using BytescoutImageToVideoLib; has an error asking me whether I am missing a reference. What reference am I missing?
http://bytescout.com/products/developer/imagetovideosdk/imagetovideosdk_first_step_with_visual_c_sharp_net.html[^]

I also noticed that there was a page on code project for something similar to this, but the downloadable demo project didn't work at all. I didnt see the point in spending time on something where the end product is broken.
Extract Frames from Video Files[^]

Any help is greatly appreciated.

解决方案

If you can't understand the code presented we are unlikely to be able to help you much in a Quick Answers Forum!

However - your first link - you can put the code wherever you like. A button click event would be appropriate, amongst other options.

The missing reference on your 2nd link is likely to be the byteScout Image to Video library.

Finally, on the third link to the CodeProject article - normally I would suggest using the comments forum at the bottom of that article, but the author does not seem to be responding to comments. However, I do

Quote:

see the point in spending time on something where the end product is broken

- it's a good way to learn and happens to be a scenario that most developers face on a regular basis.

There are other articles[^] on CodeProject that you may find useful


这篇关于如何制作一个C#win form程序,将视频分解为帧,然后将这些帧重新组合成一个视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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