Jump to content
  • 0

RK3288 Media Script (TinkerBoard)


JMCC
 Share

Question

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

 

 

 

The UN-official, UN-supported, UN-necessary, UN-popular, UN-precedented...

RK3288 MEDIA TESTING SCRIPT [2.0: Bionic update]

 

So here is the final release of the RK3288 media testing script. Basically, the script provides the following functionality:

  • Installing all the libraries and system configurations necessary for GPU accelerated X desktop, Chromium WebGL, full VPU video play acceleration up to 4k@30 HEVC (the maximum supported by the SoC), and GLES 3.1 / 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 18.0 alpha preview.
  • 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 small packages, that have no big interest from the developer prospective, but I find them interesting to play with: Support libraries for commercial web video streaming (tested with Netflix), and a simple Pulseaudio GTK equalizer using LADSPA.

 

Here is a more thorough documentation:

 

Version 2.0 (Bionic):

Spoiler


ARMBIAN UNOFFICIAL RK3288 MEDIA TESTING SCRIPT
----------------------------------------------
v2.0 Bionic - 2018/10/22


This script will install several multimedia-related software pieces in a
RK3288 Ubuntu Bionic Armbian desktop default image (kernel 4.4.y).
Currently it only supports the installation of the features, while
uninstall must be performed manually.

The script must be run in a command line from the same directory it was
unpacked (./media-rk3288.sh), and will ask for superuser privileges if
not launched with "sudo". Each subfolder contains, in addition to the
packages needed for installation, a text file with information about the
sources for those packages.

The script will present the user with a menu where they can select the
features to be installed. Here is a brief description of each option:

- System: This option will install the base libraries, X server packages
          and system files configuration. It must be run at least once
          before installing any of the other features, or after any
          system upgrade that modified X or Chromium configuration.
          Enabling system config will also present the user with the
          choice of two different versions of the Rockchip X server:
            · Stable: The standard version that you can download from 
              Rockchip repos.
            . Experimental: This version is taken from some PR that 
              didn't make it into the release version, and is supposed
              to give better performance. More info here:
              https://github.com/rockchip-linux/xserver/pull/10
           
- Devel: When this option is enabled, the script will install the 
         development libraries for every other option that is selected.
         So, for example, if in your first run of the script you keep 
         this option disabled and enable the rest, it will install all 
         the features but without any devel lib. If eventually you need,
         e.g., to compile some app requiring Gstreamer development libs,
         then you can run again the script, and select only "Devel" and
         "Gstreamer", so in that run it will only install Gstreamer with
         the development libraries, without touching the rest.
         
- MPV: This is a RKMPP accelerated version of MPV. In order to use the 
       hardware acceleration, it needs to make use of KMS for display,
       which means that it will ignore the X server if it is running,
       and play video in a full-screen overlay, using keyboard or LIRC
       to control the player. Type "man mpv" for a list of keyboard
       controls (tip: shift+Q will save position and exit).
       Alternatively, you can also use software decoding, and output to
       a X window with mouse support. It will still have some display
       acceleration through X11/EGL, though not as efficient as GBM/KMS.
         · To use the X, non-RKMPP version, just type "mpv <file>" in
           the console, or use the launcher labeled simply "MPV".
         . To use the GBM+RKMPP version, type "mpv-gbm <file>", or use
           the "MPV (GBM)" launcher.
         · You can use the player even in a console-only session.

- Gstreamer: These are the Rockchip Gstreamer plugins for media playback
             and capture.
             Notice that the Gstreamer plugin is the only method that
             allows full RKMMP+KMS acceleration associated to a X 
             window.
               · To play a video in a X session, use the launcher "Rock-
                 chip Gst Player".
               . From the command line, in a X session, type:
                 "gst-play-1.0 --videosink=rkximagesink <file>"
               . From a console-only session, type:
                 "gst-play-1.0 --videosink=kmssink <file>"

- CLSamples: A couple of simple programs to test OpenCL capabilities:
	     · Compiled examples from the Arm Compute Library
	     . An old GPU crypto miner (cgminer) with support for
	       extra algorythms like Skein.
	     They are installed under ~/clsamples, where you can find
	     a readme.txt file with instructions.

- GL4ES: An Opengl-ES wrapper library that will allow you to use OpenGL
         1.5-2.0 compatible programs with hardware acceleration. 
         More info: https://github.com/ptitSeb/gl4es.
         · In order to make it easier to use the library, we have
           included a script called "glrun", that will set the proper
           environment variables. Launch your OpenGL program like this:
           "glrun <command>"
         
- Streaming: This will install the Widevine and Pepper-Flash libraries
             for Chrome, enabling you to stream videos from sites such
             as Netflix (tested) or Hulu (untested).
             It will also install the h264ify addon, which will force
             all Youtube videos to use the H.264 codec.

- Equalizer: A GTK-based equalizer for PulseAudio, using LADSPA. You
             need to enable it through the menu entry, and select the
             desired preset or tweak your own settings. The "Boosted"
             preset is recommended for everyday use.
             This package is old and unmaintained, but I still find it
             useful.

- Kodi: Kodi 18.0 Leia beta 3. This version is supposed to be stable
        enough for normal use. But the main purpose of including Kodi in
        the script is to test the new RKMPP+KMS implementation. We don't
        intend to offer a full-fledged distribution of Kodi. For that, I
        recommend using LibreELEC.
        It cannot be launched from an active X session, you need to
        switch to a virtual terminal first.
        · The "Kodi" desktop launcher will switch you to VT1, launch
          Kodi and then bring you back to VT7.
        · From the command line, in a X session, type:
          "kodi-gbm-wrapper" for the same effect.
        · If you are already in a console-only session, you can just 
          type "kodi".

All the RKMPP accelerated players can handle up to 4K@30 HEVC with
perfect smoothness.


Please report bugs and suggestions in the thread dedicated to this
script at the Armbian Forum. Enjoy!

JMCC.

 

 

Version 1.0 (Xenial):

Spoiler


ARMBIAN UNOFFICIAL RK3288 MEDIA TESTING SCRIPT
----------------------------------------------
v1.0 Xenial - 2018/05/16

This script will install several multimedia-related software pieces in a
RK3288 Ubuntu Xenial Armbian desktop default image (kernel 4.4.y).
Currently it only supports the installation of the features, while
uninstall must be performed manually.

The script must be run in a command line from the same directory it was
unpacked (./media-rk3288.sh), and will ask for superuser privileges if
not launched with "sudo". Each subfolder contains, in addition to the
packages needed for installation, a text file with information about the
sources for those packages.

The script will present the user with a menu where they can select the
features to be installed. Here is a brief description of each option:

- System: This option will install the base libraries, X server packages
          and system files configuration. It must be run at least once
          before installing any of the other features, or after any
          system upgrade that modified X or Chromium configuration.
          Enabling system config will also present the user with the
          choice of two different versions of the Rockchip X server:
            · An older version that replaces the standard 1.18.y server
              bundled with Xenial, and therefore doesn't need to install
              a backported version of the X server.
            . The most recent version from the Rockchip Git. It is based
              on X server versiojn 1.19.y, so it requires the
              installation of a backported X server.
           The older version does not have proper video Vsync, so it is
           not too recommended for multimedia use. It might also be less
           stable, more testing is needed to tell. On the other hand, it
           offers the possibility of enabling window manager compositing
           and gives a snappier desktop experience.
           
- Devel: When this option is enabled, the script will install the 
         development libraries for every other option that is enabled.
         So, for example, if in your first run of the script you keep 
         this option disabled and enable the rest, it will install all 
         the features but without any devel lib. If eventually you need,
         e.g., to compile some app requiring Gstreamer development libs,
         then you can run again the script, and select only "Devel" and
         "Gstreamer", so in that run it will only install Gstreamer with
         the development libraries, without touching the rest.
         
- MPV: This is a RKMPP accelerated version of MPV. In order to use the 
       hardware acceleration, it needs to make use of KMS for display,
       which means that it will ignore the X server if it is running,
       and play video in a full-screen overlay, using keyboard or LIRC
       to control the player. Type "man mpv" for a list of keyboard
       controls (tip: shift+Q will save position and exit).
       Alternatively, you can also use software decoding, and output to
       a X window with mouse support. It will still have some display
       acceleration through X11/EGL, though not as efficient as GBM/KMS.
         · To use the X, non-RKMPP version, just type "mpv <file>" in
           the console, or use the launcher labeled simply "MPV".
         . To use the GBM+RKMPP version, type "mpv-gbm <file>", or use
           the "MPV (GBM)" launcher.
         · You can use the player even in a console-only session.
