red_alert
red_alert

Reputation: 1728

Edit video frames

How can I put an image in each frame of a video file and save it with this edition?

I have heard about OpenCV or using Surfaces, but I don't know if this is the easiest way...

Thanks

Upvotes: 0

Views: 2079

Answers (1)

Eugene
Eugene

Reputation: 530

The question is very common and depends on details. So, if you need to do that programmatically, you can:

  1. Use FFMPEG filter.
  2. Use FFMPEG for decoding video frames and OpenGL ES for presentation. Blend images on presentation layer.
  3. Use FFMPEG for decoding and SurfaceView for presentation. The same as prev. one, the only differense you will use java API to blend images.
  4. Use Media API

1 and 2 are flexible, but you will have a deal with native code. You must be familiar with JNI, NDK. 3 is not good enough and you can get some performance issues. 4 would be the best choice, but I'm not sure that you will find any tutorial or example how to do that.

Upvotes: 1

Related Questions