Jump to content

Recommended Posts

Posted

THE MEDIA SCRIPT IS DEPRECATED, IN FAVOR OF THE LEGACY MULTIMEDIA INTEGRATION. PLEASE REFER TO THIS TOPIC:

 

So finally we have the first version of:

The UN-official, UN-supported, etc...

RK3399 MEDIA TESTING SCRIPT

 

This is the first release of the RK3399 media testing script. The script provides a functionality similar to its RK3288 equivalent:

  • Installing all the libraries and system configurations necessary for GPU accelerated X desktop, Chromium WebGL, full VPU video play acceleration up to 4k@60 10-bit HEVC (the maximum supported by the SoC), and GLES 3.2 / OpenCL 1.2 support.
  • Three video players supporting full VPU acceleration (RKMPP) and KMS display (GBM or a X11 DRM "hack", as described by the authors), namely: MPV, Gstreamer and Kodi.
  • Two example programs using the OpenCL functionality: Examples form the Arm Compute Library, and a GPU crypto miner (an old version, but small and simple).
  • A library that will act as an OpenGL to OpenGL-ES wrapper, allowing you to run programs that use OpenGL 1.5-2.0.
  • Two additional features, that have no big interest from the Armbian development prospective, but I find them interesting to play with:
    •  Chromium browser with support for Flash and DRM-protected commercial web video streaming (tested with Amazon Prime, should also work with Netflix, Hulu, etc.),
    • and a simple Pulseaudio GTK equalizer using LADSPA.

 

Here is a more thorough documentation:

  Reveal hidden contents

 

>>> DOWNLOAD LINK <<<

 

Prerequisites:

  • You need a fresh Armbian Bionic desktop image with legacy kernel installed.

 

Instructions:

  1. Download the file above
  2. Untar it: tar xvf media-rk3399_*.txz
  3. cd media-script
  4. ./media-rk3399.sh

 

Notes:

  • This script is not officially supported by the Armbian project. It is just a community effort to help the development of the main build, by experimenting with a possible implementation of the media capabilities of this particular SoC.
  • Therefore, questions about the script should not be laid out as support requests, but as commentaries or community peer-to-peer assistance.
  • That being said, all commentaries/suggestions/corrections are very welcome. In the same way, I will do my best to help solve any difficulty that may arise regarding the script.

 

Enjoy!

  • JMCC featured, pinned and unfeatured this topic
Posted

Congratulations, good job. I ran the script on Khadas EDGE on the latest SERVER image (5.69 20190111). Installed all components. Launched KODI, it works with HW and plays all my test files (including 4K). In the near future I will check the script in the environment x11 (DE XFCE). :)

Posted

Installed the script on the system with DE XFCE. The screen resolution is 1920x1080 (1080p), this is the maximum that the current test monitor supports. Test video from MPV-works immediately in full screen without brakes, but there is no possibility to control it (perhaps there are buttons on the keyboard to control ?). Web browser. Tried all the options from 720 to 4K-everything works in full screen without brakes. For 4K-not enough of my channel on the Internet, is buffering, but it has nothing to do with HW video. When trying to start KODI from under XFCE (x11), issued a warning about closing X11, switched to the console, but did not start (with a message about not being able to create a GUI). I'm probably running KODI wrong to x11 ?

Posted
  On 1/11/2019 at 12:58 PM, balbes150 said:

 Test video from MPV-works immediately in full screen without brakes, but there is no possibility to control it (perhaps there are buttons on the keyboard to control ?). 

Expand  

Yes, it runs fulscreen with no mouse support. You can control it with a remote control via LIRC, or with the keyboard. Arrows, space, Q for quit and shift-Q for save position and quit. "man mpv" will give you the whole list of controls.

 

  On 1/11/2019 at 12:58 PM, balbes150 said:

When trying to start KODI from under XFCE (x11), issued a warning about closing X11, switched to the console, but did not start (with a message about not being able to create a GUI). I'm probably running KODI wrong to x11 ?

Expand  

Well, the wrapper is a very basic implementation, meant to stop nodm, which is the default Armbian DM. If you are using lightdm instead, you must edit the file "/usr/local/bin/kodi-gbm-wrapper" 

 

Or just do it manually: Ctrl+alt+F1, "sudo service lightdm stop", "kodi"

Posted
  On 1/11/2019 at 2:08 PM, JMCC said:

Yes, it runs fulscreen with no mouse support. You can control it with a remote control via LIRC, or with the keyboard. Arrows, space, Q for quit and shift-Q for save position and quit. "man mpv" will give you the whole list of controls.