- Gstreamer: These are the Rockchip Gstreamer plugins for media playback
             and capture. The plugins themselves are just a few small
             libs, but since the version shipped with Xenial is so old,
             we need to install also a full Gstreamer 1.12 backport.
             It will also install a demo Qt5 player.
             Notice that the Gstreamer plugin is the only method that
             allows full RKMMP+KMS acceleration associated to a X 
             window.
               · To play a video in a X session, use the launcher "Rock-
                 chip Gst Player".
               . From the command line, in a X session, type:
                 "gst-play-1.0 --videosink=rkximagesink <file>"
               . From a console-only session, type:
                 "gst-play-1.0 --videosink=kmssink <file>"
- CLSamples: A couple of simple programs to test OpenCL capabilities:
         · Compiled examples from the Arm Compute Library
         . An old GPU crypto miner (cgminer) with support for
           extra algorythms like Skein.
         They are installed under ~/clsamples, where you can find
         a readme.txt file with instructions.
- Streaming: This will install the Widevine and Pepper-Flash libraries
             for Chrome, enabling you to stream videos from sites such
             as Netflix (tested) or Hulu (untested).
             It will also install the h264ify addon, which will force
             all Youtube videos to use the H.264 codec.
- Equalizer: A GTK-based equalizer for PulseAudio, using LADSPA. You
             need to enable it through the menu entry, and select the
             desired preset or tweak your own settings. The "Boosted"
             preset is recommended for everyday use.
             This package is old and unmaintained, but I still find it
             useful.
- Kodi: A preview of Kodi 18.0 Leia. Since it is still in alpha state,
        it is not recommended for regular use, but you can test the
        quality of the new RKMPP+KMS implementation that is being
        added to this version. It will crash when trying to open a file
        from USB sticks or Samba share, so please copy them to the
        SD card before testing.
        It cannot be launched from an active X session, you need to
        switch to a virtual terminal first.
        · The "Kodi" desktop launcher will switch you to VT1, launch
          Kodi and then bring you back to VT7.
        · From the command line, in a X session, type:
          "kodi-gbm-wrapper" for the same effect.
        · If you are already in a console-only session, you can just 
          type "kodi".
All the RKMPP accelerated players can handle up to 4K@30 HEVC with
perfect smoothness.

Please report bugs and suggestions in the thread dedicated to this
script at the Armbian Forum. Enjoy!
JMCC.

 


>>> DOWNLOAD LINK (2.0, FOR BIONIC DESKTOP) <<<

 

> Older Download link (1.0, for Xenial) <

 

Instructions:

  1. Download the file above
  2. Untar it: tar xvf media-rk3288_*.tar.xz
  3. cd media-script
  4. ./media-rk3288.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!

 

 

 

Link to comment
Share on other sites

Recommended Posts

  • 0
On 12/3/2018 at 12:23 AM, JMCC said:

TB dows not support 10-bit HW decoding, so all the work needs to be done via software. It's probably able to decode a 1080p file, but not 4K. 

Are you sure abour this? Because wikipedia says the SOC is able to handle this. And I can also confirm this twice:

First the Libreelec build for tinkerboard works like a charm and is able to play 4k-10Bit video files with a low CPU load.

And second i just tested the Rockchip player from your script and its also able to decode the files but only for a few seconds. But CPU load in this time is low.

 

I have to thank you for your work, the 10-Bit thing is just a tiny one and all other things are working perfect for me.

Link to comment
Share on other sites

Check forum guidelines to use maximum potential!

  • 0
59 minutes ago, fliger said:

Are you sure abour this? Because wikipedia says the SOC is able to handle this. And I can also confirm this twice:

First the Libreelec build for tinkerboard works like a charm and is able to play 4k-10Bit video files with a low CPU load.

And second i just tested the Rockchip player from your script and its also able to decode the files but only for a few seconds. But CPU load in this time is low.

 

I have to thank you for your work, the 10-Bit thing is just a tiny one and all other things are working perfect for me.

I stand corrected, it does support 10-bit HEVC with the Main profile. I also know that LibreELEC uses some patches to libdrm to support 10 bit display, which we don't do ATM.

Link to comment
Share on other sites

  • 0
On 12/2/2018 at 11:23 PM, JMCC said:

It looks like newer versions of Chromium are not compatible with the widevine library that the script installs. I haven't found a more recent library yet. In the meantime, if you don't mind using an outdated version of Chromium, you can try to downgrade it:

Thank you so much for taking the time to help me, appreciated!

I have downgraded Chromium but I still receive the same error message. I have checked that I'm using version 65.  What is the next step?

 

Cheers! :) 

Link to comment
Share on other sites

  • 0
On 12/4/2018 at 5:32 PM, fliger said:

I have to thank you for your work, the 10-Bit thing is just a tiny one and all other things are working perfect for me.

There is a post confirming that LibreElec patches allow playing of 10-bit videos in other RK SoC's. I want to experiment with it, and probably will be included in some future version of the script.

Link to comment
Share on other sites

  • 0
9 hours ago, tony359 said:

I have downgraded Chromium but I still receive the same error message. I have checked that I'm using version 65.  What is the next step?

I am not using Netflix anymore, so I cannot tell for sure. I'll probably remove that feature from future versions of the script.

 

However, here are some suggestions that may work:

  • Look for a compatible version of the widevine-cdm library for Chromium
  • Use the Kodi Netflix add-on
  • Use Exagear Desktop to run Chrome Browser for x86

 

Please let us know about your findings.

Link to comment
Share on other sites

  • 0
On 12/17/2018 at 10:31 PM, JMCC said:

There is a post confirming that LibreElec patches allow playing of 10-bit videos in other RK SoC's. I want to experiment with it, and probably will be included in some future version of the script.

Nice to here that. Unfortunately I dont know how to apply those patches so I just wait and hope for your solutions.

Link to comment
Share on other sites

  • 0
On 12/19/2018 at 2:57 PM, fliger said:

Nice to here that. Unfortunately I dont know how to apply those patches so I just wait and hope for your solutions.

Don't be lazy to learn something new. You just need to edit 1 file to do it, here (step 6 for you)

 

Link to comment
Share on other sites

  • 0

Hi,

 

First of all, thank you for your great work (@all)

 

I have a bug with xubuntu 18.04 and media-script.sh 2.0 on TinkerBoard : gpu acceleration works, but enabling xfce compositor makes disappear all desktop icons

 

When compositor is disabled, icons reappear

 

I'd like to have a compositor for transparency

 

This bug seems to come from GTK and Rockchip xserver 1.18 and 1.19

 

The bug also appear with mate

 

No problem with lxde or enlightenment

 

I tried to bypass xfwm with Compton but it doesn't work well 

 

Thank you for your time

 

Link to comment
Share on other sites

  • 0
10 minutes ago, chrisdo said:

Hi,

 

First of all, thank you for your great work (@all)

 

I have a bug with xubuntu 18.04 and media-script.sh 2.0 on TinkerBoard : gpu acceleration works, but enabling xfce compositor makes disappear all desktop icons

 

When compositor is disabled, icons reappear

 

I'd like to have a compositor for transparency

 

This bug seems to come from GTK and Rockchip xserver 1.18 and 1.19

 

The bug also appear with mate

 

No problem with lxde or enlightenment

 

I tried to bypass xfwm with Compton but it doesn't work well 

 

Thank you for your time

 

Yes, it is a known bug in Rockchip's X server, you can find it in some other places in the forums, as well as in Rockchip's GitHub issues. That is the reason why the script disables compositing by default.

 

We're working on using a different driver (armsoc instead of glamor), that allows compositing, though at the cost of a great performance loss. I will still recommend disabling compositing, even with that new driver, but you'll be able to enable it if you want.

Link to comment
Share on other sites

  • 0

UPDATE: Web streaming fixed! I uploaded a new package with updated versions of widevine and flash. Just download it from here, install it, and you're good to go. Tested with the latest version of Chromium, 71.0.3578.80.

 

Now it also supports Amazon Prime Video, which didn't work with the former version.

 

@tony359 You may be interested in this.

 

 

Link to comment
Share on other sites

  • 0

Thanks JMCC - I appreciate your help.

 

However, I have given up on the TB. I only needed a media player for my old TV and the TB was a world of pain so I bought an Amazon stick instead. For anything else a RPi has way more support. The TB is not so much faster than the Pi 3 so I decided to return it. Cheers for keeping this up and running! :thumbup:

Link to comment
Share on other sites

  • 0

Wait, what? Not much faster? If you say at burning energy during operation, I agree; otherwise, I think every benchmark on the planet is against you. I have 2 Pi3's, I can't use them because they are slower than very nearly every other board I possess, they collect dust. My Pi2 serves to play music for me.

Sent from my Pixel using Tapatalk

Link to comment
Share on other sites

  • 0

I have a Pi3 and RPi2 as well. Yes, the TB is a bit faster but doesn't justify the efforts. First and Foremost, the slower WiFi - the Pi loads my 30GB+ ISO files in 4-5 seconds from my NAS, the TB takes 30 seconds. I had to install three different OS's on the TB to have sound out of it. I cannot update it easily or the whole thing goes belly up. 

The Pi was much easier: OSMC and off you go.  UI is a bit more choppy but not by far.

 

The Fire Stick is faster than both. I have Kodi on it which runs faster than both the TB and RPi. BBC iPlayer runs twice as fast and I have Netflix and anything else too. 

 

So, *for a media server* the Stick was a *much* better choice. Also, much cheaper (paid it £24 from Amazon) and does not require fans/cases/keyboards etc. Clearly for tinkering, a SoC is the solution. But I have a RPi for that.

Link to comment
Share on other sites

  • 0
11 minutes ago, petatester said:

I noticed dragging urls (youtube) to mpv makes it inmediately crash/close. Is this the expected behaviour?

Wow, I had no idea you could do that in mpv :).

 

I tried it, and it seems like you need to install the package "youtube-dl" for the feature to work. I didn't test dragging the url, but playing it from the command like works. Even more, if you use the gbm wrapper, you can even play 4K videos smoothly!

sudo apt-get install youtube-dl
mpv-gbm https://www.youtube.com/blahblah

 

Link to comment
Share on other sites

  • 0
1 hour ago, JMCC said:

Wow, I had no idea you could do that in mpv :).

 

I tried it, and it seems like you need to install the package "youtube-dl" for the feature to work. I didn't test dragging the url, but playing it from the command like works. Even more, if you use the gbm wrapper, you can even play 4K videos smoothly!


sudo apt-get install youtube-dl
mpv-gbm https://www.youtube.com/blahblah

 

Facepalm i thought youtube-dl was included in the package, i didn't even make the effort to try install it. Soz.

 

How ever, my output is quite different:

test@tinkerboard:~$ mpv-gbm https://www.youtube.com/watch?v=LXb3EKWsInQ
Playing: https://www.youtube.com/watch?v=LXb3EKWsInQ
[ytdl_hook] WARNING: Unknown codec av01.0.05M.08
[ytdl_hook] WARNING: Unknown codec av01.0.05M.08
[ytdl_hook] WARNING: Unknown codec av01.0.05M.08
[ytdl_hook] WARNING: Unknown codec av01.0.05M.08
[ytdl_hook] WARNING: Unknown codec av01.0.05M.08
[ytdl_hook] WARNING: Unknown codec av01.0.05M.08
[ytdl_hook] WARNING: Unknown codec av01.0.05M.08
[ytdl_hook] WARNING: Unknown codec av01.0.05M.08
No audio streams in file https://r3---sn-h5q7knee.googlevideo.com/videoplayback?txp=5532232&requiressl=yes&fvip=2&expire=1547576568&ipbits=0&mime=video%2Fmp4&clen=527968855&gir=yes&itag=401&mn=sn-h5q7knee%2Csn-h5q7dnes&signature=4640785288523C52191D08E23DCDA14B13590D80.4BEA53D4F4B931025089B08FF8B02EF6B3D8CE3E&mm=31%2C29&ms=au%2Crdu&mv=m&mt=1547554874&dur=313.780&ei=mNA9XILRGpjX1gbW8bHoCA&lmt=1546532984364249&ip=80.26.96.203&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C271%2C278%2C298%2C299%2C302%2C303%2C308%2C313%2C315%2C330%2C331%2C332%2C333%2C334%2C335%2C336%2C337%2C394%2C395%2C396%2C397%2C398%2C399%2C400%2C401&id=o-AO_OaCGUzlsNuqsOIsJ-UuWGRnrZyELCP93_YYC3-WL4&key=yt6&c=WEB&keepalive=yes&initcwndbps=1190000&source=youtube&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&pl=16&beids=9466588&ratebypass=yes.
 (+) Video --vid=1 (*) (vp9 3840x2160 59.940fps)
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu/opengl] Failed to get EGL display.
[vo/gpu] Failed to setup EGL.
[vo/gpu] Failed initializing any suitable GPU context!
Error opening/initializing the selected video_out (--vo) device.
Video: no video
No video or audio streams selected.


Exiting... (Errors when loading file)

 

O.S: Armbian_5.70_Tinkerboard_Ubuntu_bionic_next_4.19.14_desktop

Mediascript: 2.0

 

If i open the normal mpv and drag the same link it works for few seconds, then the entire tinkerboard turns off :o

Link to comment
Share on other sites

  • 0
