Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
The very moment, you need to drop, skip and so on, you at glad you can instrument hw to skip some post processing. Is there any droid vendor that does all right in firmware? I don't. Crystal HD is long dead :-)
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
2016-09-03, 19:18
(This post was last modified: 2016-09-03, 19:19 by fritsch.)
VAAPI can skip cycles, VDPAU, too. So if it goes "hard" you just get some interlaced frames. Much better than dropping complete images.
See: xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h: virtual bool CanSkipDeint() {return false; }
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
2016-09-03, 21:33
(This post was last modified: 2016-09-03, 21:39 by fritsch.)
You get what kodi gets if you switch off deinterlacing.
Edit: Depending where you skip, you can also skip the rendering after deinterlacing, when you are doing 50i to 50p, not all frames need to be rendered.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
Aml on linux uses this on le to skip deint completely when not fullscreen, so a very useful feature. What we plan for the future: extend process info to fall back scaler and deint if we have too many skips, drops. Too bad if no API would exist for doing this.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
I see a big difference there, cause the decision what you get and what the decoder / postprocesser and at the end the renderer does is in our hands. As we sync audio separately, how should mediacodec know what is best to do?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
I'm afraid we're derailing from the topic.
We're speaking about h/w decoding and zero copy, here.
I never, ever, saw Kodi waiting for MediaCodec...
But hey, if you feel putting a 1 rather than 2 in a field when calling an API gives you control, glad for you...
Posts: 827
Joined: Jun 2014
Reputation:
25
CiNcH
Posting Freak
Posts: 827
2016-09-04, 14:37
(This post was last modified: 2016-09-04, 14:41 by CiNcH.)
In the DVBViewer we did something which we called "skip fast forward". When fast forwarding, we did not decode every frame but skipped over some data between every frame. This worked perfectly even with DXVA and full VPP. Frames got updated almost instantly. I also don't really think that there is a real performance bottleneck anymore with most hardware. Those hardware accelerators have really become powerful and decoding and VPP are well balanced. I only have real experience with Intel QuickSync though. I can't remember how many H.264 1080i MBAFF streams I could decode and deinterlace in parallel. But it certainly was > 4 streams on an Ivy Bridge CPU. However skipping is more a matter of latency than throughput...
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
skip in kodi context: don't show a certain frame
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.