Jump to content

dante6913

Members
  • Posts

    86
  • Joined

  • Last visited

Posts posted by dante6913

  1. 9 minutes ago, UniformBuffer said:

    Hi,

    i confirm that for me hardware acceleration works. I use AML-S905X-CC board on kernel 5.8.5 (updated today).

    Maybe a difference with my configuration is that i do not use Xorg, i use Wayland desktop environments.

    There are many out there and some can be even installed from apt, like Gnome,Sway and Phosh. I personally use Wayfire that i have compiled myself.

    Another difference (maybe) is that i have added Debian Sid to my repository list, so i got very cutting edge mesa drivers. I currently have mesa 20.1.6.

    When running "mpv --hwdec=yes *a youtube video*" i got

      Reveal hidden contents

     (+) Video --vid=1 (*) (vp9 1280x720 30.000fps)
     (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
         Subs  --sid=1 --slang=fr 'vtt' (webvtt) (external)
         Subs  --sid=2 --slang=ko 'vtt' (webvtt) (external)
         Subs  --sid=3 --slang=uk 'vtt' (webvtt) (external)
         Subs  --sid=4 --slang=zh-HK 'vtt' (webvtt) (external)
         Subs  --sid=5 --slang=en 'vtt' (webvtt) (external)
         Subs  --sid=6 --slang=th 'vtt' (webvtt) (external)
         Subs  --sid=7 --slang=bg 'vtt' (webvtt) (external)
         Subs  --sid=8 --slang=es-419 'vtt' (webvtt) (external)
         Subs  --sid=9 --slang=ar 'vtt' (webvtt) (external)
         Subs  --sid=10 --slang=hu 'vtt' (webvtt) (external)
         Subs  --sid=11 --slang=iw 'vtt' (webvtt) (external)
         Subs  --sid=12 --slang=cs 'vtt' (webvtt) (external)
         Subs  --sid=13 --slang=sv 'vtt' (webvtt) (external)
         Subs  --sid=14 --slang=ja 'vtt' (webvtt) (external)
         Subs  --sid=15 --slang=vi 'vtt' (webvtt) (external)
         Subs  --sid=16 --slang=el 'vtt' (webvtt) (external)
         Subs  --sid=17 --slang=de 'vtt' (webvtt) (external)
         Subs  --sid=18 --slang=hi 'vtt' (webvtt) (external)
         Subs  --sid=19 --slang=ru 'vtt' (webvtt) (external)
         Subs  --sid=20 --slang=tr 'vtt' (webvtt) (external)
         Subs  --sid=21 --slang=pt 'vtt' (webvtt) (external)
         Subs  --sid=22 --slang=es 'vtt' (webvtt) (external)
         Subs  --sid=23 --slang=ro 'vtt' (webvtt) (external)
         Subs  --sid=24 --slang=fa 'vtt' (webvtt) (external)
         Subs  --sid=25 --slang=mn 'vtt' (webvtt) (external)
         Subs  --sid=26 --slang=id 'vtt' (webvtt) (external)
         Subs  --sid=27 --slang=pl 'vtt' (webvtt) (external)
         Subs  --sid=28 --slang=it 'vtt' (webvtt) (external)
    [vaapi] libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
    Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
    AO: [pulse] 48000Hz stereo 2ch float
    Using hardware decoding (v4l2m2m-copy).
    VO: [gpu] 1280x720 nv12
    AV: 00:00:00 / 00:05:44 (0%) A-V:  0.423 Cache: 34s/3MB

     

    After saying this, hardware decoding is not working great, i got a lot of dropped frames and warning messages from mpv like:

      Reveal hidden contents

    Audio/Video desynchronisation detected! Possible reasons include too slow
    hardware, temporary CPU spikes, broken drivers, and broken files. Audio
    position will not match to the video (see A-V status field).

     

    Running the same command without "--hwdec" run much better and, even if it do not use the hardware decoding, the video player is still hardware accelerated on the gpu (VO: [gpu] 1280x720 nv12).

    Don't get me wrong, i appreciate a lot that something at least start working, i know it's not easy to manage this kind of things, so congrats Armbian Team :beer:.

    Can't wait to get full hardware decoding support! :D

     

    Edit:

    oh, i forgot to say that i have found no way to get the same thing on browsers, so i generally watch videos on mpv

    I was using ubuntu 20.04 focal, I even tried with wayland but no luck to. Maybe this was the reason

  2. 5 hours ago, Gausus said:

    Yes.

     

    Tested panfrost, no difference in chromium or MPV.

    sudo nano /etc/X11/xorg.conf.d/01-armbian-defaults.conf

    Option      "AccelMethod"    "glamor"     ### "glamor" to enable 3D acceleration, "none"

     

    Desktop often gets blurred when enabling and 2D slow.

     

    There most be some other settings / tweak changed from bionic to focal.

     

    panfrost doesn't accelerate video decoding, for that in amlogic you need vdec. Work as been done, but I don't now what is the state now , @UniformBuffer in this

     was able to make it work with kernel 5.7.15. I wasn't able to make it work with balbes image Ver 20200828 kernel 5.7.16 in my X96 air (S905x3)

    Maybe some one can say some thing about the state of video hardware decoding.

  3. 23 hours ago, UniformBuffer said:

    Hi,
    i don't got any particular mpv conf, i have only added "ytdl-format=bestvideo[height<=?720][fps<=?60][vcodec!=?vp9]+bestaudio/best" to get video from youtube directly with the resolution of my monitor, nothing more.
    Your question make me some tests: unfortunatly i don't get hardware acceleration from youtube videos (maybe i have to change something), but i'm sure to got it from local video.
    Running a vp9 video of my self recorded desktop i got from "mpv --hwdec=yes ./myvid.mkv":
    ```
     (+) Video --vid=1 (*) (vp9 1280x800)
    [vaapi] libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
    Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
    Using hardware decoding (v4l2m2m-copy).
    VO: [gpu] 1280x800 nv12
    V: 00:00:01 / 00:00:18 (10%)
    ....
    ```

    Youtube videos do not use nv12, so maybe this make mpv do not enable hardware acceleration (i do not got "Using hardware decoding (v4l2m2m-copy).").

    I have to check, if i make them accelerated i will send you a message ;)

    I tried with balbes latest image Ver 20200828 kernel 5.7.16 but I only got output  POLLERR so hardware decoding failed with all videos even mp4

  4. UniformBuffer

    On 8/25/2020 at 4:30 PM, UniformBuffer said:
    Armbianmonitor:

    Hi,

    i use a AML-S905X-CC board and since the last kernel update, something start moving on the hardware acceleration side, i got mpv hwdec working. I would like to make some tests and start using kodi for media reproduction, but i'm scared that 256M of default cma memory is not enough.

    I have tried to set the cma memory size from kernel parameters using armbian-config.

    I have tried to add "cma=350M" and "extraargs=cma=350M" to boot environment.

    Both commands does not work.

    The strange thing is that i'm sure "extraargs=cma=350M" pass the command to the kernel parameters because i have already used it to disable a faulty composition output.

    I have checked the syntax of the cma kernel parameter at the linux kernel documentation and SHOULD be ok, but i'm not sure 100%:

      Hide contents

    cma=nn[MG]@[start[MG][-end[MG]]] [ARM,X86,KNL] Sets the size of kernel global memory area for contiguous memory allocations and optionally the placement constraint by the physical address range of memory allocations. A value of 0 disables CMA altogether. For more information, see include/linux/dma-contiguous.h

     

    I verify the cma allocation from dmesg, that report:

    [    0.000000] Reserved memory: created CMA memory pool at 0x000000006b000000, size 256 MiB

     

    I also verify it by using "cat /proc/meminfo" and on the end there is:

    CmaTotal:         262144 kB
    CmaFree:           12772 kB

     

    So the question is: how can i change the cma allocation size, without recompile the kernel if possible?

    Is it possible that the cma size has been hardwritten at compile time and runtime changes are ignored?

     

    Thanks for the attention,

    have a good day

    Hi UniformBuffer, what mpv.conf arguments that are you using?

    hwdec =auto?

     

    Thanks

  5. 5 hours ago, rna said:

    Try to use this:

    " u-boot-s905x2-s922"

    then copy rename it to u-boot.ext.

    then edit the "extlinux.conf" according to your dtb location.

     

    I tested it works in my X96 Max+ which is an s905x3 board.

     

    Hope that helps

    Thanks I will try with u-boot-s905x2-s922

  6. 4 hours ago, rna said:

    There's a change for boot algorithm starting from version 20.08:
    Here's the quote from @balbes150:

     

     

    Pay attention. Starting from version 20.08 (20200814), the configuration order for the used DTB changes.

     

    Please note that the algorithm for initial configuration of the system for startup has changed. Instead of a file "uEnv.txt", the file "/extlinux/extlinux.conf " is now used. The rules for editing a file remain the same.

    All Amlogic models now need the "u-boot.ext" file.

    Before launching on Amlogic, you must copy or rename one of the existing files "u-boot-*" to "u-boot.ext".

     

    For s905 (not X) - used u-boot-s905

    For s905x and s912 - used u-boot-s905x-s912

    For s905x2 and s922 - used u-boot-s905x2-s922

     

    For g12a\g12b models, a single file is now used (files u-boot.sd and u-boot.usb now replaces one u-boot-s922 file).

    For the Allwinner platform, you no longer need to rename the scripts "boot.scr".

    All "boot.scr" scripts have been canceled and are not used.

    For my S905X3 (X96 air) I did  copy and renamed u-boot-s905x-s912 to u-boot.ext edited the /extlinux/extlinux.conf pointingg to meson-sm1-sei610.dtb

    But I wasn't able to boot (using usb). should I have a u-boot.usb from a copy of u-boot.ext like I had before?

  7. 1 hour ago, dante6913 said:

    Hi , dos anyone knows if is possible to set screen resolution 1366X768@60 (my tv resolution).

    I always get 1360x768@60. xrand is not a option because I'm in wayland.

    Thanks

    I tried to force the 1366x768.bin that is present at my /usr/lib/firmware/edid by adding this line to uEnv.txt extraargs=drm_kms_helper.edid_firmware=HDMI-A-1:edid/1366x768.bin video=HDMI-A-1:1366X768@60 but the only resolution that I get is 1360x768@60

  8. 4 minutes ago, dante6913 said:

    I'm a little confuse, this build  Armbian_20.06.0_Arm-64_focal_current_5.7.6_desktop-TEST-GPU.img.xz enables hardware acceleration (GPU) or hardware video acceleration VPU (decoding)?

    Because lima and panfrost was already working in the other build.  Just for quick curiosity because I'm at work, but I will try it at home! 

    Ok its optimization on GPU hardware acceleration

  9. 1 hour ago, balbes150 said:

    This is hardware decoding of video files, it is not related to the lima (GPU).

    I'm a little confuse, this build  Armbian_20.06.0_Arm-64_focal_current_5.7.6_desktop-TEST-GPU.img.xz enables hardware acceleration (GPU) or hardware video acceleration VPU (decoding)?

    Because lima and panfrost was already working in the other build.  Just for quick curiosity because I'm at work, but I will try it at home! 

  10. 24 minutes ago, dante6913 said:

    Hi Armin

    Did you solved the audio like is said from @dgm78 "Edit: Solved removing two references from audio-controller -> pinctrl-0 that was in conflict with ethernet."

    what did he edit, the dtb or what?

    Thanks

    I have the new dtb I will try it later

  11. I think we should  start systematization process for each dtb and x96 air version (P1, P2 and P3) so we could start editing one that maximize the features that are working for each version of the harware.

    I'm very new at the android box, I got my box only last week and only had few hours playing with it (yesterday managed install a decent android custom rom and install armbian booting from usb).

     

    My box is a P3 with meson-sm1-sei610-ethfix

    Boots from sd and usb with wrong colors but the fix for that works

    eth0 speed 100 only

    I saw bluetooth icon but didn't have time to try it (I will edit my post when try it)

    No wireless

    usb audio works

    hdmi audio (didn't have time to try it)

  12. 5 hours ago, chenjun_wh said:

    I try 7 files.like this

    meson-sm1-sei610
    meson-sm1-sei610-ethfix
    meson-g12a-sei510
    meson-g12a-x96-max
    meson-g12a-x96-max-no-cvbs
    meson-g12a-x96-max-rmii
    meson-g12b-odroid-n2

     

    only use meson-g12a-x96-mac-no-cvbs .in ny box X96Air_P3.the 100m full wired network is ok.

     

    I do this command

    ethtool -s eth0 speed 100 duplex full autoneg on .

    after reboot . the eth0 is down.I must use command again.

     

    net line another pc or route is 100m full.also ok

    So none works at 1000 M?

  13. 34 minutes ago, chenjun_wh said:

    I fix wired network.

    My tv box is X96Air_P3_20191220-2048.4G+64G.

    I use

    armbian-20.08.0-aml-64-bionic-current-5.7.0-rc7-desktop-20200521

    and

    meson-g12a-x96-max-no-cvbs.dtb

    boot from sd


    the wired network is ok.

    but only 100m full.and color is not good.

     

    How to fix it.I want to use 1000mb full.

     

    have you tried meson-sm1-sei610-ethfix.dtb?

  14. 15 minutes ago, dante6913 said:

    Hi, my experience (beginner) so far with a x96 air 4/64 P3 with meson-sm1-sei610-ethfix.dtb

    boots from sd with wrong colors, I can fix it with NicoD files and boots

    boots with usb with wrong colors, if I fix with NicoD files it stays in green screen and doesn't boot. Do anyone as a fix for this, because I would like that my armbian at usb. I think with USB 3 that would the fastest choice than sd oe even emmc.

    I found that usb sound doesn't work. I didn't have time for explore more. Before I advance I would like to find if there is a way to boot from usb with the colors fixed.  Thanks.

     

    Think i found a solution using balbes150 files

    "Fix for correct color to G12 (Amlogic S905X2 S922X)

    For models based on g12 (s905x2 s922), which have a problem not the correct color , 

    If you are starting the system from an SD card, you need to copy file  u-boot.sd to u-boot.ext,

    If you are starting the system from an USB, you need to copy file  u-boot.usb to u-boot.ext

    When installing in eMMC, you do not need to do anything with your hands, the installation script itself will perform the necessary system configuration and when running from eMMC, the system will work with the correct color.#"

     

    I will try later when I will be at home.

  15. Hi, my experience (beginner) so far with a x96 air 4/64 P3 with meson-sm1-sei610-ethfix.dtb

    boots from sd with wrong colors, I can fix it with NicoD files and boots

    boots with usb with wrong colors, if I fix with NicoD files it stays in green screen and doesn't boot. Do anyone as a fix for this, because I would like that my armbian at usb. I think with USB 3 that would the fastest choice than sd oe even emmc.

    I found that usb sound doesn't work. I didn't have time for explore more. Before I advance I would like to find if there is a way to boot from usb with the colors fixed.  Thanks.

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines