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

BUG x265 (HEVC) lagging ? bug ?

Discussion in 'Bug Reports' started by Seeder98, 24 August 2016.

  1. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Hello,

    I have read on github that the hyperion typically uses below 1,5% of CPU load. The interesting fact is that running hyperion along with playing x265 HEVC (720p) coded video in my case means totally lagging and delayed image instead of smooth play when hyperion is not running.

    My question is. Is this really caused by a lack of 1,5% of CPU load for decoding the video ? Or it can be a possible bug ?

    Using raspberry pi 3 model B+ with most recent version of OSMC.
    Yes, I have tried overclocking the CPU but it seems like the more I overclock the CPU the worse the lags are, while running hyperion. My hyperion config is attached.

    Thank you
     

    Attached Files:

    Last edited: 24 August 2016
  2. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    It's probably because the CPU is decoding the video AND writing to the display.

    Hyperion is also trying to grab from the display
     
  3. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,886
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    would be interessting if it is the same if you use spi...how do you play the video? with kodi?
    edit: with osmc... saw it to late :)
     
  4. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Yes, ofc. But if it is really just 1,5% needed by hyperion. Then why the overclocking is not helping ? (even overclocking to 1350MHz does not make any difference :( :( )

    Unfortunately, have no SPI LED strip :(
     
  5. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Sorry - I didn't write all of my thought!

    Hyperion is also trying to grab from the display ... and maybe there is IO contention.

    What happens if you drop the capture rate ?
     
  6. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    I have tried lowering the update frequency from 60 to 40Hz (if that is what you meant) and it actually helps a lot but the video is totally smooth on 15Hz, where LED color change lags can be seen.

    Edit: If you meant the Frame Grabber interval, changing it to higher value has no effect on playing video.
     
  7. Brindosch

    Brindosch Active Member

    Messages:
    658
    Hardware:
    RPi1/Zero, RPi2, RPi3, +nodeMCU/ESP8266
    Did you monitor your CPU load during playback? I never tried hevc but as software decode this could be heavy.
    Smoothing of 25-30 should be enough for smooth output. Also the default value of 10 frames per second for your frame grabber should be enough.
     
  8. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Now I'm on my laptop I can actually read the json config you posted!

    I actually meant the "framegrabber" : "frequency_Hz" : 10.0

    but its interesting that changing the "smoothing" : "updateFrequency" : 60.0000, made a huge difference
     
  9. Seeder98

    Seeder98 New Member

    Messages:
    9
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    So, I made a bit of CPU monitoring for you guys. Check it out.

    10Hz framegrabber frequency.

    [​IMG]
     
    • Informative Informative x 2