开发者

Frame Extraction and Insertion in a Video file (.avi and .mpg) in VB6

开发者 https://www.devze.com 2023-03-29 05:34 出处:网络
We have a software developed in VB6. This software automates Photoshop to achieve quick single click image corrections.

We have a software developed in VB6. This software automates Photoshop to achieve quick single click image corrections.

Now our client has asked us to add support for processing selected frames in a video file.

What we want to achieve is Extract a range of frames from a video file and process them in Photoshop and then insert them back in the video file.

Any ideas as to how we can achieve this?

I have never programmed video handling so I am new to this concept.

开发者_Go百科

Please point me to any libraries that will work in VB6 and that may be providing frame extraction and insertion without disrupting the audio of that video file.

Oh! I should mention that I have tried ImageEnX for this but unfortunately it is not able to handle various codecs and it can work with very short video files (less than 100 MB).

Thanks in advance.


Have a look at the AviFile API (VB6 code available at ShrinkWrapVB)


Finally I have found a way to do this. So I though I will share it with other here.

Of course not as I want it but it just works like a charm. :)

What I am doing?

  • I am using FFMPEG to first convert a video and extract all frames
  • Then I am extracting Audio from original video
  • Then I am processing only those frames that fall into the range selected by user
  • Once all frames are processed I am rebuilding Video from frames in mpeg format
  • Then I am merging the extracted Audio back to the newly generated Video

That is it.

Hope this will help someone searching for similar solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号