Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sandydoo/custom-ffmpeg
Nix configs (and flakes) for compiling a useful build of ffmpeg
https://github.com/sandydoo/custom-ffmpeg
ffmpeg nix
Last synced: 6 days ago
JSON representation
Nix configs (and flakes) for compiling a useful build of ffmpeg
- Host: GitHub
- URL: https://github.com/sandydoo/custom-ffmpeg
- Owner: sandydoo
- Created: 2021-11-13T15:06:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-25T06:41:25.000Z (almost 3 years ago)
- Last Synced: 2024-12-16T00:24:42.838Z (2 months ago)
- Topics: ffmpeg, nix
- Language: Nix
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compile a useful build of ffmpeg
It’s always been a bit of a pain getting a working build of ffmpeg with
proprietary libraries enabled. Homebrew, actually, got quite close to being
painless until I got fed up with how it absolutely littered the working
environment with build dependencies. There’s no dependency tracing in Homebrew,
so have fun figuring out why you have a tool or library installed. Nix is
comparatively rough around the edges when it comes to UX, but makes dealing with
ffmpeg so easy, it feels like cheating.### Nix >= 2.4
First, take a look at the options available in the `ffmpeg-full` available in `nixpkgs`.
```sh
nix edit nixpkgs#ffmpeg-full
```Edit `flake.nix`, adding the options you need. Using flakes on nix >= 2.4:
```sh
nix profile install
```### Nix < 2.4
Edit `default.nix` and then run:
```sh
nix-env -i -f default.nix
```### Manual build from source
Clone the ffmpeg repo, copy over the `custom_make_file.sh`, and run it. Then
mess about with copying the output to the write locations on your machine.