Jump to content

Librecomputer Renegade RK3328


Igor

Recommended Posts

3 hours ago, JMCC said:

You can copy-paste this code into a root console, and it will give you a Qt5 player using the RK GStreamer plugin:


apt-get -y install qtgstreamer-plugins-qt5 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good gstreamer1.0-plugins-base libqt5opengl5 libqt5qml5 libqt5quick5 libqt5widgets5 libqt5gui5 libqt5core5a qml-module-qtquick2 libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediaquick-p5 qtmultimedia5-examples qtmultimedia5-doc-html
echo '#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Rockchip Gst Player
GenericName=Media Player
Comment=A gstreamer base player
Exec=env QT_GSTREAMER_WIDGET_VIDEOSINK=rkximagesink /usr/lib/arm-linux-gnueabihf/qt5/examples/multimediawidgets/player/player --geometry 960x640+0+0
Icon=/usr/share/icons/gnome/48x48/categories/applications-multimedia.png
Terminal=false
Categories=Qt;AudioVideo;Player;Video;
MimeType=application/ogg;application/x-ogg;application/mxf;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/vnd.dolby.heaac.1;audio/vnd.dolby.heaac.2;audio/aiff;audio/x-aiff;audio/m4a;audio/x-m4a;application/x-extension-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/mpeg2;audio/mpeg3;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/musepack;audio/x-musepack;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg2;video/x-mpeg3;video/mp4v-es;video/x-m4v;video/mp4;application/x-extension-mp4;video/divx;video/vnd.divx;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;audio/x-ms-asf;application/vnd.ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/avi;video/x-flic;video/fli;video/x-flc;video/flv;video/x-flv;video/x-theora;video/x-theora+ogg;video/x-matroska;video/mkv;audio/x-matroska;application/x-matroska;video/webm;audio/webm;audio/vorbis;audio/x-vorbis;audio/x-vorbis+ogg;video/x-ogm;video/x-ogm+ogg;application/x-ogm;application/x-ogm-audio;application/x-ogm-video;application/x-shorten;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;audio/eac3;audio/amr-wb;video/mp2t;audio/flac;audio/mp4;application/x-mpegurl;video/vnd.mpegurl;application/vnd.apple.mpegurl;audio/x-pn-au;video/3gp;video/3gpp;video/3gpp2;audio/3gpp;audio/3gpp2;video/dv;audio/dv;audio/opus;audio/vnd.dts;audio/vnd.dts.hd;audio/x-adpcm;application/x-cue;audio/m3u;
' > /usr/share/applications/demo-player.desktop

 

Well, i've seen this (oh, yeah, in your guide), but i guess my ./player did not worked because i forgot this "env QT_GSTREAMER_WIDGET_VIDEOSINK=rkximagesink" before executing it. Thank you once again

 

Update:

There is a problem with this shortcut, player execute, window opened, but it still shows error "unknown" (in window name). So i guess i need to found env QT_GSTREAMER_WIDGET_VIDEOSINK=rkximagesink for rk3328 and Armbian

 

Update 2:

