Skip to content

Instantly share code, notes, and snippets.

@israeljrs
Last active December 4, 2024 12:43
Show Gist options
  • Save israeljrs/b6764a194d9868e0413f484ab90d1c92 to your computer and use it in GitHub Desktop.
Save israeljrs/b6764a194d9868e0413f484ab90d1c92 to your computer and use it in GitHub Desktop.
ffmpeg using filter frei0r with distort0r.

Encoding with frei0r.

To encoding your movie with frei0r filter distort0r using the ffmpeg follow command below.

$ ffmpeg -i movie01.mp4 -vf "frei0r=distort0r|0.1|0.01" -f mp4 -y new_movie.mp4

Rename dir the lib frei0r to dylib.

In mac os x the frei0r install the libs using .so but ffmpeg search for .dylib so you need rename lib files to make working.

$ for file in /usr/local/lib/frei0r-1/*.so ; do cp $file "${file%.*}.dylib" ; done

Using ffmpeg with frei0r distort0r filter

enabled debug with ffmpeg. $ ffmpeg -v debug -i file.mp4

use debug to find error when encoder movies.

when use ffmpeg with mac os-x same time you need reinstall to use any filter below is command to make is using the brew. $ brew reinstall ffmpeg --with-frei0r --with-sdl2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment