MasayukiSuda / GPUVideo-android

This library apply video filter on generate an Mp4 and on ExoPlayer video and Video Recording with Camera2.
MIT License
658 stars 178 forks source link

Is it possible to merge GIF on video using GPUVideo? #12

Open brianlee0113 opened 5 years ago

brianlee0113 commented 5 years ago

Hello,

Is it possible to add GIF on the video and export to a single video like 'Bitmap overlay sample' or 'Watermark' in your sample code?

P.S. Thanks for your awesome work. Truly appreciate it! :)

seanghay commented 5 years ago

I think it can be achieved by having a GifDecoder for decoding .gif file and draw it into a SurfaceTexture which can be used to overlay on top of a video. The tricky thing is that I don't know if MediaCodec supports Gif decoding or not, but I think it doesn't.

You can take a look at Glide GifDecoder which might help you in this case.

nikunjparadva commented 4 years ago

@brianlee0113 @MasayukiSuda is that possible to overlay GIF on Video??

emergingcoders13 commented 2 years ago

Has anyone done this?