Skip to content

FFMPEG Command Line Interface with common video workflow functions.

Notifications You must be signed in to change notification settings

Astor/ffmpeg-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFMPEG CLI

A simple FFMPEG wrapper for common functions.

Requirements

Both need to be acessible to the CLI by installing on the system and setting the PATH or placing ffmpeg and ffprobe within the "/usr/local/bin". Downloads available here: https://ffmpeg.org/download.html

  • ffmpeg
  • ffprobe

To cover a watermark:

ffmpeg-cli cover-watermark videos/1.mp4 output/no_watermark.mp4 --width 110 --height 105 --x 1170 --y 535 --shape rectangle --color "#000000"

To apply an effect:

ffmpeg-cli effect input.mp4 output.mp4 sepia

To reverse a video:

ffmpeg-cli reverse input.mp4 output_reversed.mp4

To split a file into smaller files:

ffmpeg-cli split videos/1.mp4 output/ 5

To stretch a file duration:

ffmpeg-cli stretch videos/1.mp4 output/1_stretched.mp4 30

Cross fade two video files:

ffmpeg-cli cross-fade videos/1.mp4 videos/2.mp4 output/crossfaded.mp4 2

Trim a section of a video file with a start time and end time and output a new trimmed video.

ffmpeg-cli trim videos/7.mp4 output/trimmed.mp4 2 8

Square crop 1:1 ratio video

Centered square crop (default behavior)

ffmpeg-cli square-crop videos/exp1.mp4 output/square_output.mp4

Specify a size (will be capped to the maximum possible square size)

ffmpeg-cli square-crop videos/exp1.mp4 output/square_output.mp4 --size 800

Specify position (top-left corner of the crop area)

ffmpeg-cli square-crop videos/exp1.mp4 output/square_output.mp4 --x-offset 100 --y-offset 50

Specify both size and position

ffmpeg-cli square-crop videos/exp1.mp4 output/square_output.mp4 --size 500 --x-offset 100 --y-offset 50

Create a slideshow from a folder of images:

ffmpeg-cli slideshow --input-folder ./images --output ./output/slideshow.mp4 --duration 360

About

FFMPEG Command Line Interface with common video workflow functions.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages