Stuttering in H264 hardware decoder

Moderators: odroid, mdrjr

Stuttering in H264 hardware decoder

Unread postby gramenauer » Fri Jan 19, 2018 8:57 am

Hello,

has anyone experienced performance & stuttering problems with the H264 hardware accelerator on Odroid C1+ Ubuntu?

More details here:

Hardware and Software:

- Odroid C1+ Ubuntu 16.04.3 LTS (last official OS image rev 2.2)
- 300Mbit internet connection, gigabit.
- PVR Simple Client AddOn on Kodi 17.3 (Edit: actually is Kodi 17.6)
- Video comes in H264 - MPEG-4 AVC (part 10) (h264) format, 1920x1090 resolution, Planar 4:2:0 YUV, 50 fps

Issue description:

- Selecting Live Channel on PVR add-on, video/stream is showing but it is continuosly stopping and resuming. Stuttering. Not acceptable.

Testing and Logs:

- Pressing "o" while playing the video shows this:

Video process information:
Hardware Decoding: active
Decoder: am-h264,unknown
Deinterlace method: hardware
Resolution: 1,920x1,080 px, 0.00 AR, 50.000 FPS
Audio process information:
Decoder: ac3,32 bit,48,000 Hz
Channels: FL,FR
System information:
System CPU Usage: CPU0: 10% CPU1: 8,5% CPU2: 0,0% CPU3: 4.3%
Memory used: 61%



- Disabling H264 hardware acceleration on Kodi settings: Video does not stutter but it plays veryyy slow. So not acceptable either.

- Disabling MPEG4 hardware acceleration on Kodi settings: No effects

- Upgrading to last Ubuntu version (Ubuntu 16.04.3 LTS): No effects

- Same test on a friend's RaspBerry 2 B+ , and ... surprise ... video is playing perfect ! But I'm still in love with Odroid, I'm sure there is a kernel/soft solution here ...


Any help would be appreciated.

edit: maybe related to this post but not sure... https://forum.odroid.com/viewtopic.php?f=112&t=24356

Thank you.
Gram
Last edited by gramenauer on Sat Jan 20, 2018 5:01 am, edited 1 time in total.
gramenauer
 
Posts: 27
Joined: Wed Dec 30, 2015 2:01 am
Location: Barcelona
languages_spoken: english
ODROIDs: C1+

Re: Stuttering in H264 hardware decoder

Unread postby rooted » Fri Jan 19, 2018 1:33 pm

Try LibreELEC or OpenELEC and see if you get the same stuttering
User avatar
rooted
 
Posts: 5692
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Stuttering in H264 hardware decoder

Unread postby gramenauer » Fri Jan 19, 2018 4:26 pm

Thank you rooted,

I need Ubuntu because I have several 24/7 python scripts running on the server and I won't be able to have those on OpenElec/LibreElec (as far as I know).

But I'll get a new SD card and I'll give a try, just to know if it is a hard or soft problem.

Gram
gramenauer
 
Posts: 27
Joined: Wed Dec 30, 2015 2:01 am
Location: Barcelona
languages_spoken: english
ODROIDs: C1+

Re: Stuttering in H264 hardware decoder

Unread postby odroid » Fri Jan 19, 2018 4:44 pm

Please update the system software with following steps.
https://wiki.odroid.com/odroid-c1/os_im ... st-upgrade
AFAIK, the latest Kodi version should be 17.6

BTW, what happens if you playback the same video clips in the local storage or USB storage?
User avatar
odroid
Site Admin
 
Posts: 28878
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Stuttering in H264 hardware decoder

Unread postby gramenauer » Sat Jan 20, 2018 5:00 am

Thanks for your response odroid,

Please update the system software with following steps.

I already did it in the described step "Upgrading to last Ubuntu version (Ubuntu 16.04.3 LTS)".

Code: Select all
odroid@odroid:~$ sudo apt update && sudo apt upgrade && sudo apt dist-upgrade
[sudo] password for odroid:
Hit:1 http://ppa.launchpad.net/saiarcot895/myppa/ubuntu xenial InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports xenial InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports xenial-backports InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease
Hit:6 http://deb.odroid.in/c1 xenial InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libhdhomerun2 libllvm3.8 libllvm4.0 libmircommon5 libnfs8 snap-confine
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libhdhomerun2 libllvm3.8 libllvm4.0 libmircommon5 libnfs8 snap-confine
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


AFAIK, the latest Kodi version should be 17.6

Sorry, it was my mistake. Actually it's Kodi 17.6. Will edit main post.

BTW, what happens if you playback the same video clips in the local storage or USB storage?

Well, I cannot play exactly the same video from storage because there are PVR Live Channels.
But I have many mkv and HD clips on my NAS and I have never had any problem at all.

Need some extra time to install LibreElec ...

Any more ideas? Thank you!
gramenauer
 
Posts: 27
Joined: Wed Dec 30, 2015 2:01 am
Location: Barcelona
languages_spoken: english
ODROIDs: C1+

Re: Stuttering in H264 hardware decoder

Unread postby odroid » Sat Jan 20, 2018 12:11 pm

I have no idea what is wrong with the PVR addon since I've never used it.
User avatar
odroid
Site Admin
 
Posts: 28878
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Stuttering in H264 hardware decoder

Unread postby rooted » Sat Jan 20, 2018 12:33 pm

It's a known issue, the stuttering on PVR; but only on certain versions of KODI. Generally the newest beta but I'm not sure what all versions have it.

It isn't odroid specific at all.
User avatar
rooted
 
Posts: 5692
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Stuttering in H264 hardware decoder

Unread postby gramenauer » Sat Jan 20, 2018 8:28 pm

Some more testing:

- Odroid with LibreElec 8.0.4, with Kodi 17.3 -> Stuttering.
- Odroid with Ubuntu 16.04.3, with Kodi 17.6 -> Stuttering
- Amazon Fire Stick, with Kodi 17.6 -> Smoothly
- RaspBerry 2B+, with "old" raspbmc OS, kodi helix 14.1 on it -> Smoothly.

rooted, so you still think it's a KODI issue? It is working very well on Kodi 17.6 on Amazon Stick.

Thank you all :)
Gram
gramenauer
 
Posts: 27
Joined: Wed Dec 30, 2015 2:01 am
Location: Barcelona
languages_spoken: english
ODROIDs: C1+

Re: Stuttering in H264 hardware decoder

Unread postby rooted » Sun Jan 21, 2018 11:19 am

Yes I know it's a Kodi issue (on some hardware), like I said it isn't all versions of Kodi.

I should have stated it isn't on all devices. Look at the bug tracker.

I have the same problem on my Android TV with TVHeadend streams, so I must use an older version of KODI.
User avatar
rooted
 
Posts: 5692
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 1 guest