5 minutes ago, petatester said:

O.S: Armbian_5.70_Tinkerboard_Ubuntu_bionic_next_4.19.14_desktop

Mediascript: 2.0

Again: as you can read in the documentation and in the first post, the script is to be used with the default kernel (4.4.y). You are using Next (4.19.y). That is not supported.

Link to comment
Share on other sites

  • 0
12 minutes ago, JMCC said:

Again: as you can read in the documentation and in the first post, the script is to be used with the default kernel (4.4.y). You are using Next (4.19.y). That is not supported.

My bad, downloading the legacy one :) ty!

 

Maybe the script could do a kernel check before instlling anything to avoid fools like me?

Link to comment
Share on other sites

  • 0
1 hour ago, JMCC said:

Again: as you can read in the documentation and in the first post, the script is to be used with the default kernel (4.4.y). You are using Next (4.19.y). That is not supported.

 

There you have:

kernelVersion="$(uname -a)"
 
if [[ $kernelVersion != *"tinkerboard 4.4."* ]]; then
        echo "Kernel version not supported"
        exit
fi

 

Now i have Armbian_5.70_Tinkerboard_Ubuntu_bionic_default_4.4.166_desktop + media script and tinkerboard shuts down when opening chrome or trying to play a youtube video with mpv / mpv-gbm.

Link to comment
Share on other sites

  • 0
3 minutes ago, petatester said:

tinkerboard shuts down when opening chrome or trying to play a youtube video with mpv / mpv-gbm.

Could it be lack of power? When you enable that stuff, you demand a lot on the board. Try something like "stress -c 4", and if it also shuts down the board, then that's the cause.

Link to comment
Share on other sites

  • 0
1 hour ago, JMCC said:

Could it be lack of power? When you enable that stuff, you demand a lot on the board. Try something like "stress -c 4", and if it also shuts down the board, then that's the cause.

 

stress -c 4 output is:

stress: info: [2841] dispatching hogs: 4cpu, 0 io, 0 vm, 0hdd

I stopped it after few minutes because it wasn't printing anything else. Or should i leave 10/15min?

 

PS: With Big Buck Bunny 1920x1080p60 offline (http://bbb3d.renderfarming.net/download.html) mpv works great. So looks like only fails with urls. For browser i switched to firefox.

Link to comment
Share on other sites

  • 0

Pssssst:

 

image.thumb.png.285280d58ff052c69597ddeb2ecb85d9.png

 

So, this has @Myy's work with the patchset that got dropped on the mailing list for vdec, I've gotten everything building properly (minus a wireless driver and we don't have 1.7 and 1.8 GHz opps)

 

I ran the media script ans installed everything.

 

I'm watching a 1080p mp4 at fullscreen, here is my armbianmonitor -m:

 

Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU  C.St.

05:41:25: 1608MHz  1.00  20%   3%  16%   0%   0%   0% 51.7°C  0/11
05:41:30: 1608MHz  0.92  20%   3%  17%   0%   0%   0% 50.4°C  0/11
05:41:35: 1608MHz  0.92  21%   3%  17%   0%   0%   0% 50.4°C  0/11
05:41:40: 1608MHz  0.93  19%   3%  15%   0%   0%   0% 51.2°C  0/11
05:41:45: 1608MHz  0.93  20%   3%  17%   0%   0%   0% 50.4°C  0/11
05:41:50: 1608MHz  0.94  21%   5%  16%   0%   0%   0% 51.7°C  0/11

http://ix.io/1zbd

 

As for functionality, gstreamer does not seem to want to work, so I would guess the vdec isn't operational yet, or something isn't quite right.  In any case, there is hope, perhaps.  ;-)

Link to comment
Share on other sites

  • 0

Be sure that ROCKCHIP_MPP is enabled in the kernel configuration. It's not automatically set up.
The driver is available in "Device Drivers -> Staging drivers -> Rockcihp MPP".

Generally you get some warning, like for the Realtek staging driver, telling you that the code isn't that great, etc...

Link to comment
Share on other sites

  • 0

I'm getting this:

 

[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/gpu/opengl] Failed to get EGL display.
[vo/gpu] Failed to setup EGL.
[vo/gpu] Failed initializing any suitable GPU context!
Error opening/initializing the selected video_out (--vo) device.
Video: no video

with the mpv-gbm.  with mpv (I assume it's still the Armbian default) it plays video smoothly, but is, like above, using 25% or so of the CPU to do it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...