Hi there,
Is the any prevision/forecast when should be the VPU available on Torizon?
I’m trying to play video inside the cog browser, the video starts, but the playback is very very slow, and buggish. (@1080p) I imagine that might be because the missing VPU?
Thanks in advance
Greetings @rawmance,
Could you state what version of Torizon OS you are using here. Also how exactly did you try and test video playback with Cog?
Best Regards,
Jeremias
1 Like
Hi there @jeremias.tx ,
6.4.0-devel-202309+build.13

I’m accessing a webpage served by another nginx container, it’s a simple page with a video embedded in the page. The video resource is local and it’s in mp4 format.
Thanks!
Ah I see you’re using the Apalis i.MX8. Well we do explicitly say on this page here that VPU is not supported as of yet: How to use Gstreamer on Torizon OS | Toradex Developer Center
That said we do have a very rough proof of concept for getting the VPU to work in a container here. I believe I can share this with you. Just lease keep in mind this isn’t a final solution, it’s draft work at best and there are probably still some issues to expect with this.
Here are some download links:
To run this this container you should use the following docker run
command:
docker run -d --rm --privileged --name=cog -v /dev:/dev -v /run/udev/:/run/udev/ -v /tmp:/tmp -v /var/run/dbus:/var/run/dbus -v /dev/galcore:/dev/galcore --device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 4:* rmw' --device-cgroup-rule='c 13:* rmw' --device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' --device-cgroup-rule='c 81:* rmw' --device-cgroup-rule='c 136:* rmw' --device-cgroup-rule='c 10:62 rmw' --device-cgroup-rule='c 238:* rmw' --device-cgroup-rule='c 237:* rmw' --env COG_PLATFORM_WL_VIEW_FULLSCREEN=1 --cap-add CAP_SYS_TTY_CONFIG --env GST_GL_API=gles2 <container name>
I don’t know if every single argument is needed but it’s what I used.
Anyways with this container I was able to try the following test videos:
Video playback was smooth and the CPU usage was reasonable.
So yeah you can give this a try. That said just keep in mind this is a rough draft at best and not something we actually support. Our current stance is that VPU is still not supported on i.MX8 for Torizon.
Best Regards,
Jeremias
1 Like
Hi there @jeremias.tx ,
Thanks for that guide, i will try that out!
Yes, i’ve saw your mention of VPU not supported on torizon and that’s why i’ve asked if there is any forecast of supporting it, or if your simply doesn’t have that as a goal/target for Torizon.
Thanks!
if there is any forecast of supporting it, or if your simply doesn’t have that as a goal/target for Torizon.
We do want to eventually support this properly in Torizon. Though I don’t have a proper timeline I can provide you at this time.
Best Regards,
Jeremias