Yep, it solved the way as using gstreamer. Add path to rkximagesink (since it's installed to /usr/local/lib/gstreamer-1.0) solves my problem with qt5 player

Edited by Dante4
Problem solved
Link to comment
Share on other sites

On 12/16/2018 at 2:38 AM, Dante4 said:

Now i can finally watch 1080p30fps10bits! Perfectly fine!

Can you share some details on the steps you followed, and which player you are using? It can be useful for a complete implementation into Armbian.

 

Thanks, and Merry Christmas.

Link to comment
Share on other sites

On 12/25/2018 at 11:45 PM, JMCC said:

Can you share some details on the steps you followed, and which player you are using? It can be useful for a complete implementation into Armbian.

 

Thanks, and Merry Christmas.

 

Yes, i will be happy to.


A very small guide how to use any gstreamer player with rk3328 (Thanks to @JMCC):

  1.  After installation switch to nightly builds (may be unnecessary).
  2. From now on or add sudo to each command or do 
    sudo su

     

  3.  Then 
    apt-get update && apt-get upgrade -y && apt-get install -y libqt5opengl5 libqt5qml5 libqt5quick5 libqt5widgets5 libqt5gui5 libqt5core5a qml-module-qtquick2 libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediaquick-p5 qtmultimedia5-examples qtmultimedia5-doc-html pkg-config gcc make git unzip wget xz-utils cmake devscripts equivs build-essential docutils-common mercurial cmake-curses-gui build-essential yasm mercurial cmake cmake-curses-gui build-essential gcc-arm-linux-gnueabi g++-arm-linux-gnueabi texinfo nasm automake pkg-config
  4.  Then install necessary components for gstreamer 

    apt-get install gstreamer1.0-tools qtgstreamer-plugins-qt5 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps glib-2.0 libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgtk2.0-dev libperl-dev

     

  5.  Now download libmali, mpp, gstreamer-rockchip and gstreamer-rockchip-extra from rockchip github

    mkdir build && cd build && git clone -b master https://github.com/rockchip-linux/libmali && git clone https://github.com/rockchip-linux/mpp && git clone -b master https://github.com/rockchip-linux/gstreamer-rockchip  && git clone https://github.com/rockchip-linux/gstreamer-rockchip-extra
  6. Now apply patch from libreelec github to drm_fourcc

    nano /usr/include/drm/drm_fourcc.h

    and insert this

    #define DRM_FORMAT_NV12_10      fourcc_code('N', 'A', '1', '2') /* 2x2 subsampled Cr:Cb plane */
    #define DRM_FORMAT_NV21_10      fourcc_code('N', 'A', '2', '1') /* 2x2 subsampled Cb:Cr plane */
    #define DRM_FORMAT_NV16_10      fourcc_code('N', 'A', '1', '6') /* 2x1 subsampled Cr:Cb plane */
    #define DRM_FORMAT_NV61_10      fourcc_code('N', 'A', '6', '1') /* 2x1 subsampled Cb:Cr plane */
    #define DRM_FORMAT_NV24_10      fourcc_code('N', 'A', '2', '4') /* non-subsampled Cr:Cb plane */
    #define DRM_FORMAT_NV42_10      fourcc_code('N', 'A', '4', '2') /* non-subsampled Cb:Cr plane */

    after line 138 which is

    #define DRM_FORMAT_NV42		fourcc_code('N', 'V', '4', '2') /* non-subsampled Cb:Cr plane */

    close and safe file

  7. (may be unnecessary) Since we already added all this type of DRM_FORMAT we could add them to gstreamer also. To do this, add to this files 

    gstreamer-rockchip/gst/rkximage/rkx_kmsutils.c
    gstreamer-rockchip-extra/gst/rkximage/rkx_kmsutils.c
    gstreamer-rockchip-extra/gst/kms/gstkmsutils.c

    after lines 65-66 (for gstreamer-rockchip) and 62-63 (for gstreamer-rockchip-extra) which are 

      /* FIXME should be renamed to P010_* */
      DEF_FMT (NV12_10, P010_10LE),

     this lines

      DEF_FMT (NV21_10, P010_10LE),
      DEF_FMT (NV21_10, P010_10LE),
      DEF_FMT (NV16_10, P010_10LE),
      DEF_FMT (NV61_10, P010_10LE),
      DEF_FMT (NV24_10, P010_10LE),
      DEF_FMT (NV42_10, P010_10LE),

     

  8. Now do (from directory "build")

    cd libmali && cmake CMakeLists.txt && make && make install && ldconfig && /
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib && LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/include && /
    cd ../mpp && cmake -DRKPLATFORM=ON -DHAVE_DRM=ON && make -j4 && make install && /
    cd ../gstreamer-rockchip && ./autogen.sh && make -j4 && make install && ldconfig && /
    cd ../gstreamer-rockchip-extra && ./autogen.sh && make clean && make -j4 && make install && ldconfig

     

  9. To check if everything is correct do 

    gst-inspect-1.0 --gst-plugin-path=/usr/local/lib/gstreamer-1.0 | grep mpp
    expected output
    rockchipmpp:  mppjpegdec: Rockchip's MPP JPEG image decoder
    rockchipmpp:  mppjpegenc: Rockchip Mpp JPEG Encoder
    rockchipmpp:  mpph264enc: Rockchip Mpp H264 Encoder
    rockchipmpp:  mppvideodec: Rockchip's MPP video decoder
    

    and

    gst-inspect-1.0 --gst-plugin-path=/usr/local/lib/gstreamer-1.0 rkximage

    expected output

    Plugin Details:
      Name                     rkximage
      Description              Rockchip X/DRM Video Sink
      Filename                 /usr/local/lib/gstreamer-1.0/libgstrkximage.so
      Version                  1.1.0
      License                  GPL
      Source module            gstreamer-rockchip-extra
      Binary package           GStreamer Plug-ins source release
      Origin URL               Unknown package origin
    
      rkximagesink: Video sink
    
      1 features:
      +-- 1 elements

     

  10. To start use gst-play-1.0 do this 

    gst-play-1.0 --gst-plugin-path=/usr/local/lib/gstreamer-1.0 --videosink=rkximagesink <path/to/videofile>

     

  11. To use QT5 example player you need to do this

    env GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0 QT_GSTREAMER_WIDGET_VIDEOSINK=rkximagesink /usr/lib/aarch64-linux-gnu/qt5/examples/multimediawidgets/player/player

      

I hope it helped!

P.S. Merry Christmas and Happy New Year

Edited by Dante4
Merry Xmas
Link to comment
Share on other sites

P.S. If someone wanna fast way to have mpv+ffmpeg this works on Renegade too (You need to add ayufan ppa) and do steps from "For older releases (< 0.6.25)".

P.S.S. Can someone explain, does this repo have some heavy modified mpv? ffmpeg for now with proper flags should be able to use HW even from official repo, libmali-rk-utgard-450-r7p0-gbm can be build from official repo too. But with just that i still get software decoding

 

Link to comment
Share on other sites

1 hour ago, Dante4 said:

P.S. If someone wanna fast way to have mpv+ffmpeg this works on Renegade too (You need to add ayufan ppa) and do steps from "For older releases (< 0.6.25)".

P.S.S. Can someone explain, does this repo have some heavy modified mpv? ffmpeg for now with proper flags should be able to use HW even from official repo, libmali-rk-utgard-450-r7p0-gbm can be build from official repo too. But with just that i still get software decoding

 

I'm not sure about ayufan's mpv version. I can tell you that I am working on a script for Armbian that has RKMPP enabled mpv. The proper way to start mpv with hardware decoding is like this:

LD_LIBRARY_PATH=/path/to/your/libmali-gbm mpv --hwdec=rkmpp --vo=gpu --gpu-api=opengl --gpu-context=drm "<filename.mkv>"

It works with my mpv, not sure about ayufan's

Link to comment
Share on other sites

15 hours ago, JMCC said:

I'm not sure about ayufan's mpv version. I can tell you that I am working on a script for Armbian that has RKMPP enabled mpv. The proper way to start mpv with hardware decoding is like this:


LD_LIBRARY_PATH=/path/to/your/libmali-gbm mpv --hwdec=rkmpp --vo=gpu --gpu-api=opengl --gpu-context=drm "<filename.mkv>"

It works with my mpv, not sure about ayufan's

Seems like i build libmali in wrong way (are there any other way to build it?) and i need to add some options, just cmake && make && make install doesn't allow me to get gbm installed.  And looking at output of mpv and google 

[autoconvert] can't find video conversion for drm_prime/unknown

Maybe I'm missing some files or links (just coping libmali-utgard-450-r7p0-gbm.so and creating links with name: libMali.so libgbm.so libgbm.so.1 and libgbm.so.1.0.0 to specific patch and then LD_LIBRARY_PATH to this folder doesn't seems to work). Maybe i need mpv from LongChair repo and not official one

 

Solution.

Yes i need to use LongChair repo. Now i'm interested can this be solved with just patch

Link to comment
Share on other sites

On 12/29/2018 at 5:51 AM, JMCC said:

You can have a look at my script when I release it. It includes info about the sources.

@JMCC I would very much be interested in the script you've mentioned,  do you have a n idea on the timeframe you are looking at for it's release? I have an roc-rk3328-cc device,  and believe I could benefit from your research and code,  as many others with this SBC. 

 

thank you both @JMCC and @Dante4, and others on this thread. it has been very informative! 

Link to comment
Share on other sites

On 1/5/2019 at 2:45 AM, xorro said:

@JMCC I would very much be interested in the script you've mentioned,  do you have a n idea on the timeframe you are looking at for it's release? I have an roc-rk3328-cc device,  and believe I could benefit from your research and code,  as many others with this SBC. 

 

thank you both @JMCC and @Dante4, and others on this thread. it has been very informative! 

Your pings a bit broken, not sure why...

As for his script, maybe you can ask about this in PM last information was this 

 

Link to comment
Share on other sites

FFmpeg+mpv

For a reason (which i don't know) mpv can't work in pseudo-gui-mode (it just crash desktop) and always opens fullscreen, maybe it can be fixed with custom x11 server, but that's already beyond my limited knowledge. So gstreamer can work in windowed and fullscreen. Mpv only fullscreen. That guide about how to build ffmpeg (with alot of stuff) and mpv to make it work with hw acceleration.

 

  1. Switch to night builds using armbian-config (sudo armbian-config --> Install --> Nightly)
  2. This "guide" contains a lot of sudo so it will be better to do sudo su before using it.
    sudo su

     

  3. Delete any mpv and ffmpeg you have in system
    apt-get remove mpv ffmpeg

     

  4. This will download necessary libs and FFmpeg with custom mpv (and mpv-build contains all necessary dependencies for usual mpv) that's made for rockchip

    mkdir build && \
    git clone -b master https://github.com/rockchip-linux/libmali && \
    git clone -b master https://github.com/FFmpeg/FFmpeg && \
    git clone -b master https://github.com/LongChair/mpv && \
    git clone -b master https://github.com/mpv-player/mpv-build

     

  5. Do 
    apt-get install autoconf automake build-essential cmake git-core libass-dev libfreetype6-dev libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev yasm libx264-dev libx265-dev libnuma-dev libvpx-dev libfdk-aac-dev libmp3lame-dev libopus-dev mc locate libghc-bzlib-dev libfdk-aac-dev fdkaac aac-enc libfdk-aac1 libass-dev libdrm2 libva-drm2 xterm
    
    cd ./mpv-build && mk-build-deps -s -i && apt-get install -f -y && cd ../

     

  6. Patch drm_fourcc.h with this (just in case, this lines to add 10bit video, i will test later does they affect ffmpeg)
    find /usr/include/drm -name drm_fourcc.h -exec sed -i "143 i #define DRM_FORMAT_NV12_10\      fourcc_code('N', 'A', '1', '2') /* 2x2 subsampled Cr:Cb plane */\n#define DRM_FORMAT_NV21_10      fourcc_code('N', 'A', '2', '1') /* 2x2 subsampled Cb:Cr plane */\n#define DRM_FORMAT_NV16_10      fourcc_code('N', 'A', '1', '6') /* 2x1 subsampled Cr:Cb plane */\n#define DRM_FORMAT_NV61_10      fourcc_code('N', 'A', '6', '1') /* 2x1 subsampled Cb:Cr plane */\n#define DRM_FORMAT_NV24_10      fourcc_code('N', 'A', '2', '4') /* non-subsampled Cr:Cb plane */\n#define DRM_FORMAT_NV42_10      fourcc_code('N', 'A', '4', '2') /* non-subsampled Cb:Cr plane */" {} +
    
    find /usr/include/libdrm -name drm_fourcc.h -exec sed -i "143 i #define DRM_FORMAT_NV12_10\      fourcc_code('N', 'A', '1', '2') /* 2x2 subsampled Cr:Cb plane */\n#define DRM_FORMAT_NV21_10      fourcc_code('N', 'A', '2', '1') /* 2x2 subsampled Cb:Cr plane */\n#define DRM_FORMAT_NV16_10      fourcc_code('N', 'A', '1', '6') /* 2x1 subsampled Cr:Cb plane */\n#define DRM_FORMAT_NV61_10      fourcc_code('N', 'A', '6', '1') /* 2x1 subsampled Cb:Cr plane */\n#define DRM_FORMAT_NV24_10      fourcc_code('N', 'A', '2', '4') /* non-subsampled Cr:Cb plane */\n#define DRM_FORMAT_NV42_10      fourcc_code('N', 'A', '4', '2') /* non-subsampled Cb:Cr plane */" {} +

     

  7.  

    Now we need to build this all. To do this do

    cd libmali && cmake CMakeLists.txt && make -j4 && make install && ldconfig && \
    cd ../FFmpeg && \
    ./configure \
    --cpu="cortex-a53" \
    --arch="aarch64" \
    --extra-libs="-Lpthread -Lm"\
    --extra-cflags="-I\home\dante4\video\include" \
    --extra-ldflags="-L\home\dante4\video\lib" \
    --disable-debug \
    --enable-libaom \
    --enable-stripping \
    --enable-gpl \
    --enable-nonfree \
    --enable-logging \
    --disable-doc \
    --enable-pic \
    --enable-optimizations \
    --enable-ffmpeg \
    --enable-avdevice \
    --enable-avcodec \
    --enable-avformat \
    --enable-swscale \
    --enable-postproc \
    --enable-avfilter \
    --disable-devices \
    --enable-pthreads \
    --disable-w32threads \
    --enable-network \
    --disable-gnutls \
    --disable-gray \
    --enable-swscale-alpha \
    --disable-small \
    --enable-dct \
    --enable-fft \
    --enable-mdct \
    --enable-rdft \
    --disable-crystalhd \
    --disable-vaapi \
    --disable-vdpau \
    --enable-rkmpp \
    --enable-libdrm \
    --enable-version3 \
    --enable-runtime-cpudetect \
    --enable-hardcoded-tables \
    --enable-encoder=ac3 \
    --enable-encoder=aac \
    --enable-encoder=wmav2 \
    --enable-encoder=mjpe \
    --enable-encoder=png \
    --enable-hwaccels \
    --enable-muxer=spdif \
    --enable-muxer=adts \
    --enable-muxer=asf \
    --enable-muxer=ipod \
    --enable-muxer=mpegts \
    --enable-demuxers \
    --enable-parsers \
    --enable-bsfs \
    --enable-filters \
    --enable-bzlib \
    --enable-libspeex \
    --enable-libx264 \
    --enable-libx265 \
    --enable-zlib \
    --enable-asm \
    --enable-neon \
    --enable-libass \
    --enable-libfdk-aac \
    --enable-libfreetype \
    --enable-libmp3lame \
    --enable-libopus \
    --enable-libvorbis \
    --enable-libvpx 
    make -j4 && make install && ldconfig && \ 
    cd ../mpv && wget -q --show-progress --no-use-server-timestamps http://www.freehackers.org/~tnagy/release/waf-2.0.13 && \
    mv waf-* waf && \
    chmod u+x waf && \
    ./waf configure && \
    ./waf build -j4 && ./waf install && ldconfig

     

  8. Now copy necessary libs for mpv with this command 

    cd ../ && cp libmali/lib/aarch64-linux-gnu/libmali-utgard-450-r7p0-gbm.so /usr/lib/aarch64-linux-gnu/gbm/libmali-utgard-450-r7p0-gbm.so && \ 
    ln -sf /usr/lib/aarch64-linux-gnu/gbm/libmali-utgard-450-r7p0-gbm.so /usr/lib/aarch64-linux-gnu/gbm/libMali.so && \
    ln -sf /usr/lib/aarch64-linux-gnu/gbm/libmali-utgard-450-r7p0-gbm.so /usr/lib/aarch64-linux-gnu/gbm/libgbm.so && \
    ln -sf /usr/lib/aarch64-linux-gnu/gbm/libmali-utgard-450-r7p0-gbm.so /usr/lib/aarch64-linux-gnu/gbm/libgbm.so.1 && \
    ln -sf /usr/lib/aarch64-linux-gnu/gbm/libmali-utgard-450-r7p0-gbm.so /usr/lib/aarch64-linux-gnu/gbm/libgbm.so.1.0.0

     

  9. To start mpv you need command 

    LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/gbm sudo mpv --hwdec=rkmpp --vo=gpu --gpu-api=opengl --gpu-context=drm <videofile>

     

  10. To use mpv with shortcut you need to add mpv to sudo list with this commands 

    sudo visudo
    
    At the end of file add this lines, where USERNAME is your username
    
    USERNAME ALL=(ALL) NOPASSWD: /usr/local/bin/mpv
    USERNAME ALL=(ALL) NOPASSWD: /usr/local/etc/mpv
    
    then click ctrl+x and press y
    
    

     

  11. Now to create shortcut do this

    echo "[Desktop Entry]
    Type=Application
    Name=MPV
    Icon=mpv
    Exec=env LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/gbm sudo mpv --hwdec=rkmpp --vo=gpu --gpu-api=opengl --gpu-context=drm -- %f
    Icon=/usr/share/icons/gnome/48x48/categories/applications-multimedia.png
    Terminal=true
    Categories=Qt;AudioVideo;Player;Video;
    MimeType=application/ogg;application/x-ogg;application/mxf;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/vnd.dolby.heaac.1;audio/vnd.dolby.heaac.2;audio/aiff;audio/x-aiff;audio/m4a;audio/x-m4a;application/x-extension-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/mpeg2;audio/mpeg3;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/musepack;audio/x-musepack;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg2;video/x-mpeg3;video/mp4v-es;video/x-m4v;video/mp4;application/x-extension-mp4;video/divx;video/vnd.divx;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;audio/x-ms-asf;application/vnd.ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/avi;video/x-flic;video/fli;video/x-flc;video/flv;video/x-flv;video/x-theora;video/x-theora+ogg;video/x-matroska;video/mkv;audio/x-matroska;application/x-matroska;video/webm;audio/webm;audio/vorbis;audio/x-vorbis;audio/x-vorbis+ogg;video/x-ogm;video/x-ogm+ogg;application/x-ogm;application/x-ogm-audio;application/x-ogm-video;application/x-shorten;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;audio/eac3;audio/amr-wb;video/mp2t;audio/flac;audio/mp4;application/x-mpegurl;video/vnd.mpegurl;application/vnd.apple.mpegurl;audio/x-pn-au;video/3gp;video/3gpp;video/3gpp2;audio/3gpp;audio/3gpp2;video/dv;audio/dv;audio/opus;audio/vnd.dts;audio/vnd.dts.hd;audio/x-adpcm;application/x-cue;audio/m3u;" > /usr/share/applications/demo-player.desktop
     

     

Link to comment
Share on other sites

22 minutes ago, Dante4 said:

So gstreamer can work in windowed and fullscreen. Mpv only fullscreen

Correct, there is no way to use windowed accelerated mpv. Gstreamer uses a hack to simulate X11 windowed playing.

Link to comment
Share on other sites

4 hours ago, JMCC said:

Correct, there is no way to use windowed accelerated mpv. Gstreamer uses a hack to simulate X11 windowed playing.

 

Thank you, that's interesting! That's interesting information. So that's why gstreamer is on 0 layers always. Is it possible to do something like this to get HW acceleration in browser?

Link to comment
Share on other sites

 

On 1/7/2019 at 4:42 AM, Dante4 said:

@xorro, not as automated as script, but to be fair, what i wrote is mostly automated, except adding mpv to sudo for it to be able to start with root access

 

@Dante4, glorious. seriously, thank u for the in-depth walkthrough, I hope to give this a go this weekend. 

 

On 1/7/2019 at 3:57 AM, JMCC said:

Be patient, guys, it's coming… ;)

 

@JMCC, gracias. "Patience is bitter, but its fruit is sweet"

Link to comment
Share on other sites

On 12/8/2017 at 8:23 AM, Igor said:

WIP

1.jpg

https://libre.computer/products/boards/roc-rk3328-cc/

 

Pro: 
- yet another RK3328

 

Cons:

- micro USB powering

Hello, Do you know whether this board really support eMMC5.x, or it just has that interface but can only reach the speed of eMMC4.x. Have you test the speed of writing to eMMC with this board. Thank you. 

Link to comment
Share on other sites

Easiest way is to boot Armbian SD card and flash armbian to emmc from the board itself, honestly (It will show up as /dev/mmcblk0 - the one with the boot0 and boot1 sections)

Librecomputer doesn't provide an easy external way to access the emmc. (Like SD adapter or something)

 

I have noticed something very useful.

If your u-boot supports it you can use ums command to get Renegade to act like a usb stick and access the emmc.

But if you're asking how to flash, you'll probably be ok with the first option

Link to comment
Share on other sites

20 minutes ago, cibolajerry said:

Please, can anyone explain to me how to flash Armbian to Libre Renegade emmc. It seems I've bought an unsupported by anyone computer. I at least have Armbian renegade current running off microsd.

Did you try the standard Armbian method to install to emmc?

Just type in the terminal

sudo armbian-config

Navigate through the menu to "System > Install"

Link to comment
Share on other sites

Also notice that if you install Debian Buster + Legacy kernel, you can get 4k video play + X11 GPU acceleration + Kodi 18.9 with full acceleration, by typing

sudo 

sudo apt install media-buster-legacy-rk3328 --install-recommends

 

Link to comment
Share on other sites

On 12/4/2020 at 3:08 AM, cibolajerry said:

Please, can anyone explain to me how to flash Armbian to Libre Renegade emmc. It seems I've bought an unsupported by anyone computer. I at least have Armbian renegade current running off microsd.

So, as you probably figured out, I'm new to armbian. Your information was helpful. I couldn't get the legacy version to boot; I did check the SHA sum on the download was valid. I did get current to boot and was successful at flashing it to emmc. Very good. I loaded LXQT. I have 2 problems:

  1) USB flashdrives do not show up on device notifier

  2) No sound on video playnack, I assume all audio via HDMI is out.

