A small GTK/libadwaita app to open MP4 files, define a crop region, and export the result as a GIF.
- Open MP4 with preview.
- Crop by coordinates
X,Y,Width,Height. - Export to GIF via FFmpeg with palette generation for better quality.
- Python 3.10+
- GTK 4.10+ and libadwaita
- GStreamer plugins for video playback
- FFmpeg (including
ffprobe)
sudo apt-get install -y \
python3-gi gir1.2-gtk-4.0 gir1.2-adw-1 \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
ffmpegFrom the project root:
python3 -m video_cropper- Click
Open MP4in the header and choose a file. - Set the crop region in the Crop section.
- Adjust
FPSandMax widthif needed. - Click
Export GIFand choose the output filename.
If ffmpeg or ffprobe is missing, export will be disabled and a status hint will appear.