Expand  

Isn't it possible to build desktop link that will open terminal? With this it should have mouse support?

 

Posted
  On 1/11/2019 at 2:59 PM, Dante4 said:

Isn't it possible to build desktop link that will open terminal?

Expand  

That's actually what the script currently does. In the documentation you can find more info about how it works.

 

You can choose either X11 ( windowed, mouse support, worst performance) and GBM (writes directly to display without using the X server, no mouse support, best performance).

Posted
  On 1/11/2019 at 2:27 PM, balbes150 said:

PS it Remains to build the same script for rk3328 and the entire main line of products will have the necessary support. :)

Expand  

It's baking in the oven... ;)

Posted

I was very pleased with Gstreamer. ON 4K TV, you can scale any video to any size on your desktop. (now can use any player or write your own).  :)

 

Now I test different videos in MPV Gstreamer KODI and browser on TV 4K (4096х2160), impressive performance RK3399 . :)

Posted (edited)

It looks like system update of Armbian_5.69_Nanopim4_Ubuntu_bionic_default_4.4.167_desktop.img make it freeze(when X11 already loaded, but XFCE not yet appear). Board is Friendlyarm NanoPi M4/2GB/SD.

without update everything is OK.

does anybody have similar behavior?

Edited by ayaromenok
Posted (edited)

I just tried the script on a RockPi 4B, running the version of Armbian available here: https://wiki.radxa.com/Rockpi4/downloads

 

When I tried to run the install script, it failed with an error saying that there is a conflict with Armbian's version of libgles2 and the one in libmali-rk-midguard.  The specific verbiage is:

 

dpkg: regarding .../libmali-rk-midgard-t86x-r14p0-r0p0_1.6-1-0armbian1_arm64.deb containing libmali-rk-midgard-t86x-r14p0-r0p0:arm64:
 libgles2-mesa:arm64 conflicts with libgles2
  libmali-rk-midgard-t86x-r14p0-r0p0:arm64 provides libgles2 and is to be installed.

dpkg: error processing archive packages/libs/libmali-rk-midgard-t86x-r14p0-r0p0_1.6-1-0armbian1_arm64.deb (--unpack):
 conflicting packages - not installing libmali-rk-midgard-t86x-r14p0-r0p0:arm64

 

Full install log at the bottom of this post.

 

Note that I tried this against both the stable and the nightly repos - same result either way.  (I didn't expect a different result regardless, but I figured I'd try it for completeness sake.)

 

Any thoughts on this?  I'm sure I could just use the appropriate flags with dpkg to make the packages install, but that would likely cause all sorts of dependency issues, and might make apt-get misbehave later.

 

Any advice is appreciated!  Full install log below:

------------------------------------------------------------------------------------------------------------------------------------------

  Reveal hidden contents

 

Edited by Tido
added spoiler - for better reading, please do that yourself next time. thx
Posted
  On 1/14/2019 at 11:14 PM, FoxND001 said:

I just tried the script on a RockPi 4B, running the version of Armbian available here: https://wiki.radxa.com/Rockpi4/downloads

Expand  

If you notice, that download is Armbian with Debian Stretch desktop. The script requires Armbian with Ubuntu Bionic desktop. We (the Armbian project) has not released an official image for Rockpi 4 yet, so you will have to build it yourself using Raxda fork of Armbian (in case it is publicly available), or ask them to build it.

 

My recommendation would be that you ask in the Raxda forums how to get a ubuntu bionic desktop Armbian image for Rockpi.

Posted
  On 1/14/2019 at 7:31 PM, ayaromenok said:

It looks like system update of Armbian_5.69_Nanopim4_Ubuntu_bionic_default_4.4.167_desktop.img make it freeze(when X11 already loaded, but XFCE not yet appear). Board is Friendlyarm NanoPi M4/2GB/SD.

without update everything is OK.

does anybody have similar behavior?

Expand  

Does it also happen if you flash a fresh Armbian_5.69_Nanopim4 image, or only when you upgrade through apt?

Posted
  On 1/15/2019 at 12:00 AM, JMCC said:

If you notice, that download is Armbian with Debian Stretch desktop. The script requires Armbian with Ubuntu Bionic desktop. We (the Armbian project) has not released an official image for Rockpi 4 yet, so you will have to build it yourself using Raxda fork of Armbian (in case it is publicly available), or ask them to build it.

 

My recommendation would be that you ask in the Raxda forums how to get a ubuntu bionic desktop Armbian image for Rockpi.

Expand  

 

