1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00
lvgl/examples/libs/ffmpeg/lv_example_ffmpeg_1.py
2023-10-24 09:41:51 +02:00

22 lines
419 B
Python
Executable File

#!/opt/bin/lv_micropython-ffmpeg -i
import sys
import lvgl as lv
import display_driver
try:
#
# Open an image from a file
#
image = lv.image(lv.screen_active())
image.set_src("ffmpeg.png")
image.center()
except Exception as e:
print(e)
# TODO
# fallback for online examples
label = lv.label(lv.screen_active())
label.set_text("FFmpeg is not installed")
label.center()