{"id":13613736,"url":"https://github.com/h4tr3d/avcpp","last_synced_at":"2025-05-15T13:06:03.336Z","repository":{"id":11556389,"uuid":"14042428","full_name":"h4tr3d/avcpp","owner":"h4tr3d","description":"C++ wrapper for FFmpeg","archived":false,"fork":false,"pushed_at":"2025-05-05T03:07:48.000Z","size":56840,"stargazers_count":489,"open_issues_count":22,"forks_count":87,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-05-05T03:22:23.621Z","etag":null,"topics":["cmake","cpp","cpp17","cpp20","ffmpeg","vcpkg"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/h4tr3d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-bsd.txt","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":"2013-11-01T12:23:55.000Z","updated_at":"2025-05-05T03:07:02.000Z","dependencies_parsed_at":"2023-12-29T02:22:35.058Z","dependency_job_id":"62b0c17c-5866-4264-8d69-6516ac699cd8","html_url":"https://github.com/h4tr3d/avcpp","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4tr3d%2Favcpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4tr3d%2Favcpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4tr3d%2Favcpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4tr3d%2Favcpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h4tr3d","download_url":"https://codeload.github.com/h4tr3d/avcpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346624,"owners_count":22055808,"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":["cmake","cpp","cpp17","cpp20","ffmpeg","vcpkg"],"created_at":"2024-08-01T20:00:53.119Z","updated_at":"2025-05-15T13:06:03.315Z","avatar_url":"https://github.com/h4tr3d.png","language":"C++","readme":"# AvCpp [![Build Status](https://github.com/h4tr3d/avcpp/actions/workflows/cmake-ci.yml/badge.svg)](https://github.com/h4tr3d/avcpp/actions/workflows/cmake-ci.yml) [![CodeQL C++](https://github.com/h4tr3d/avcpp/actions/workflows/codeql.yml/badge.svg)](https://github.com/h4tr3d/avcpp/security/code-scanning) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)\n\nWrapper for the FFmpeg that simplify usage it from C++ projects.\n\nCurrently covered next functionality:\n\n- Core helper \u0026 utility classes (AVFrame -\u003e av::AudioSample \u0026 av::VideoFrame, AVRational -\u003e av::Rational and so on)\n- Container formats \u0026 contexts muxing and demuxing\n- Codecs \u0026 codecs contexts: encoding and decoding\n- Streams (AVStream -\u003e av::Stream)\n- Filters (audio \u0026 video): parsing from string, manual adding filters to the graph \u0026 other\n- SW Video \u0026 Audio resamplers\n\nYou can read the full documentation [here](https://h4tr3d.github.io/avcpp/).\n\n## Requirements\n\n- FFmpeg \u003e= 2.0\n  - libavformat \u003e= 54.x.x\n  - libavcodec \u003e= 54.x.x\n  - libavfilter \u003e= 3.x.x\n  - libavutil \u003e= 51.x.x\n  - libswscale \u003e= 2.x.x\n  - libswresample \u003e= 0.x.x\n  - libpostproc \u003e= 52.x.x\n- GCC \u003e= 5.0 (C++11 is required)\n- CMake (\u003e 3.19) or Meson(\u003e 50.0)\n\n### Debian, Ubuntu 19.10 and Linux Mint 20.x or newer\n\nYou should install FFmpeg packages from the deb-multimedia.org site:\n\n```bash\nsudo apt-get install libavformat-dev \\\n                     libavcodec-dev \\\n                     libavutil-dev \\\n                     libavfilter-dev \\\n                     libswscale-dev \\\n                     libswresample-dev \\\n                     libpostproc-dev \\\n                     libavdevice-dev\n```\n\nNote 1: I did not test building on Debian.\n\nNote 2: Debian Wheezy repo contains only FFmpeg 1.0.8. I tested building only with 2.x. So it is strongly recoment use Wheezy back-ports repo.\n\n### Ubuntu 18.04 and Linux Mint 19.x\n\nIf you are on Ubuntu bionic or Linux Mint 19.x you should add [ffmpeg-4](https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-4) PPA:\n\n```bash\nsudo add-apt-repository ppa:jonathonf/ffmpeg-4 -y\nsudo apt update \u0026\u0026 sudo apt upgrade\n```\n\nAfter that  just install the same packages as above.\n\n------\n\n## Build\n\nThere are two ways to compile either with CMake or with meson.\nBy default meson is faster, but if your project uses CMake, those instructions might be better for integration.\n\n### Building with CMake\n\n```bash\ngit clone --recurse-submodules https://github.com/h4tr3d/avcpp.git avcpp-git\ncd avcpp-git\nmkdir build\ncd build\ncmake ..\nmake -j8\n```\n\nIf your Git version so old (refer to the [SO for clarification](https://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules)) you can just\nreplace `--recurse-submodules` with pair of `git submodule init \u0026\u0026 git submodule update`.\n\nIf FFmpeg located in non-standard place:\n\n```bash\ncmake -DPC_FFMPEG_LIBRARY_DIRS=\u003csome_path\u003e -DPC_FFMPEG_INCLUDE_DIRS=\u003csome_path\u003e ..\n```\n\nTo point install prefix:\n\n```bash\ncmake -DCMAKE_INSTALL_PREFIX=/usr ..\n```\n\nInstall:\n\n```bash\nsudo make install\n```\n\nor (for packaging)\n\n```bash\nsudo make DESTDIR=\u003csome_prefix\u003e install\n```\n\nRefer to CMake documentation for more details that can cover some special cases.\n\n### Building with meson\n\nBefore you can begin with the building you have to clone the repository like this:\n\n```bash\ngit clone https://github.com/h4tr3d/avcpp.git avcpp-git\ncd avcpp-git\n```\n\nIDE Integration:\n\nThere are extentions for various IDEs like VS Code/Codium, Eclipse, Xcode, etc.\nRefer to the [docs](https://mesonbuild.com/IDE-integration.html) for more information.\n\nBuilding the project:\n\nIf you don't have the dependencies installed, meson will download and compile them.\nBecause ffmpeg is so large (~2000 c files), you should consider using your package manager to install them.\nYou can then build the project with the following commands:\n\n```bash\nmkdir build\ncd build\nmeson ..\nmeson compile\n```\n\nConfiguring the project:\n\nBy default the sample projects and the test are compiled.\nIf you don't want this you can disable it with the following commands:\n\n```bash\nmeson configure -Dbuild_tests=false\nmeson configure -Dbuild_samples=false\n```\n\nYou can set the install prefix using `meson --prefix \u003cyour/own/prefix\u003e`.\nTo see all of the available options just type `meson configure` and `meson configure --help` to get more information.\n\nInstalling the project:\n\nJust type `meson install` and the project will be installed in the configured prefix (/usr/local by default).\n\nRunning the tests:\n\nTo run the test just use `meson test`.\nIf you disabled the test this will do nothing.\n","funding_links":[],"categories":["Video","HarmonyOS"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4tr3d%2Favcpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh4tr3d%2Favcpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4tr3d%2Favcpp/lists"}