1
2# FFmpeg support
3[FFmpeg](https://www.ffmpeg.org/) A complete, cross-platform solution to record, convert and stream audio and video.
4
5## Install FFmpeg
6- Download FFmpeg from [here](https://www.ffmpeg.org/download.html)
7- `./configure --disable-all --disable-autodetect --disable-podpages --disable-asm --enable-avcodec --enable-avformat --enable-decoders --enable-encoders --enable-demuxers --enable-parsers --enable-protocol='file' --enable-swscale --enable-zlib`
8- `make`
9- `sudo make install`
10
11## Add FFmpeg to your project
12- Add library: `FFmpeg` (for GCC: `-lavformat -lavcodec -lavutil -lswscale -lm -lz -lpthread`)
13
14## Usage
15
16Enable `LV_USE_FFMPEG` in `lv_conf.h`.
17
18See the examples below.
19
20Note that, the FFmpeg extension doesn't use LVGL's file system.
21You can simply pass the path to the image or video as usual on your operating system or platform.
22
23## Example
24```eval_rst
25
26.. include:: ../../examples/libs/ffmpeg/index.rst
27
28```
29
30## API
31
32```eval_rst
33
34.. doxygenfile:: lv_ffmpeg.h
35  :project: lvgl
36
37```