2026-04-25 23:36:26 +02:00
2026-03-12 13:28:14 +01:00
2026-04-25 23:36:26 +02:00
2026-03-12 13:28:14 +01:00
2026-03-12 13:28:14 +01:00
2026-04-24 23:26:20 +02:00
2026-04-24 23:26:20 +02:00

vid2avif

Video to AVIF converter

sample avif file

(Very early version of...) A batch script for converting video files to AVIF using FFmpeg. Supports scaling, trimming and cropping and preview using 'ffplay'.

By Pathduck

Installation

Usage

vid2avif [input_file] [arguments]

Arguments

 -o  Output file. Default is the same as input file, sans extension
 -r  Resize output width in pixels. Default is original input size
 -f  Framerate of output, or '-' to use input framerate (default 15)
 -s  Start time of the animation (HH:MM:SS.MS)
 -e  End time of the animation (HH:MM:SS.MS)
 -x  Crop the input video (out_w:out_h:x:y)
 -y  Preview animation using FFplay (part of FFmpeg)
     Useful for testing cropping, but will not use exact start/end time
 -p  Opens the resulting animation in the default image viewer
 -v  Set FFmpeg log level (default: error)

Notes

  • Cropping works on the input video before scaling is performed, and passes the parameters directly to the FFmpeg crop filter.

  • Preview uses FFplay and the script will check for its existence on the PATH. FFplay is usually installed along with FFmpeg. The preview is not time-accurate and is mostly useful for testing cropping.

  • The script will attempt to check for valid inputs, but will fall back to FFmpeg's error messages.

  • The script uses ffmpeg, you can download that here: FFmpeg

  • The script is based on: Pathduck/vid2ani

Description
A script for converting video files to animated AVIF using FFmpeg.
Readme GPL-3.0 298 KiB
Languages
Batchfile 53.2%
Shell 46.8%