nyavramov / WEBMARIZER

WEBMARIZER: Automatically 'summarizes' a video by creating multiple WEBMs or GIFs from a single video. It breaks a video into pieces and generates a WEBM/GIF from each piece. It can do this for each video in your folder with a single click. This is similar to a video thumbnails sheet but in WEBM/GIF form.
82 stars 7 forks source link

Overlay text #7

Open Mathis-Er opened 3 years ago

Mathis-Er commented 3 years ago

Hi, would it be possible to add text overlays to the gifs? I know it is possible to do with ffmpeg but I can't seem to figure out a way to add it to this program.

Also want to say thanks for creating the program, I've been using it for a while now and it works like a charm!

nyavramov commented 3 years ago

Hey, didn't see your comment so I apologize for the late response. Also, thank you for the kind words. It makes me to happy to see that this code is still useful to someone.

It's been a little over 3 years since I've touched this software. I wrote this as an undergrad, so naturally, the code isn't very extensible or clean. I'd have to modify it to add a feature to allow it to do this.

I will try to look into doing this in the near future. If you wanted to try your hand at it, my guess is that you would need to modify the createGif function which contains the commands used by ffmpeg to do the heavy lifting.

The .UI file can be modified using QT Designer, so if you wanted to, you could insert a text box somewhere and grab the text from that textbox.

Another option is to simply create the gifs you want using this tool and then have FFMPEG separately add overlays after that. A script which opens each gif and adds the overlay might achieve what you want.

Hope that helps!

Mathis-Er commented 3 years ago

That's ok! I'll try and see if I can figure it out, I'm a complete beginner at coding so that'll be interesting. I'm going to take a look if there are programs out there that could do it in bulk, which is the main reason I chose this program anyways. Otherwise I think I should be able to create a simple script myself. Thanks!