Dante4

  • Posts

    40
  • Joined

  • Last visited

Everything posted by Dante4

  1. Khm. Thank you and sorry for being blind.
  2. Problem: No usb power on all ports except for OTG port on Rock Pi 4C. Images: Ubuntu Bionic Legacy Desktop, Ubuntu Focal Legacy, Ubuntu Focal Current Desktop Monitoring information: Ubuntu Bionic Legacy Desktop - http://ix.io/2wlL Ubuntu Focal Current Desktop: http://ix.io/2wlZ
  3. If screen is fine with 5V as Power source - you will be fine in terms of power. But you will need to look does Ubuntu have drivers to send video signal over USB (short answer - most likely no, since GPU is not connected to USB as far as i remember and you will get heavy lags on screen that will go thought USB since it will render itself via CPU, which is not great for this job at all)
  4. Yes, i understand that much, just to clarify from where mitag got idea of this behavior
  5. On armbian there is problem with HDMI. That what i have in terminal (kinda hard to see on video, but symbols tremble a bit) P.S. Also default Radxa image have other boot priority. I.e. microsd is the first one to boot.
  6. Dante4

    NanoPI M4

    Can someone post result (if possible with logs) of glmark2-es2 And glmark2-es2 --off-screen ? Please
  7. The problem is - i don't get 60fps (or 30, or anything that could possible be my screen update rate). Logs says that everything is on, but benchmark shows otherwise. I get around 40 fps for most tests. And for off-screen it shouldn't even matter, but NanoPi T4 gets ~500 score (at least that what i was told) and 59-60 fps in normal test (from screenshot on Friendlyelec wiki). So, i'm getting lost and starting to think that maybe i did something wrong. That's why i need to see results of other rk3399 boards
  8. Please, can someone run glmark2-es2 and glmark2-es2 --off-screen and post logs? Because I'm somewhat feel insanity right now. I have glamor initialized, i have GPU detected, but results just too low
  9. libGL error happens because application require OpenGL that Mali don't have. It have nothing to do with gbm. To fix it you need to do LD_LIBRARY_PATH=/opt/gl4es <application>
  10. That what i'm thinking about, but before i need to read how to do it
  11. Wanna add about ubuntu-server that was minimized to xfce4 with minimize && apt-get install xfve4 xfce4-goodies, startx used from sudo su. Under this conditions i installed all *.deb from libraries + xserver + kodi + did all changes that was inside .sh script (i.e. edit file inside xorg.init.d) with command dpkg --unpack *.deb (yes, in right folders) and apt-get install -f -y. After this, Chromium and es2gears see Mali driver, but...Chromium (with h264ify) can't play 1080p60fps (which he can with pure software) (Chromium 32bit fails here too) and after I use command kodi-gbm-wrapper and click enter I may not move mouse or click keyboard for a bit and then everything back to normal, but Kodi still doesn't start up. gl4es working, i.e. vcmi (heroes 3) is working with it, but performance is the same as for software, maybe a little bit better
  12. 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
  13. ??? I wasn't asking about Debian at all in my post. Only about ubuntu bionic (server edition).
  14. 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?
  15. Isn't it possible to build desktop link that will open terminal? With this it should have mouse support?
  16. Thanks @chwe for your posts! Well. Official Armbian not really ready yet and Radxa Armbian is Debian Stretch, but thanks for it, that's really helpful for just user
  17. That i can do for sure for renegade-default (if i understand correctly it's my roc-cc aka Renegade) I do agree with this, but i know difference between "let google this and this" and "google what the hell is this?" right now i'm more about 2nd. But wanna to become closer to first. Thanks for your advice , since I do have alot of spare-time for now i will dive in. (would prefer to not fry anything... -_-'''')
  18. yeah...that require to understanding what you need to find without google all the time.
  19. Anything just user (as is no creating drivers experience) can help with? Or second thought, let me rephrase question. What kind of skills may be useful at this and next steps?
  20. 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?
  21. @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
  22. 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. Switch to night builds using armbian-config (sudo armbian-config --> Install --> Nightly) This "guide" contains a lot of sudo so it will be better to do sudo su before using it. sudo su Delete any mpv and ffmpeg you have in system apt-get remove mpv ffmpeg 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 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 ../ 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 */" {} + 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 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 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> 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 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
  23. Your pings a bit broken, not sure why... As for his script, maybe you can ask about this in PM last information was this
  24. RockPi is ok with vp9 4k60fps, thanks for telling me about it (about RockPi)