Thanks for that, and sorry for the mix-up - not sure how I missed something that basic (different major version IS pretty much the definituon of "the basics"...).  Being said, I can pursue building myself on what i have now, and can share the result if its useful.  And, shoud you decide to do a release for the RockPi 4B, and ya need a tester, I'd be happy to test or help however I can.

 

Posted

Installed on rockpro64 and bash ran flawlessly, everything's seems to have installed and all desktop links created for applications, unfortunately seems that script was unable to override something, all apps run as if nothing had been done no streaming, mpv works same as before and Kodi does close x but breaks system when trying to run kodi, I'll try to upload log scripts 2morrow, hope whatever is missing shows up there.

Posted
  On 1/15/2019 at 5:02 AM, FoxND001 said:

shoud you decide to do a release for the RockPi 4B

Expand  

This release is also meant for the RockPi 4B, as well as for other RK3399 boards. Only requirement is that the system is running Armbian Bionic with 4.4.y kernel. I'm not going to make a release for Debian Stretch, because the Armbian multimedia implementation will be based on Ubuntu Bionic.

Posted
  On 1/15/2019 at 12:02 AM, JMCC said:

Does it also happen if you flash a fresh Armbian_5.69_Nanopim4 image, or only when you upgrade through apt?

Expand  

only when upgrade through apt update/upgrade.

just check once again - can confirm freeze on this particular board(Friendlyarm NanoPI M4).

in upgrade its already

armbian-bionic-desktop/bionic,bionic 5.70 all [upgradable from: 5.69]

complete list of upgrade in attached file.

freeze.armbian.txtFetching info...

Posted
  On 1/15/2019 at 10:59 AM, ayaromenok said:

only when upgrade through apt update/upgrade.

just check once again - can confirm freeze on this particular board.

in upgrade its already

armbian-bionic-desktop/bionic,bionic 5.70 all [upgradable from: 5.69]

complete list of upgrade in attached file.

freeze.armbian.txtFetching info...

Expand  

Aha, I get it. you need to re-run the script after the upgrade. It is enough with selecting the "System configuration" option.

 

In order to do it, since you don't have X, try to switch to terminal by pressing Ctrl+Alt+F1, or access through ssh.

Posted
  On 1/15/2019 at 11:03 AM, JMCC said:

Aha, I get it. you need to re-run the script after the upgrade.

Expand  

thank you - it works! Yesterday I didn't look carefully in upgrade list and didn't realize a presence of new kernel :

Posted

rp64, instalation log, kodi breaks os, instalation success, mpv not accelerated, chromium 32bit both installed none streaming media.

 

Install log attached, did reboot, did disable window manager compositing, kodi desktop link closes x, once you run kodi by command it breaks os have to reflash os, if log doesn't help, i could upload a video since i cant extract system log break atm, video would be easier for me, again by request if needed.

 

 

install.log

Posted
  On 1/15/2019 at 6:57 PM, Multi said:

rp64, instalation log, kodi breaks os, instalation success, mpv not accelerated, chromium 32bit both installed none streaming media.

 

Install log attached, did reboot, did disable window manager compositing, kodi desktop link closes x, once you run kodi by command it breaks os have to reflash os, if log doesn't help, i could upload a video since i cant extract system log break atm, video would be easier for me, again by request if needed.

 

 

install.logFetching info...

Expand  

Thanks for testing.

 

The kodi issue can probably be resolved if you switch to nightly builds through "armbian-config".

 

Now, about acceleration not working, please do the following:

  1. Install the OS, and switch to nightly:
    1. "sudo armbian-config"
    2. Select System->Nightly
  2. Run the script
  3. Reboot
  4. Please post here the output of "ls -l /dev/mali*"
Posted
  On 1/15/2019 at 7:17 PM, JMCC said:

Thanks for testing.

 

The kodi issue can probably be resolved if you switch to nightly builds through "armbian-config".

 

Now, about acceleration not working, please do the following:

  1. Install the OS, and switch to nightly:
    1. "sudo armbian-config"
    2. Select System->Nightly
  2. Run the script
  3. Reboot
  4. Please post here the output of "ls -l /dev/mali*"
Expand  

OK, so changed to nightly and nothing happened same results, installed both 5.67 and 5.69 builds (stable builds available at armbian download page old and current) with no avail. noticed that both builds use kernel 4.4.167 even after changing to nightly and updating, upgrading, dist-upgrading nothing changed the Kernel, decided to do it manually and finally was able to change, selected 5.71 build that uses 4.20.0.

Redid instructions and the observations are as follows 4.20.0 does play youtube and media at slightly faster speed (not better i mean like 1.25x) , mpv and chromium 32 played them at correct speed, can see ldspa working but there is no audio so ill blame that on the kernel, neither hdmi or 3.5mm socket have audio output, most likely kernel the culprit again, kodi desktop link does close x and when running command throws error, no longer breaking os so Im attaching error log.

Since changing kernel did make a gr8 difference before I try all the builds to my hearts desire, Im wondering if you have a preferred build version that is better tailored to your script?

 

Also neither before or after script install / before after updating and upgrading was /dev/mali available 

 

rp64@rockpro64:~$ ls -l /dev/mali
ls: cannot access '/dev/mali': No such file or directory
 

 

kodi_crashlog-20190116_023538.logFetching info...

Posted
  On 1/16/2019 at 2:56 AM, Multi said:

neither before or after script install / before after updating and upgrading was /dev/mali available

Expand  

That is the problem, then.

  On 1/16/2019 at 2:56 AM, Multi said:

Im wondering if you have a preferred kernel version that is better tailored to your script?

Expand  

Well, there are two problems here: 1) RockPro64 uses a different kernel than the other RK3399 boards; and 2) I don't have a RockPro64 to test.

So, in answer to your question, I can tell you that my preferred kernel for all other RK3399 boards is default 4.4.167, but it is because I was able to test and patch that kernel with the required features. It seems like that kernel version, on RockPro64, is not working, and there is not much I can do about it. I think we must consider the possibility of moving RockPro64 to standard RK3399, and then all problems would be solved. But we must make sure before that it is possible to do so without breaking other things.

Posted

OK, thanks any way, I'm Glad there is people working on rk3399 chips development, someday we may profit of you're findings, till then wish you good luck, seems other boards are getting things well done :D cchips have gr8 potencial

Posted
  On 1/15/2019 at 12:00 AM, JMCC said:

If you notice, that download is Armbian with Debian Stretch desktop. The script requires Armbian with Ubuntu Bionic desktop. We (the Armbian project) has not released an official image for Rockpi 4 yet, so you will have to build it yourself using Raxda fork of Armbian (in case it is publicly available), or ask them to build it.

 

My recommendation would be that you ask in the Raxda forums how to get a ubuntu bionic desktop Armbian image for Rockpi.

Expand  

About this, your script should be possible to run under just Ubuntu Bionic (that was unminimized from servef version) in theory there shouldn't be any problems if kernel is the last version, right?

Posted
  On 1/16/2019 at 10:20 PM, Dante4 said:

About this, your script should be possible to run under just Ubuntu Bionic (that was unminimized from servef version) in theory there shouldn't be any problems if kernel is the last version, right?

Expand  

All software (mpv gstreamer KODI) are collected using system libraries from Ubuntu. Therefore, Ubuntu packages will not work in Debian. We need to rebuild all the components for Debian. I came across this when building KODI versions with HW for AML.

Posted
  On 1/17/2019 at 7:03 AM, balbes150 said:

All software (mpv gstreamer KODI) are collected using system libraries from Ubuntu. Therefore, Ubuntu packages will not work in Debian. We need to rebuild all the components for Debian. I came across this when building KODI versions with HW for AML.

Expand  

???

I wasn't asking about Debian at all in my post. 

  On 1/16/2019 at 10:20 PM, Dante4 said:

run under just Ubuntu Bionic (that was unminimized from server version)

Expand  

Only about ubuntu bionic (server edition).

Posted
  On 1/17/2019 at 5:18 PM, Dante4 said:

???

I wasn't asking about Debian at all in my post. 

Only about ubuntu bionic (server edition).

Expand  

Sorry, I didn't understand your question either. Can you rephrase it?

 

[EDIT:] If your question is whether the script will work on a server image, with no Desktop installed, the answer is probably not. You can test, but don't expect to get support for it here.

Posted
  On 1/17/2019 at 8:01 PM, JMCC said:

Sorry, I didn't understand your question either. Can you rephrase it?

 

[EDIT:] If your question is whether the script will work on a server image, with no Desktop installed, the answer is probably not. You can test, but don't expect to get support for it here.

Expand  

 

  On 1/16/2019 at 10:20 PM, Dante4 said:

under just Ubuntu Bionic (that was unminimized from server version)

Expand  

I.e. Is it possible to use this script with "just" Ubuntu Bionic?

I.e.  Why "Armbian Ubuntu Bionic" and not just "Ubuntu Bionic"?

With technical point, not advertise 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines