Page 1 of 1
HW rendering hangs
Posted: Fri Aug 05, 2016 10:21 am
by pentavalle
Hi,
trying to render some videos with version 20.0.18 using HW encoding I always end up with laptimer hanging at some point, when used 20.0.14 there were no problems. My phone is a Xiaomi Mi4c with 2Gb of RAM with Android 5.1.
Is there a way to help you suppling logs or similar to understand why it hangs?
Re: HW rendering hangs
Posted: Sun Aug 07, 2016 2:22 pm
by Harry
Hi,
Probably an incompatibility of the decoder / encoder. Please switch to the slower Software based encoding, you can find the setting in Settings / Expert Settings / Video Tweaks.
- Harry
Re: HW rendering hangs
Posted: Mon Aug 08, 2016 2:31 pm
by pentavalle
Don't know why but I tried to increase "overlay frame capacity" to a higher value (now it's 5) and it doesn't hang anymore.
Re: HW rendering hangs
Posted: Mon Aug 08, 2016 3:49 pm
by Harry
pentavalle wrote:Don't know why but I tried to increase "overlay frame capacity" to a higher value (now it's 5) and it doesn't hang anymore.
Interesting. Increasing this value allows a better parallel processing of decoding and encoding threads. The effect is going to zero above 3 however (so the setting has mostly been introduce to do the opposite - reducing frames - to work around low main memory conditions). The second effect of the setting is that the timing of packing / unpacking frames changes in "some way". It may well be that the encoder / decoder are simply timed in a different way that makes them work. It is kind of a random workaround and hard to predict / analyze. But if t works for you - fine.
- Harry
Re: HW rendering hangs
Posted: Mon Aug 08, 2016 10:05 pm
by Jack.Bauer
Funny enough - that "Overlay frame capacity" setting change to 5 did the trick for me as well (no successful rendering before). I use a Xiaomi Redmi Note 3 with 3Gb RAM and Android 5.1.
Which should be the quicker rendering setting, though? Overlay frame setting to 5 or "Software based encoding"?
Cheers, Jack
Re: HW rendering hangs
Posted: Mon Aug 08, 2016 10:22 pm
by Harry
Software will always be a lot slower. A value of 3 or 5 will not show a different speed, but main memory requirements go up a lot - especially for high res videos. But anyway, if 5 works, it is fine.
Harry