[odroid-c2] running video player inside linux container

Post Reply
sang0627
Posts: 2
Joined: Fri Mar 15, 2019 4:02 pm
languages_spoken: english
ODROIDs: odroid-c2
Contact:

[odroid-c2] running video player inside linux container

Unread post by sang0627 » Fri Mar 15, 2019 4:49 pm

I'm testing video player on odroid-c2 using ubuntu-18.04-mate image.
It works fine on my odroid-c2.
both of kodi and mplayer display my videos excellently.

I launched a linux container using lxd and tested video player inside the container. (i.e. lxc launch ubuntu:bionic my-test)
Any x11-app runs good in the container including xclock, glxgears, etc.
If I run kodi and mplayer inside the container,
both of them display my videos successfully but it looks like a little bit slow.
I guess it's because HW acceleration is not reflected to them.

After installing mali-x11 inside the container and upgrading kodi from bionic package to odroid package,
both video players fail to display my videos.
Please see the below two statements in the attached log files.
- "double free or corruption" from kodi log file
- "X11 error: BadAccess (attempt to access private resource denied)" from mplayer log file)

I suspect mali-x11 in the container cannot access some kind of direct memory region,
therefore two video players cannot get video frames.
I have tried to add many device nodes in host's /dev/xxx to the container,
but it does not resolve this problem.
what files does mali-x11(or mali driver) access to provide HW acceleration in odroid-c2?

I appreciate any comments.
Attachments
mplayer-log.txt
(11.98 KiB) Downloaded 6 times
kodi_crashlog-20190315_162418.log
(13.11 KiB) Downloaded 7 times

User avatar
tobetter
Posts: 2807
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: [odroid-c2] running video player inside linux container

Unread post by tobetter » Fri Mar 15, 2019 5:27 pm

Have you mapped the full /dev of the host to the container?

sang0627
Posts: 2
Joined: Fri Mar 15, 2019 4:02 pm
languages_spoken: english
ODROIDs: odroid-c2
Contact:

Re: [odroid-c2] running video player inside linux container

Unread post by sang0627 » Fri Mar 15, 2019 5:29 pm

@tobetter, well not the full /dev/ but many of device files I choose.
for example, /dev/am*, /dev/mali, /dev/ump, /dev/video*, etc

User avatar
tobetter
Posts: 2807
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: [odroid-c2] running video player inside linux container

Unread post by tobetter » Fri Mar 15, 2019 5:35 pm

sang0627 wrote:
Fri Mar 15, 2019 5:29 pm
@tobetter, well not the full /dev/ but many of device files I choose.
for example, /dev/am*, /dev/mali, /dev/ump, /dev/video*, etc
IMO it's worth to try to map whole if the video player instance in the container can play well like the host.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests