Jump to content

jernej

Members
  • Posts

    1144
  • Joined

  • Last visited

Posts posted by jernej

  1. 1 hour ago, Gunjan Gupta said:

    I will also test if the system resumes on IR once that arrives

    Note that crust is very board specific. If it doesn't have IR by default, you have to enable it in config. Apart from that, you have also select correct IR protocol and key code. On some boards you also have to select proper clock for IR.

  2. Crust is successfully integrated on A64, H3, H5 and H6 in LibreELEC. R40 and H616 don't have co-processor, so they can't have it. I don't know A83T state. H3 needs additional U-Boot patches which are in conflict with other SoCs (including R40), so it's best to have them separated.

     

    Easiest test is to use board with power button. Put board in sleep with "systemctl suspend" or power it down via command line (poweroff, shutdown now, etc.). Once it's in sleep or in stand by mode, press power button. If everything works as it should, board should come to life. Serial console is highly recommended during testing and a must for debugging any kind of issues.

  3. 9 hours ago, robertoj said:

    Do I need to set CMA=128M in bootargs?

    Not sure what are current defaults, but that's generally on the low side. LE uses CMA size of 384 MiB, mainly due to 4k.

     

    9 hours ago, robertoj said:

    They fix one buffer management issue which may cause incorrect decoding but most importantly, they massively lower amount of memory that's used during decoding. Those fixes are included in 6.2 and newer kernels.

     

    Use following command for testing:

    ffmpeg -loglevel debug -hwaccel drm -hwaccel_output_format drm_prime -i video.mkv -f null -

    It will be pretty obvious from debug log if request api is used or not.

     

    Not sure which version of mpv you're using, but very latest (not sure if it's in released version or in development branch) should allow using request api ffmpeg also when window manager is running.

     

    EDIT: make sure that this ffmpeg patch is included: https://github.com/jernejsk/FFmpeg/commit/5057eb96b2adbff022a1abd8d5b06f369f908d51

  4. *_v4l2m2m codecs are for v4l2 stateful drivers, not request api. Actually, you have to grep for "request" word. Check that you have 6.1 kernel headers installed. IIRC last important kernel patches went into 6.2, so ideally you would run that. Last but not least, to know which codecs are supported, you have to use v4l2-ctl command. Easiest way is to use --all parameter and check for supported formats on cedrus device.

  5. CEC on H6 works just fine, as I used it many times, although not with Armbian. I can think of following reasons why CEC doesn't work:

    1. make sure it's enabled in TV settings. I had to enable it on LG TV and old plasma TV. BEWARE: Setting is usually hidden under commercial name like simplink, easylink, etc.

    2. make sure your libcec is new enough, at least 4.0.5

    3. make sure driver is loaded (check for /dev/cec0)

    4. it could be cable issue, although that's unlikely

  6. Your understanding is incorrect:

     

    1. VDPAU was used only with vendor kernel, which is obsolete for a long time. Armbian uses only mainline kernel.

    2. No need to worry due to 1)

    3. GPU doesn't do anything for video decoding. That's desktop PC concept. Embedded SoCs have dedicated VPUs (video processing unit). But it's true that ffmpeg need patching. More specifically, it needs v4l2 request api support.

    4. That's not necessary if ffmpeg libraries are patched and installed system wide.

     

    Last but not least, v4l2 request video decoding support is tested only in Kodi GBM mode. This means that it must be started from console, when no desktop environment is running. Maybe wayland mode would work, but I don't know. Certainly it won't work under X11. You have to use software decoding there.

  7. On 7/21/2022 at 9:44 AM, amazingfate said:

    You can play 1080p video with hardware decode using kodi.

     

    Latest stable version of mpv also supports video playback with patched ffmpeg, even in x11 and wayland. If Armbian would package such ffmpeg, it would make almost trivial for people to watch movies using mpv on desktop.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines