{"id":18157193,"url":"https://github.com/ffiirree/ffmpeg-tutorials","last_synced_at":"2025-07-23T09:08:36.447Z","repository":{"id":128288479,"uuid":"495741995","full_name":"ffiirree/ffmpeg-tutorials","owner":"ffiirree","description":"Examples and tutorials for FFmpeg","archived":false,"fork":false,"pushed_at":"2023-06-12T14:29:25.000Z","size":3955,"stargazers_count":50,"open_issues_count":3,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T21:08:27.866Z","etag":null,"topics":["ffmpeg","ffmpeg-examples","ffmpeg-tutorial","video","wasapi","wgc"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ffiirree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-05-24T08:50:38.000Z","updated_at":"2025-04-20T13:31:16.000Z","dependencies_parsed_at":"2023-07-30T12:15:54.836Z","dependency_job_id":null,"html_url":"https://github.com/ffiirree/ffmpeg-tutorials","commit_stats":null,"previous_names":["ffiirree/ffmpeg-tutorials"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ffiirree/ffmpeg-tutorials","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffiirree%2Fffmpeg-tutorials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffiirree%2Fffmpeg-tutorials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffiirree%2Fffmpeg-tutorials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffiirree%2Fffmpeg-tutorials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ffiirree","download_url":"https://codeload.github.com/ffiirree/ffmpeg-tutorials/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffiirree%2Fffmpeg-tutorials/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266649194,"owners_count":23962187,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ffmpeg","ffmpeg-examples","ffmpeg-tutorial","video","wasapi","wgc"],"created_at":"2024-11-02T06:05:38.409Z","updated_at":"2025-07-23T09:08:36.437Z","avatar_url":"https://github.com/ffiirree.png","language":"C++","readme":"# FFmpeg Examples\n\n包括 `解 / 编码`、`(复杂)滤波器`、`屏幕 / 摄像头 / 音频捕获`、`音视频播放` 的基础示例以及相关教程。\n\nExamples and tutorials for `decoding / encoding`, `(complex) filtering`, `screen, camera, and audio capture`, `audio / video playing`, etc.\n\n## Examples\n\n- [x] [remuxing](/01_remuxing/README.md)\n- [ ] [transcoding](/02_transcoding/README.md)\n- [x] [camera / screen / microphone recording](/03_recording/README.md)\n- [ ] [simple filter](/04_simple_filters/README.md)\n- [ ] [complex filter](/05_complex_filter/README.md)\n- [x] [generating high quality GIF](/06_gen_gif/README.md)\n- [ ] [audio player with Qt](/07_audio_player/README.md)\n- [x] [video player with Qt](/08_video_player_qt/README.md)\n- [ ] [media player with Qt (syncing audio and video)](/09_media_player/README.md)\n- [x] [RTMP Streaming](/10_streaming/README.md)\n- [ ] [hardware acceleration](/13_hwaccel/README.md)\n\n### Platform Specific\n\n- [ ] Windows - [WASAPI : audio capture](/11_wasapi_capture/README.md)\n- [ ] Windows - [WASAPI : audio rendering](/12_wasapi_render/README.md)\n- [ ] Windows - [Windows Graphics Capture : screen capture](/14_windows_wgc/README.md)\n- [ ] Linux - [PulseAudio : audio capture](/15_linux_pulse/README.md)\n- [ ] Linux - [V4L2 : camera capture](/16_linux_v4l2/README.md)\n- [ ] Windows - [DirectShow : camera capture](/17_win_dshow/README.md)\n\n## Installation\n\n### Windows\n\n`Windows Graphics Capture` 示例需要较高的Windows版本:\n\n- `Windows Version \u003e= 10.0.17134.48` (aka `Windows 10 Version 1803`)\n- `Windows SDK Version \u003e= 10.0.20348.0`\n- `FFmpeg \u003e= 6.0`\n\n如果你的Windows或SDK不能满足要求，你可以选择:\n\n- 通过 `-DDISABLE_WGC=ON` 来禁用 `Windows Graphics Capture` 示例\n- 通过 `Visual Studio Installer` 安装最新的 `Windows SDK`\n\n#### FFmpeg\n\n\u003e Version : \u003e 4.3 (-DDISABLE_WGC=OFF : \u003e= 6.0)\n\n- [Windows builds](https://www.ffmpeg.org/download.html#build-windows): 注意下载`shared`版本，添加到**环境变量**中\n- [Build from source](/compile_on_windows.md)\n\n#### Qt5\n\n\u003e 6.0 \u003e Version \u003e= 5.12\n\n- [Download](https://download.qt.io/archive/qt/): 安装后注意添加目录到**环境变量**中\n\n### Ubuntu\n\n```bash\nsudo apt install build-essential git cmake\n\nsudo apt install ffmpeg libavfilter-dev libavdevice-dev libavutil-dev libavformat-dev libswresample-dev libswscale-dev\n\n# Ubuntu 20.04 \nsudo apt install qt5-default libqt5x11extras5-dev qtmultimedia5-dev\n# Ubuntu 22.04\nsudo apt install qtbase5-dev libqt5x11extras5-dev qtmultimedia5-dev\n\n# pulse\nsudo apt install libpulse-dev\n\n# v4l2\nsudo apt install libv4l-dev v4l-utils\n\n# for error: GL/gl.h: No such file or directory\nsudo apt install mesa-common-dev\n```\n\n### C++ \u0026 CMake\n\n- C++ 20\n- CMake \u003e= 3.16\n\n### Other dependencies\n\n\u003e No installation required\n\n- [glog](https://github.com/google/glog): Google Logging (glog) is a C++98 library that implements application-level logging. The library provides logging APIs based on C++-style streams and various helper macros.\n- [fmt](https://github.com/fmtlib/fmt): {fmt} is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.\n\n### Usage\n\n```bash\ngit clone https://github.com/ffiirree/ffmpeg_examples.git --recursive\n\n# 或者单独获取子模块\ngit submodule init\ngit submodule update\n```\n\n## References\n\n- [FFmpeg](https://ffmpeg.org/)\n- [ffmpeg-libav-tutorial](https://github.com/leandromoreira/ffmpeg-libav-tutorial)\n- [How to Write a Video Player in Less Than 1000 Lines](http://dranger.com/ffmpeg/)\n- [High quality GIF with FFmpeg](http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html)\n- [SimplePlayer](https://www.cnblogs.com/TaigaCon/)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffiirree%2Fffmpeg-tutorials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fffiirree%2Fffmpeg-tutorials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffiirree%2Fffmpeg-tutorials/lists"}