Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.2 KB

README.md

File metadata and controls

17 lines (12 loc) · 1.2 KB

stack_and_audio

Script that given two gifs and one audio file creates an mp4 video with the two gifs vertically stacked and the mp3 track as main audio track. The output file has the name of the first gif with the mp4 extension. It scales everything to the width of the first gif. Since it calculates the duration of the final video as the shortest between the least common multiplier of the duration of the two gifs and the audio track, it could result in a quite big output file.

Needs ffmpeg and exiftool to run.

Usage example

We use:

./stack_and_audio.sh Tesseract.gif ACRIMSat_Animation.gif Loveshadow_-_Drunk_Text_1.mp3

It will create the file Tesseract.mp4 with the two gifs stacked and the audio track playing. Notice the file is quite large, given the loop matching.