Files
lvgl/docs/libs/ffmpeg.rst
liamHowatt 03c6be3451
MicroPython CI / Build esp32 port (push) Has been cancelled
MicroPython CI / Build rp2 port (push) Has been cancelled
MicroPython CI / Build stm32 port (push) Has been cancelled
MicroPython CI / Build unix port (push) Has been cancelled
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Has been cancelled
Verify the widget property name / verify-property-name (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Build docs / build-and-deploy (push) Has been cancelled
Test API JSON generator / Test API JSON (push) Has been cancelled
Verify Kconfig / verify-kconfig (push) Has been cancelled
docs(ffmpeg): images always loaded with lvgl fs
2025-03-12 16:39:04 +01:00

57 lines
1.3 KiB
ReStructuredText

.. _ffmpeg:
==============
FFmpeg support
==============
A complete, cross-platform solution to record, convert and stream audio and video.
Detailed introduction: https://www.ffmpeg.org
Install FFmpeg
--------------
Download first FFmpeg from `here <https://www.ffmpeg.org/download.html>`__, then install it:
.. code:: shell
./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``)
.. _ffmpeg_usage:
Usage
-----
Enable :c:macro:`LV_USE_FFMPEG` in ``lv_conf.h``.
See the examples below.
.. note::
The FFmpeg extension doesn't use LVGL's file system in
:cpp:`lv_ffmpeg_player_set_src`. You can
simply pass the path to the image or video as usual on your operating
system or platform.
The LVGL file system will always be used when an image is
loaded with :cpp:func:`lv_image_set_src`.
.. _ffmpeg_example:
Example
-------
.. include:: ../examples/libs/ffmpeg/index.rst
.. _ffmpeg_api:
API
---