Description
Do I need to manually adjust the video resolution to the LVGL LCD resolution in advance when playing videos using LVGL’s ffmpeg plugin? Still, lvgl can automatically scale the video based on the size of the lv_obj_t object.?
lv_obj_t * player = lv_ffmpeg_player_create(lv_scr_act()); lv_ffmpeg_player_set_src(player, "./lvgl/examples/libs/ffmpeg/birds.mp4");
If birds.mp4 is 1920x1080, but my LVGL’s display screen is 320x240, can it automatically zoom? If scaling is not possible, is there a user-defined interface? Or will the interface of the ffmpeg plugin be added in the future to enable it to pass more specific parameters? Ffmpeg is almost impossible to run on MCU, but it is still easy to run on Linux SOC. I hope there can be a more complete ffmpeg plugin.
What MCU/Processor/Board and compiler are you using?
rockchip rv1103
What LVGL version are you using?
v8.3.10
What do you want to achieve?
When playing videos, the ffmpeg plugin can call ffmpeg to scale the video to fit the LCD.
What have you tried so far?
Only when the video and lvgl resolution are the same can it be successfully played
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
/*You code here*/
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.