Android mp4parser - create Track from Bitmap

604 Views Asked by At

How to have a video Track from an image (Bitmap) on Android?

I need to add an image at end of my video.. for 5 seconds

Thanks

1

There are 1 best solutions below

0
On

The terminology for what comes after a video is called a "Post Roll" (or before a video, "Pre Roll"). This will help you in future searching.

If you are attempting to use an Image as your Post Roll, this will not work as it says at the very bottom of their GitHub page.

So what can you do?

As they also say on that page, you can "Append Recordings with Same Encode Settings". So you can encode your image as a video with the:

  • SAME resolutions
  • SAME frame-rates

as your main video, then they will chain properly.