1. No user installed addons are supported, python or otherwise.
2. No, they really are not supported.
3. They are not coming back
4. Read from 1. again

Any mention of illegal streaming sites, addons or any pirated material will not be tolerated. This is not democracy and any offenders will be banned and posts deleted immediately without warning.

Other than that, we hope you enjoy MrMC so far and we welcome any input and feedback you might have.

Team MrMC.

Stutter when using HW acceleration

FireTV Video playback support subforum
User avatar
vlaves
Posts: 131
Joined: 04 Dec 2015, 10:33

Stutter when using HW acceleration

Post by vlaves » 26 Jun 2016, 22:07

Hi together,

I'm using MrMC 2.3 on my Fire TV 2 (@1080p50Hz) while watching Live TV from a tvheadend server.
If I use mediacodec (surface), which is the default, den the picture is fluent, but video overlay info screen shows that only ffmpeg is used. So turned off mediacodec (surface) and turned on the normal one. Now it uses amc, but I get stuttering all the time.

If I turn of both, same result as with surface, just ffmpeg is used nd it is smoth playback. Shouldn't it be possible for MrMC to use HW acceleration without stuttering?

Or maybe some setting on my side is wrong?

Can you please help here?

Thanks again for the great support :)

PPS the Live TV stream is a h.264 1080i stream as common here in Europe.

User avatar
davilla
Team MrMC
Posts: 3586
Joined: 26 Oct 2015, 17:01

Re: Stutter when using HW acceleration

Post by davilla » 27 Jun 2016, 16:48

h.264 1080i streams are not handled very well under the native android MediaCodec, either surface or non-surface. A future version of MrMC will vector this type of content to FFMpeg.

What you are seeing is exactly why we are making this change. Maybe in the future h.264 interlaced content will gain improvements under MediaCodec and then one will be able to use HW decode

User avatar
vlaves
Posts: 131
Joined: 04 Dec 2015, 10:33

Re: Stutter when using HW acceleration

Post by vlaves » 03 Jul 2016, 05:54

davilla wrote:h.264 1080i streams are not handled very well under the native android MediaCodec, either surface or non-surface. A future version of MrMC will vector this type of content to FFMpeg.

What you are seeing is exactly why we are making this change. Maybe in the future h.264 interlaced content will gain improvements under MediaCodec and then one will be able to use HW decode
Too bad, was always under the impression that the decoding of each frame is done with hw acceleration and the deinterlacing after the decode in software afterwards.

Isn't that possible anymore or you don't have access to the frame itself after it has been "passed" to mediacodec?

User avatar
davilla
Team MrMC
Posts: 3586
Joined: 26 Oct 2015, 17:01

Re: Stutter when using HW acceleration

Post by davilla » 03 Jul 2016, 15:28

vlaves wrote:
davilla wrote:h.264 1080i streams are not handled very well under the native android MediaCodec, either surface or non-surface. A future version of MrMC will vector this type of content to FFMpeg.

What you are seeing is exactly why we are making this change. Maybe in the future h.264 interlaced content will gain improvements under MediaCodec and then one will be able to use HW decode
Too bad, was always under the impression that the decoding of each frame is done with hw acceleration and the deinterlacing after the decode in software afterwards.

Isn't that possible anymore or you don't have access to the frame itself after it has been "passed" to mediacodec?
MediaCodec surface is a by-pass mode, Rendering is handed off to the OS and there is no access to the rendered frames.

jamesp26
Posts: 63
Joined: 16 Apr 2016, 11:58

Re: Stutter when using HW acceleration

Post by jamesp26 » 30 Oct 2016, 15:58

davilla wrote:h.264 1080i streams are not handled very well under the native android MediaCodec, either surface or non-surface. A future version of MrMC will vector this type of content to FFMpeg.
Hi,

I am convinced the previous version of MrMC used to do this. If i had MediaCodec (Surface) switched on, If i watched anything from my LiveTv recordings folder it would vector this to FFMPeg.

Current Version isn't doing this anymore. LiveTv definitely gets vectored to FFMpeg, but recordings in h.264 1080i format are now attempting to play using MediaCodec. They therefore stutter like crazy.

For now, I've disabled MediaCodec, but it would be nice to re-enable this feature in the future.

James

User avatar
davilla
Team MrMC
Posts: 3586
Joined: 26 Oct 2015, 17:01

Re: Stutter when using HW acceleration

Post by davilla » 30 Oct 2016, 17:59

I'd need to see debuglog and if possible, a sample file that shows the issue.

jamesp26
Posts: 63
Joined: 16 Apr 2016, 11:58

Re: Stutter when using HW acceleration

Post by jamesp26 » 31 Oct 2016, 21:56

Sample File: https://drive.google.com/open?id=0BwR6Z ... jJTMDZZUWc

Debug log - https://drive.google.com/open?id=0BwR6Z ... mJRNVUtQkE

Just to be clear, this happens with all my recorded tv from TVheadend with the latest release - if mediacodec (surface) is on, then 1080i recordings no longer vector to ffmpeg.

One other thing I'd like to point out from the sample file if I can (sorry to raise 2 issues in one post!). On the firetv, i am seeing a lot of micro stutter from 1080i 50hz content. This sample file is from BBC news, and I can see the ticker along the bottom stutter at different points during the clip. Personally, i notice it a lot as I seem to be really really notice this sort of thing (on football it really stands out during fast motion).

I appreciate its subtle, however, the same clips on the Apple TV plays perfectly so it must be something specific with the FireTv. Everything on the firetv and my tv are set to 50hz.

Many thanks!

DC1983
Posts: 27
Joined: 01 Nov 2016, 10:45

Re: Stutter when using HW acceleration

Post by DC1983 » 06 Nov 2016, 16:15

I've got simliar, out of interest do you have Dolby digital plus (E-AC3) capable receiver ticked? This seems to then use surface. If I disable just this (still with ac3 and dts pass through enabled) ffmpeg is used and no stuttering.

Many thanks

Edit - ignore me, just re-enabled EAC3 and seems ok. Was sure I had seen surface being used and disabling this resolved it.

jamesp26
Posts: 63
Joined: 16 Apr 2016, 11:58

Re: Stutter when using HW acceleration

Post by jamesp26 » 06 Nov 2016, 17:00

I don't use passthrough on the firetv. With livetv it can be hit and miss.

Out of interest were you able to reproduce this or do you need any more info? Happy to send you what ever you need.

User avatar
vlaves
Posts: 131
Joined: 04 Dec 2015, 10:33

Re: Stutter when using HW acceleration

Post by vlaves » 09 Nov 2016, 13:17

Seems like koying has fixed hardware accelerated playback on the Fire TV with his "aml fixes" for Kodi 17.
And from fritsch's comment here http://forum.kodi.tv/showthread.php?tid ... pid2453127 I hope it is getting included in MrMC soon.

Any comments to that. I'm on software decoding since beginning...cause of stuttering. Tested the nightly from 8th nov. of Kodi 17 and its working perfectly there.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests