Page 6 of 6

Re: MrMC v3.0.0 on Amazon

Posted: 25 Feb 2017, 16:38
by davilla
cosmoxl wrote:
davilla wrote:
cosmoxl wrote:what decoder is this talking about? in spmc surface looks great with mpeg2 1080i. can't turn deinterlacing off or on with surface so I assume it's about AMC non-surface or ffmpeg2.
Would love to see spmc.log, amazon specs say mpeg2 hw decode is not supported.
interesting way to get a log. http://paste.semperpax.com/p8ee8wjpk

see if that has what you need. codec info says it's AMC(s) decoding.

line 345 of the log 09:35:04.506 T:1587534112 DEBUG: FactoryCodec - Video: amc-mpeg2(S) - Opened
OMX.Nvidia.mpeg2v.decode, that's shield :) not fireTV.

Re: MrMC v3.0.0 on Amazon

Posted: 25 Feb 2017, 16:41
by cosmoxl
davilla wrote:
cosmoxl wrote:
davilla wrote:
Would love to see spmc.log, amazon specs say mpeg2 hw decode is not supported.
interesting way to get a log. http://paste.semperpax.com/p8ee8wjpk

see if that has what you need. codec info says it's AMC(s) decoding.

line 345 of the log 09:35:04.506 T:1587534112 DEBUG: FactoryCodec - Video: amc-mpeg2(S) - Opened
OMX.Nvidia.mpeg2v.decode, that's shield :) not fireTV.
well good grief. I thought we were talking about AMC capabilities, not the platform specific. sorry for being an idiot. :lol: :oops:

Re: MrMC v3.0.0 on Amazon

Posted: 25 Feb 2017, 17:14
by davilla
cosmoxl wrote:
davilla wrote:
cosmoxl wrote:
interesting way to get a log. http://paste.semperpax.com/p8ee8wjpk

see if that has what you need. codec info says it's AMC(s) decoding.

line 345 of the log 09:35:04.506 T:1587534112 DEBUG: FactoryCodec - Video: amc-mpeg2(S) - Opened
OMX.Nvidia.mpeg2v.decode, that's shield :) not fireTV.
well good grief. I thought we were talking about AMC capabilities, not the platform specific. sorry for being an idiot. :lol: :oops:
That's the problem with AMC capabilities, very platform dependent because google never made any rules for required device support.

Re: MrMC v3.0.0 on Amazon

Posted: 25 Feb 2017, 17:22
by davilla
humm, there is a OMX.qcom.video.decoder.mpeg2 on firetv1 in /system/etc/media_codecs.xml

Codec | W H fps Mbps MB/s
mpeg2 | 1920 1088 30 20 244800

no mpeg2 decoder in firetv2

Re: MrMC v3.0.0 on Amazon

Posted: 25 Feb 2017, 19:57
by jamesp26
https://drive.google.com/open?id=0BwR6Z ... WN2WDZZenc

It live tv cut into an MKV file. Only 2 minutes.

Actually, i've run it through the latest SPMC build and it looks ok, only SPMC reports lots of dropped frames. Previous versions of SPMC struggled to play it.

Something i'd like to raise if MrMC using using the same mechanism to deinterlace MediaCodec:

1) In SPMC, Mediacodec offers Bob and Bob inverted. These work in an opposite fashion to ffmpeg (in ffmpeg i have to use Bob Inverted, mediacodec i have to use Bob). Therefore, if livetv uses a combination of MPEG2 and H264, you can never end up with a setting that works in all circumstances.
2) In SPMC, using MediaCodec, 'Auto' deinterlacing doesn't work. It has to be set to 'On'.

James

Re: MrMC v3.0.0 on Amazon

Posted: 25 Feb 2017, 22:27
by davilla
jamesp26 wrote:https://drive.google.com/open?id=0BwR6Z ... WN2WDZZenc

It live tv cut into an MKV file. Only 2 minutes.

Actually, i've run it through the latest SPMC build and it looks ok, only SPMC reports lots of dropped frames. Previous versions of SPMC struggled to play it.

Something i'd like to raise if MrMC using using the same mechanism to deinterlace MediaCodec:

1) In SPMC, Mediacodec offers Bob and Bob inverted. These work in an opposite fashion to ffmpeg (in ffmpeg i have to use Bob Inverted, mediacodec i have to use Bob). Therefore, if livetv uses a combination of MPEG2 and H264, you can never end up with a setting that works in all circumstances.
2) In SPMC, using MediaCodec, 'Auto' deinterlacing doesn't work. It has to be set to 'On'.

James
Auto deinterlacing works, but we have a bug in that is does not remember if you turn it on or off. Looking into why.

Bob and Bob inverted are done by a GPU shader. Seems strange that if becomes inverted. Sounds like top/bottom fields are not set up right in SPMC's MediaCodec (non-surface). They 'should' give the same results.

MediaCodec(Surface) is outside the touch of a GPU Shader, which is why no deinterlace setting will matter. Deinterlacing is handled internally by firmware implementation.

No drops, one skip on that sample with MediaCodec(surface) on FireTV2.

Re: MrMC v3.0.0 on Amazon

Posted: 25 Feb 2017, 22:57
by jamesp26
davilla wrote:No drops, one skip on that sample with MediaCodec(surface) on FireTV2.
I look forward to trying it :D