As I see it my options are:

  A) retry and reflash legacy

  B) try to fix my current (current) setup - I'd like this if it isn't crazy

  C) armbian-config had option to switch to other kernel. It had disclaimer warnings and a number of kernels to select from, which one will work, work best? Will I need to fix the same problem on that?

What do you all think is the easiest path for me?

I would like to thank you all again; I was very pleased to get the renegade to run off the emmc.

Link to comment
Share on other sites

4 hours ago, cibolajerry said:

What do you all think is the easiest path for me?

You can try to flash legacy directly to emmc. This method should work:

  1. Boot your board from a SD card with current.
  2. Login as root, typing `sudo -i`
  3. Flash legacy on emmc with this one-liner:
    wget https://redirect.armbian.com/renegade/Buster_legacy -O - | xzcat | dd of=/dev/mmcblk0 bs=1M
  4. You should be able to boot now from legacy on emmc. If you want to install desktop, you can do this:
    sudo apt update && sudo apt install armbian-buster-desktop media-buster-legacy-rk3328 --install-recommends

     

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

Now, I'm going to ask a favor from you. Please describe the exact problem you were having when trying to boot legacy from SD card. I was also unable to do it, but I thought it was a failure on my board. Your testing can help us to fix a potential problem. Thanks.

Link to comment
Share on other sites

On 12/11/2020 at 6:16 AM, JMCC said:

You can try to flash legacy directly to emmc. This method should work:

  1. Boot your board from a SD card with current.
  2. Login as root, typing `sudo -i`
  3. Flash legacy on emmc with this one-liner:
    
    wget https://redirect.armbian.com/renegade/Buster_legacy -O - | xzcat | dd of=/dev/mmcblk0 bs=1M
  4. You should be able to boot now from legacy on emmc. If you want to install desktop, you can do this:
    
    sudo apt update && sudo apt install armbian-buster-desktop media-buster-legacy-rk3328 --install-recommends

     

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

Now, I'm going to ask a favor from you. Please describe the exact problem you were having when trying to boot legacy from SD card. I was also unable to do it, but I thought it was a failure on my board. Your testing can help us to fix a potential problem. Thanks.

 

Link to comment
Share on other sites

Thanks for your last advice. I have not tried it yet but will. On booting legacy off sd card:

 after pulling emmc and flashing sdcard with legacy.  and verifying sdcard by reading back and also doing sha256sum on download , I tried several times by repeating whole thing three or four times, The renegade does nothing to be seen except red and green LEDs, near power-in usb port, turn on and remain lit. waited for boot for minutes each time

Link to comment
Share on other sites

On 12/11/2020 at 6:16 AM, JMCC said:

You can try to flash legacy directly to emmc. This method should work:

  1. Boot your board from a SD card with current.
  2. Login as root, typing `sudo -i`
  3. Flash legacy on emmc with this one-liner:
    
    wget https://redirect.armbian.com/renegade/Buster_legacy -O - | xzcat | dd of=/dev/mmcblk0 bs=1M
  4. You should be able to boot now from legacy on emmc. If you want to install desktop, you can do this:
    
    sudo apt update && sudo apt install armbian-buster-desktop media-buster-legacy-rk3328 --install-recommends

     

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

Now, I'm going to ask a favor from you. Please describe the exact problem you were having when trying to boot legacy from SD card. I was also unable to do it, but I thought it was a failure on my board. Your testing can help us to fix a potential problem. Thanks.

So I tried the one liner, it's not booting either, Now I'm going to try to reflash with current image.

Link to comment
Share on other sites

On 12/11/2020 at 6:16 AM, JMCC said:

You can try to flash legacy directly to emmc. This method should work:

  1. Boot your board from a SD card with current.
  2. Login as root, typing `sudo -i`
  3. Flash legacy on emmc with this one-liner:
    
    wget https://redirect.armbian.com/renegade/Buster_legacy -O - | xzcat | dd of=/dev/mmcblk0 bs=1M
  4. You should be able to boot now from legacy on emmc. If you want to install desktop, you can do this:
    
    sudo apt update && sudo apt install armbian-buster-desktop media-buster-legacy-rk3328 --install-recommends

     

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

Now, I'm going to ask a favor from you. Please describe the exact problem you were having when trying to boot legacy from SD card. I was also unable to do it, but I thought it was a failure on my board. Your testing can help us to fix a potential problem. Thanks.

Shoot I failed. I did your one liner booting from emmc. I'll try the one liner again.

Link to comment
Share on other sites

On 12/11/2020 at 6:16 AM, JMCC said:

You can try to flash legacy directly to emmc. This method should work:

  1. Boot your board from a SD card with current.
  2. Login as root, typing `sudo -i`
  3. Flash legacy on emmc with this one-liner:
    
    wget https://redirect.armbian.com/renegade/Buster_legacy -O - | xzcat | dd of=/dev/mmcblk0 bs=1M
  4. You should be able to boot now from legacy on emmc. If you want to install desktop, you can do this:
    
    sudo apt update && sudo apt install armbian-buster-desktop media-buster-legacy-rk3328 --install-recommends

     

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

Now, I'm going to ask a favor from you. Please describe the exact problem you were having when trying to boot legacy from SD card. I was also unable to do it, but I thought it was a failure on my board. Your testing can help us to fix a potential problem. Thanks.

So to remind, I'm trying to  reflash the emmc with legacy, it currently boots properly to current. If i pull emmc i can boot to current on sdcard. After booting and plugging in emmc while running and trying out your one liner I get a " error writing to '/dev/mmcblk0': No space left on device". On looking at /dev/disk, mmcblk1 is only drive showing. Do you have any idea hot to proceed?

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
Reply to this topic...

×   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...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines