JMCC

Members
  • Content Count

    523
  • Joined

  • Last visited


Reputation Activity

  1. Like
    JMCC got a reaction from Shades_aus in RK3328 Media Script (Rock64, Renegade)   
    And, for last,  the first version of:
    The UN-official, UN-supported, UN-expected
    RK3328 MEDIA TESTING SCRIPT
     
    This is the first release of the RK3328 media testing script. The script provides a functionality similar to its RK3288/3399 equivalents, except for the OpenCL related stuff, which is not supported by the SoC. So it includes:
    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 2.0 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. 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:
     
     
     
    >>> DOWNLOAD LINK <<<
     
    Prerequisites:
    You need a fresh Armbian Bionic desktop image with default kernel installed. 
     
    Instructions:
    Download the file above Untar it: tar xvf media-rk3328_*.txz cd media-script ./media-rk3328.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!
  2. Like
    JMCC got a reaction from NicoD in How to get Chromium HW acceleration on a Rock64 2GB?   
    Just try with the default options: click "Accept", "Yes" or "OK" every time, and let it run.
  3. Like
    JMCC got a reaction from Myy in The VPU driver   
    Correct me if I'm wrong, but I understand that the new V4L2 driver only supports HW decoding, not encoding, right?
     
    In that case, IMO the usefulness of an standalone FFmpeg is very limited.  What I mean is that you won't get a noticeable benefit in transcoding with FFmpeg if you only accelerate the decoding. Not to mention possible colorspace conversion limitations etc (I think I bumped into some of those with the "old" RKMPP FFmpeg implementation).
     
    On the other hand, I see the real usefulness of that when FFmpeg is used as part of media players such as MPV or Kodi. And, in those cases, I always found it easier and more efficient to compile its own version of FFmpeg with the app, than link it against the system libs.
     
    So my opinion is that it is better to leave alone the system FFmpeg debs,  and compile the new version on a separate directory; that way it will not break other FFmpeg-dependent apps, such as video editors etc.. And let the media players use their own FFmpeg (after all that is what they normally recommend in their compilation instructions), and apply the patch there when necessary.
  4. Like
    JMCC reacted to Myy in The VPU driver   
    VPU patches re-ordered, remade and tested against 5.1 release kernel, with the usual patches combined.
     
    I retested the H264 driver with a slight fix and it's better, but there's still a few blocks not placed correctly here and there.
    This might be resolved this month, though.
     
    Anyway, it's MPEG-2 decoding only for the moment.
     
    Note to @TonyMac32, if you want to import these patches, the actual kernel patch list I'm using is there : https://github.com/Miouyouyou/RockMyy/blob/master/GetPatchAndCompileKernel.sh#L57
     
     
    Now, what remains is FFmpeg.
    I don't remember if Ubuntu is still using libav, or went back to FFmpeg. I remember that the projects forked for some weird reasons and Debian went with libav...
    So, basically, do I create a package, or just a tarball with the libraries. With just the tarball, you'll have to extract them somewhere and run LD_LIBRARY_PATH=/path/to/ffmpeg/libs to use them with mpv and such.
    With the Debian package, you get the advantages (automatic dependencies handling) along with all the troubles (packages conflicts).
     
    I still have to test bootlin libva too, since it seems to go well with VLC.
  5. Like
    JMCC reacted to Myy in The VPU driver   
    Here's a first draft of the patches I pulled from bbrezillon tree : https://github.com/Miouyouyou/RockMyy/tree/SplittingPatchesForVPU/patches/kernel/v5.1/VPU
    These are applied against mainline v5.1-rc5 kernels, and have been tested with Kwiboo's FFMPEG and a standard MPV.
     
    I'll try to test them, and adapt them, against v5.1 releases tomorrow. Then I'll re-arrange them and do a release of RockMyy.
     
    I'll then generate a FFmpeg package with Kwiboo's patch, using Kwiboo's tree, since bbrezillon's one doesn't integrate udev /dev/video node detection.
     
    And *then* I'll give the whole thing to test to @TonyMac32, who loves testing random VPU patches for Tinkerboards.
  6. Like
    JMCC reacted to NicoD in Remote Desktop with X11VNC   
    Hi all.
    I've made a new video about x11vnc. With this you can control your Linux desktop from any other PC/SBC.
    It even works for videos and games. Only there's no sound.
    Here's my video,
     
    To Install
    sudo apt install x11vnc To create a password file
     
    x11vnc -storepasswd The service script : /lib/systemd/system/x11vnc.service
    [Unit] Description="x11vnc" Requires=display-manager.service After=lightdm.service [Service] ExecStart=/usr/bin/x11vnc -auth guess -loop -forever -safer -shared -ultrafilexfer -bg -o /var/log/x11vnc.log ExecStop=/usr/bin/killall x11vnc [Install] WantedBy=multi-user.target Enable the service script
     
    sudo systemctl daemon-reload sudo systemctl enable x11vnc sudo systemctl start x11vnc  
    greetings. NicoD
  7. Like
    JMCC got a reaction from lanefu in Le Potato / C2 / K2 4.19 LTS testing thread   
    BTW, seems like the Lima driver has been accepted for 5.2. Looking forward to seeing it released 
  8. Like
    JMCC got a reaction from TonyMac32 in Le Potato / C2 / K2 4.19 LTS testing thread   
    BTW, seems like the Lima driver has been accepted for 5.2. Looking forward to seeing it released 
  9. Like
    JMCC reacted to windysea in Reset board immediatly!!   
    Beware that 'b' will literally trigger an immediate reboot without even attempting to sync the disks.  That is possible, and even likely in some cases, to cause corruption.  For the OP case this would not be an issue since it looks like the root filesystem is already trashed, though perhaps there may have been others?
     
    A sync may be triggered similarly, however, just before the reboot:
    root@host# echo s > /proc/sysirq-trigger root@host# echo b > /proc/sysirq-trigger  
    The 's' can also be handy when /bin/sync is also missing, to help prevent corruption on additional filesystems that may be mounted when faced with forced poweroff/reboot.
     
    For the OP:  If your disk is already overwritten then simply removing and re-applying power should not be an issue, unless you don't have physical access.
     
    If /bin/systemctl exists (it sounds like it may not here), you can try 'systemctl reboot --force'.   That is the "modern" systemd replacement for 'reboot -f'
     
    Otherwise the step noted above using /proc/sysirq-trigger would be the next option, followed by just pulling the power.
     
     
  10. Like
    JMCC got a reaction from NicoD in RK3399 Game Playing, What games work, Assaultcube, Torc etc   
    The output now shows that gl4es wrapper and mali drivers are being used. Now, since it is just a wrapper, it's possible that some functions are not implemented, or do not exist at all in the GLES 2 API.
     
    Another option to play that game could be using this fork for GLES: https://github.com/meveric/extremetuxracer
  11. Like
    JMCC got a reaction from manuti in Can I use H5 sbc Armbian play openGL games like 0.A.D   
    As in so many other cases, the board I'd recommend for this task is Odroid XU4, specially since it is selling for $50 right now. You already have fully working GPU drivers for a recent 4.14 kernel, and even a distro focused on gaming (see this video from @NicoD)
  12. Like
    JMCC reacted to qblueRed42 in Tablet suggestions   
    pine64 are working on a tablet based on the orignal pine 64 board.
     
    you may want to look at some of the chromeOS tablets.
     
     
  13. Like
    JMCC got a reaction from qblueRed42 in Can I use H5 sbc Armbian play openGL games like 0.A.D   
    As a matter of fact, OpenGL 1.3 can be emulated through GL4ES from any GLES2 compliant board, but even if the current state of the Lima drivers were good enough for that to work , performance in a Mali 450 would be rubbish.
  14. Like
    JMCC got a reaction from qblueRed42 in Can I use H5 sbc Armbian play openGL games like 0.A.D   
    As in so many other cases, the board I'd recommend for this task is Odroid XU4, specially since it is selling for $50 right now. You already have fully working GPU drivers for a recent 4.14 kernel, and even a distro focused on gaming (see this video from @NicoD)
  15. Like
    JMCC got a reaction from qblueRed42 in Tablet suggestions   
    There are currently no tablets supported by Armbian, so don't expect any to work out-of-the-box. If you are up to tinkering with things such as u-boot, wifi drivers, etc., in order to make it work yourself, then just look for some tablet with a SoC supported by Armbian, or with WIP images (RK3288 or RK3399 come to my mind as possible candidates).
  16. Like
    JMCC got a reaction from manuti in [Development] RK3399 media script   
    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:
     
    >>> DOWNLOAD LINK <<<
     
    Prerequisites:
    You need a fresh Armbian Bionic desktop image with default kernel installed. IMPORTANT NOTE: For Kodi to work, you need to use a nightly kernel for most RK3399 boards. Otherwise, it will crash the system. I'm not sure about RockPro64, it will probably work with the stable image. Please test and let me know, I don't have the board.  
    Instructions:
    Download the file above Untar it: tar xvf media-rk3399_*.txz cd media-script ./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!
  17. Like
    JMCC got a reaction from qblueRed42 in [Development] RK3399 media script   
    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:
     
    >>> DOWNLOAD LINK <<<
     
    Prerequisites:
    You need a fresh Armbian Bionic desktop image with default kernel installed. IMPORTANT NOTE: For Kodi to work, you need to use a nightly kernel for most RK3399 boards. Otherwise, it will crash the system. I'm not sure about RockPro64, it will probably work with the stable image. Please test and let me know, I don't have the board.  
    Instructions:
    Download the file above Untar it: tar xvf media-rk3399_*.txz cd media-script ./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!
  18. Like
    JMCC got a reaction from gounthar in Which boards to get a VPN server and a VPN client?   
    I am getting excellent results with an Odroid HC1. I use it as an OpenVPN server at home, and with my laptop as roadwarrior I get about 80-90 Mbps over my 100 Mbps connection. And also, since now it is on sale, you can get a HC1/MC1 Solo/XU4Q for about $50 at Ameridroid.
     
    Other than that, anything with crypto extensions and good single-thread performance would do good, like some RK3399 for example (though it will be more expensive). Avoid boards with many slow cores but no big ones, since OpenVPN is single-threaded.
  19. Like
    JMCC got a reaction from cassiov in [Development] RK3399 media script   
    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:
     
    >>> DOWNLOAD LINK <<<
     
    Prerequisites:
    You need a fresh Armbian Bionic desktop image with default kernel installed. IMPORTANT NOTE: For Kodi to work, you need to use a nightly kernel for most RK3399 boards. Otherwise, it will crash the system. I'm not sure about RockPro64, it will probably work with the stable image. Please test and let me know, I don't have the board.  
    Instructions:
    Download the file above Untar it: tar xvf media-rk3399_*.txz cd media-script ./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!
  20. Like
    JMCC reacted to Myy in RK3288 Media Script (TinkerBoard)   
    I need to understand what V4L2 changes are made between the branch used in the "Rockchip-linux" talk (it seems to be mmind one, but I'm not entirely sure). Then, I could try Ayaka and Kwiboo patches again.
  21. Like
    JMCC reacted to TonyMac32 in Asus Tinkerboard   
    Cleaned up the default kernel patches, clock frequencies for additional video modes, also /proc/board_info exists again (can tell if Tinker or S, might be used by some ASUS software)
     
    Also if you build a dev image you have a working kernel 5.1
     
  22. Like
    JMCC reacted to Shades_aus in RK3328 Media Script (Rock64, Renegade)   
    Just to recap for those that don't want to watch the video, here are my findings.
    Using board - Rockchip 3328 4GB DD4 Renegade (ROC-RK3328-CM) by FireFly.
    OS - Armbian_5.75_Renegade_Debian_stretch_default_4.4.174_desktop.7z
    https://dl.armbian.com/renegade/Ubuntu_bionic_default_desktop.7z
     
    Steps taken:
    - Install default Armbian image as seen above.
    - Download and extract JMCC's media Enhancement script ready for installation.
    - Update Armbian 5.75 image with apt-get update and sudo apt-get upgrade
    - Re-Ran media-script and firstly, only selected System and installed Glamor.
    - Re-ran media-script again, selected ALL applications except System (because I did it in previous step)
    - reboot the device
    Results:
    - Icon corruption has now been fixed. The desktop is still nice and snappy. (Compositing is ON)
    - MVP player now plays 1080p sample video with CPU to spare. (acceleration seems to be working)
    - MVP works well in window resized mode or full screen. Both seem fine with CPU to spare!
    *- MVP 4k video is still not working properly in either Windowed or Full screen.
    - Chromium seems smoother in 720p mode, still a bit flakey, however, instead of crashing a refresh can be done. (CPU usage too high.)
    - Chromium is no good in 1080p or above in full screen or windowed. (CPU usage is too high, HW acceleration must be not working.)
  23. Like
    JMCC got a reaction from NicoD in RK3328 Media Script (Rock64, Renegade)   
    Cool one! It is the first time I see myself quoted on a YouTube video LOL. Good job.
  24. Like
    JMCC reacted to NicoD in RK3328 Media Script (Rock64, Renegade)   
    @JMCC The video is ready.
    I don't think it will get too many views. But it can help other frustrated users
    Thanks for the help.
     
  25. Like
    JMCC reacted to NicoD in RK3328 Media Script (Rock64, Renegade)   
    @JMCC Progress.
    I downloaded the image again. I downloaded the script again, I used another 4A PSU, an SD-card instead of eMMC, another wifi dongle. But still the same. After I installed the script, I reboot, open Chromium and play a video. After 2 minutes hard crash and the system reboots.

    Then I noticed the only thing I didn't change was my usb hub. I can't use my wifi dongles when they're plugged into the Rock64(can't find my network, but it finds all the others(also weird)), but they work external plugged in a usb hub. So I switched the hub for an extension usb-chord.
    I haven't had any crash since then. +3 hours now. I can't hardly believe this usb hub is the cause, and why that one kernel doesn't have the reboot with that hub. The hub does have a problem, when the Rock64 reboots, it doesn't turn on the usb devices at boot. So I had to replug them every time.
    Now I don't have this with the extension cable.

    I do still sometimes have the "aw snap". But not much. Mostly when it's on 1080p. 720p 30 is perfect(Youtube), 720p 60fps also doesn't work well. Some 1080p works perfect, most doesn't.
    I'll keep testing to see what happens. It's looking good now. The few "aw snap"'s are acceptable. I've watched multiple videos now.

    If anyone could try this script on his rock64 and see how Youtube plays in 1080p with Chromium/Firefox, that would be awesome.

    Sorry for the hassle. I hope it's ok now. The video is comming in a couple of days now. Thank you. Cheers.