{"id":19196021,"url":"https://github.com/acj/asdf-ffmpeg","last_synced_at":"2025-05-09T00:33:04.398Z","repository":{"id":66824244,"uuid":"581311332","full_name":"acj/asdf-ffmpeg","owner":"acj","description":"An asdf plugin for juggling different versions of ffmpeg","archived":false,"fork":false,"pushed_at":"2024-12-06T01:52:47.000Z","size":52,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-20T09:43:56.337Z","etag":null,"topics":["asdf","asdf-vm","ffmpeg"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-22T20:47:52.000Z","updated_at":"2024-12-06T01:52:51.000Z","dependencies_parsed_at":"2024-02-18T17:28:43.450Z","dependency_job_id":"95a7ec01-8572-4078-ada6-9a0c05676717","html_url":"https://github.com/acj/asdf-ffmpeg","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":"asdf-vm/asdf-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fasdf-ffmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fasdf-ffmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fasdf-ffmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acj%2Fasdf-ffmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acj","download_url":"https://codeload.github.com/acj/asdf-ffmpeg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171141,"owners_count":21865275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asdf","asdf-vm","ffmpeg"],"created_at":"2024-11-09T12:12:15.029Z","updated_at":"2025-05-09T00:33:04.328Z","avatar_url":"https://github.com/acj.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asdf-ffmpeg [![Build](https://github.com/acj/asdf-ffmpeg/actions/workflows/build.yml/badge.svg)](https://github.com/acj/asdf-ffmpeg/actions/workflows/build.yml) [![Lint](https://github.com/acj/asdf-ffmpeg/actions/workflows/lint.yml/badge.svg)](https://github.com/acj/asdf-ffmpeg/actions/workflows/lint.yml)\n\n\n[ffmpeg](https://ffmpeg.org) plugin for the [asdf version manager](https://asdf-vm.com).\n\n# Contents\n\n- [Dependencies](#dependencies)\n- [Install](#install)\n- [Contributing](#contributing)\n- [License](#license)\n\n# Dependencies\n\nTo build FFmpeg, you will need to install a few libraries. You can try the commands below. If they don't work for you, please have a look at the [FFmpeg documentation](https://trac.ffmpeg.org/wiki/CompilationGuide).\n\nDepending on the install options you choose, FFmpeg may require more libraries to be installed. See the [Libraries and add-ons](#libraries-and-add-ons) section below.\n\n## macOS with Homebrew\n\n```sh\nbrew install automake fdk-aac git lame libass libtool libvorbis libvpx \\\n  opus sdl2 shtool texi2html theora wget x264 x265 xvid nasm zimg\n```\n\nYou might also need to set `CFLAGS` and `LDFLAGS` so that the compiler/linker toolchain can find headers and libraries from your Homebrew packages:\n\n```sh\nexport CFLAGS=\"$CFLAGS -I$(brew --prefix)/include\"\nexport LDFLAGS=\"$LDFLAGS -L$(brew --prefix)/lib\"\n```\n\n## Ubuntu\n\n```sh\nsudo apt-get update -qq \u0026\u0026 sudo apt-get -y install \\\n  autoconf automake build-essential cmake git-core libass-dev \\\n  libfreetype6-dev libgnutls28-dev libmp3lame-dev libsdl2-dev libtool \\\n  libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \\\n  libxcb-xfixes0-dev meson ninja-build pkg-config texinfo wget yasm \\\n  zlib1g-dev\n```\n\n# Install\n\nFirst, install this plugin:\n\n```shell\nasdf plugin add ffmpeg\n# or\nasdf plugin add ffmpeg https://github.com/acj/asdf-ffmpeg.git\n```\n\nSecond, choose which options you want to enable. Here is a reasonable starting point with broad support for modern codecs:\n\n```sh\n# Tip: put this in your ~/.bashrc or ~/.zshrc so that it's available for future installs\nexport ASDF_FFMPEG_ENABLE=\"libaom fontconfig freetype frei0r lame libass libvorbis libvpx opus rtmpdump sdl2 snappy theora x264 x265 xz\"\n```\n\nThen, select a version of ffmpeg and install it:\n\n```shell\n# Show all installable versions\nasdf list-all ffmpeg\n\n# Install specific version\nasdf install ffmpeg latest\n\n# Set a version globally (on your ~/.tool-versions file)\nasdf global ffmpeg latest\n\n# Now ffmpeg commands are available\nffmpeg -version\n```\n\nIf there are errors during the build, you might need to install additional libraries.\n\n## Libraries and add-ons\n\nYou can configure FFmpeg to support more features and media formats by enabling options. See the [FFmpeg documentation](https://ffmpeg.org/general.html) for a list of options that are supported by the version you're using.\n\n### Toggling options\n\nThis plugin looks for an environment variable named `ASDF_FFMPEG_ENABLE` to determine which options to enable. The value of the variable should be a space-separated list of options. For example, to enable the `libx264` and `libvpx` options, you would set the environment variable like this:\n\n```sh\nexport ASDF_FFMPEG_ENABLE=\"libx264 libvpx\"\n```\n\nIt can also be done inline during the install:\n\n```sh\nASDF_FFMPEG_ENABLE=\"libass libvpx\" asdf install ffmpeg latest\n```\n\nIf you want to pass arbitrary options to ffmpeg's `configure` script, you can use `ASDF_FFMPEG_OPTIONS_EXTRA`:\n\n```sh\nexport ASDF_FFMPEG_OPTIONS_EXTRA=\"--extra-version=my-ffmpeg-build\"\n```\n\n## Tools and utilities\n\nFFmpeg includes a handful of often-overlooked tools that are useful for troubleshooting and other advanced work. These tools are not installed by default, but you can enable them by setting `ASDF_FFMPEG_ENABLE_TOOLS`. For example, to enable `ffescape` and `graph2dot`, use the following:\n\n```sh\nexport ASDF_FFMPEG_ENABLE_TOOLS=\"ffescape graph2dot\"\n```\n\nA full list of tools can be found in the [FFmpeg source tree](https://github.com/FFmpeg/FFmpeg/tree/master/tools).\n\n# Contributing\n\nContributions are welcome! See the [contributing guide](contributing.md).\n\n# License\n\nMIT. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facj%2Fasdf-ffmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facj%2Fasdf-ffmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facj%2Fasdf-ffmpeg/lists"}