Tutorial#
Install package#
pip install framecat
Install external libraries#
FFmpeg
sudo apt update
sudo apt install ffmpeg
ffmpeg --version
gifsicle
sudo apt update
sudo apt install -y gifsicle
gifsicle --version
Quick start#
Make sure you’re not inside a Docker container.
Create a virtual environment if needed
pip install framecat
LATEST mode#
execute the command in the
LATESTinput mode:framecat latest --output-names name1 name2
this will pull the latest 2
.tarfiles created in the--input-folder(defaults to~/Downloads).rename the
.tarfiles asname1.tarandname2.tar.create a video, a GIF and a lossy GIF for each
.tarfile.store them in the
--output-folder(defaults to~/Videos/framecat).
BY-NAME mode#
execute the command in the
BY-NAMEinput mode:framecat by-name --input-names in_name1 --output-names out_name1`
this will pull the
in_name1.tarfile from the--input-folder(defaults to~/Downloads).rename the
.tarfile asout_name1.tar.create a video, a GIF and a lossy GIF for each
.tarfile.store these in the
--output-folder(defaults to~/Videos/framecat).
Input type#
We can choose to run the framecat command on different file types:
on ‘tar’ files, this command will create a video, a GIF and a lossy GIF. This is the default mode.
framecat latest --input-type tar --output-names out_name1`
or equivalently:
framecat latest --output-names out_name1`
on ‘mp4’ files, this command will create a GIF and a lossy GIF.
framecat latest --input-type mp4 --output-names out_name1`
on ‘gif’ files, this command will create a lossy GIF.
framecat latest --input-type gif --output-names out_name1`