We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4effa0d commit 5157177Copy full SHA for 5157177
examples/libs/ffmpeg/lv_example_ffmpeg_2.c
@@ -18,6 +18,9 @@ void lv_example_ffmpeg_2(void)
18
/*It will use the LVGL filesystem abstraction (not the OS filesystem)
19
*if `LV_FFMPEG_PLAYER_USE_LV_FS` is set.*/
20
lv_obj_t * player = lv_ffmpeg_player_create(lv_screen_active());
21
+ /*Note: "h264_v4l2m2m" is a Linux-specific hardware decoder example, available only on Linux systems with V4L2 support.
22
+ *In the absence of support, it will fall back to software decoding.*/
23
+ lv_ffmpeg_player_set_decoder(player, "h264_v4l2m2m");
24
lv_ffmpeg_player_set_src(player, PATH_PREFIX "lvgl/examples/libs/ffmpeg/birds.mp4");
25
lv_ffmpeg_player_set_auto_restart(player, true);
26
lv_ffmpeg_player_set_cmd(player, LV_FFMPEG_PLAYER_CMD_START);
0 commit comments