Skip to content

Commit d1c609a

Browse files
committed
Add codec ffmpeg
1 parent 7211d07 commit d1c609a

File tree

5 files changed

+709
-0
lines changed

5 files changed

+709
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,24 @@ An open source API that allows applications such as VLC media player or GStreame
164164
* Installation:
165165
* Ubuntu: `apt install libva-dev`
166166

167+
#### Video codecs implemented using ffmpeg
168+
169+
* Package: [github.com/pion/mediadevices/pkg/codec/ffmpeg](https://pkg.go.dev/github.com/pion/mediadevices/pkg/codec/ffmpeg)
170+
* Installation: You need to enable CGO, and provide the ffmpeg headers and libraries when compiling. For more detail, checkout
171+
https://github.com/asticode/go-astiav?tab=readme-ov-file#install-ffmpeg-from-source.
172+
* NVENC: If you want to use nvenc, you need to install [FFmpeg/nv-codec-headers](https://github.com/FFmpeg/nv-codec-headers) too.
173+
Make sure that your driver's version is supported by the nv-codec-headers version you are installing.
174+
To install it, clone the repo, checkout to wanted version, and `sudo make install`.
175+
176+
> Currently, only ffmpeg n7.0 and n7.1 are supported.
177+
178+
##### nvenc
179+
180+
Requires ffmpeg build with `--enable-nonfree --enable-nvenc`.
181+
182+
##### x264
183+
184+
Requires ffmpeg build with `--enable-libx264 --enable-gpl`.
167185

168186
#### Audio Codecs
169187

0 commit comments

Comments
 (0)