• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Playing MP4 videos in OTCv8

the easiest way (not very optimal - acceptable on windows/linux devices) is to use opencv with ffmpeg backend (vcpkg.exe install opencv[ffmpeg])
The harder way, time consuming and probably optimal is to use ffmpeg or gstreamer directly (so You can manipulate/configure gpu in an optimal way - for example opencv does not support hw acceleration for android meanwhile it is supported by ffmpeg itself)
 
the easiest way (not very optimal - acceptable on windows/linux devices) is to use opencv with ffmpeg backend (vcpkg.exe install opencv[ffmpeg])
The harder way, time consuming and probably optimal is to use ffmpeg or gstreamer directly (so You can manipulate/configure gpu in an optimal way - for example opencv does not support hw acceleration for android meanwhile it is supported by ffmpeg itself)
I'm using ffmpeg lib without opencv. Ffmpeg is not supported on android tho.
By adding video buffering on separated thread I was able to achieve good results, for example 1080p 30FPS video uses only around 100MB of RAM while playing.
 
Last edited:
"Ffmpeg is not supported on android tho" -> OFC it is supported it even supports HW accelaration (but im warning - thats not a trivial task to do - it took me almost a month to achieve good results)- for example my application is using this and more over I was even able to show a video in widget (my app is based on otcv8).
 
OFC it is supported
Huh, all my research lead to some custom ffmpeg lib made for mobile devices.

for example my application is using this and more over I was even able to show a video in widget
That's what I'm doing. I have new widget, UIVideo. This video player where Shrek is playing is all widgets, it's a module with otui, buttons, panels, UIVideo and Lua to control the video. Playing, pausing, seeking, generating thumbnail, looping all supported.
 
Back
Top