1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HEVC support on AMLogic

Discussion in 'Bug Reports' started by nrosier, 14 April 2017.

Tags:
  1. nrosier

    nrosier New Member

    Messages:
    1
    Hi,

    I've compiled both hyperion and hyperion.ng with AMLogic support for my Vero4K. Both version work (although the "classic" version appears a more stable) fine for h264 files but produce a random "pastel coloured" pattern when playing HEVC content. Is this a known issue?

    N.
     
  2. PuckStar

    PuckStar New Member

    Messages:
    6
    Hardware:
    RPi3
    I'd like to let you know I encounter the same issue. With HEVC (x265) content ambilight is working so bad that I can't use it at all.
    Could you guys look into this and try to find a fix?

    If testing is needed please let us know!
     
  3. penfold42

    penfold42 Moderator Developer

    Messages:
    643
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Are these 10bit colour depth ?
     
  4. PuckStar

    PuckStar New Member

    Messages:
    6
    Hardware:
    RPi3
    Not necessarily. This one says 8bit.
    Here is a mediainfo:

    General
    Unique ID : 306751288999060812738743055739272096652 (0xE6C6263847B9F14FE6180F25D168EB8C)
    Complete name : BLABLABLA1080p.AMZN.WEBRip.DD5.1.HEVC.x265.mkv
    Format : Matroska
    Format version : Version 4 / Version 2
    File size : 1.08 GiB
    Duration : 51 min 50 s
    Overall bit rate : 2 971 kb/s
    Writing application : Lavf57.51.100
    Writing library : Lavf57.51.100 / Lavf57.51.100

    Video
    ID : 1
    Format : HEVC
    Format/Info : High Efficiency Video Coding
    Format profile : Main@L4@Main
    Codec ID : V_MPEGH/ISO/HEVC
    Duration : 51 min 50 s
    Bit rate : 2 272 kb/s
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 25.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Bits/(Pixel*Frame) : 0.044
    Stream size : 842 MiB (76%)
    Writing library : x265 2.3+1-7e225aefd389:[Linux][GCC 5.4.0][64 bit] 8bit
    Encoding settings : cpuid=1173503 / frame-threads=3 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=6 / scenecut=40 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / analysis-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=abr / bitrate=2434 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr
    Language : English
    Default : Yes
    Forced : No
    DURATION : 00:51:50.046000000
     
  5. Cédric Laubacher

    Cédric Laubacher Pukinator

    Messages:
    61
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Execute this: echo 1 | tee /sys/module/amvdec_h265/parameters/double_write_mode
    works fine with 4k HEVC HDR media on my Odroid C2, although it cant display 10 bit correctly (washed out colors)
     
  6. PuckStar

    PuckStar New Member

    Messages:
    6
    Hardware:
    RPi3
    I tried it but get a permission denied both with and without sudo:

    osmc2:~$ echo 1 | tee /sys/module/amvdec_h265/parameters/double_write_mode
    tee: /sys/module/amvdec_h265/parameters/double_write_mode: Permission denied
    1
    osmc@osmc2:~$ sudo echo 1 | tee /sys/module/amvdec_h265/parameters/double_write_mode
    tee: /sys/module/amvdec_h265/parameters/double_write_mode: Permission denied
    1
     
  7. Cédric Laubacher

    Cédric Laubacher Pukinator

    Messages:
    61
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    try echo 1 | sudo tee /sys/module/amvdec_h265/parameters/double_write_mode
    What OS do you use? I'm on LibreELEC, so I don't need sudo
     
  8. PuckStar

    PuckStar New Member

    Messages:
    6
    Hardware:
    RPi3
    Thanks, that worked :). So should I see a difference now with hyperion and ambilight? In that case I'll do some testing again.
    I use the Vero4k OS: https://osmc.tv/vero/
     
  9. Cédric Laubacher

    Cédric Laubacher Pukinator

    Messages:
    61
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Yeah you should see a difference, at least for the Odroid C2 which uses the S905 CPU. On LibreELEC you need to execute this command on every startup, not sure about OSMC
     
  10. PuckStar

    PuckStar New Member

    Messages:
    6
    Hardware:
    RPi3
    Sorry for the very late reply. I was superbusy and even forgot about your suggestion. Just tried it and.............works! :)
    Didn't try a lot of HEVC stuff but at least 1 movie is working.

    Any idea how I can automate the automatic running after a reboot?

    Now I still need to fix the colors/saturation/brightness item. That is on the Vera4k I run Hyperion NG and I can't seem to get the colors/saturation/brightness like I had them in Hyperion (on the pi3). I already messages penfold42 who hopefully can help me with that.
     
  11. Cédric Laubacher

    Cédric Laubacher Pukinator

    Messages:
    61
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Nice!!
    In LibreELEC theres a autostart.sh file. I dont think that works for omsc, but im sure you can find a way to run that script on startup. Maye crontab