Files
lvgl/docs/libs/ffmpeg.rst
2023-04-27 14:42:02 +02:00

41 lines
1.0 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
==============
FFmpeg support
==============
`FFmpeg <https://www.ffmpeg.org/>`__ A complete, cross-platform solution
to record, convert and stream audio and video.
Install FFmpeg
--------------
- Download FFmpeg from `here <https://www.ffmpeg.org/download.html>`__
- ``./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``
- ``make``
- ``sudo make install``
Add FFmpeg to your project
--------------------------
- Add library: ``FFmpeg`` (for GCC: ``-lavformat -lavcodec -lavutil -lswscale -lm -lz -lpthread``)
Usage
-----
Enable :c:macro:`LV_USE_FFMPEG` in ``lv_conf.h``.
See the examples below.
Note that, the FFmpeg extension doesnt use LVGLs file system. You can
simply pass the path to the image or video as usual on your operating
system or platform.
Example
-------
.. include:: ../examples/libs/ffmpeg/index.rst
API
---
:ref:`lv_ffmpeg`