feat(docs): migrate from .md to .rst (#4129)

This commit is contained in:
Kevin Schlosser
2023-04-27 06:42:02 -06:00
committed by GitHub
parent e7f88efa58
commit e485dd8bb4
366 changed files with 27657 additions and 15146 deletions

40
docs/libs/ffmpeg.rst Normal file
View File

@@ -0,0 +1,40 @@
==============
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`