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?
HW rendering hangs
-
- 10 or more Posts ★
- Posts: 15
- Joined: Tue Apr 19, 2016 10:37 am
Re: HW rendering hangs
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
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
-
- 10 or more Posts ★
- Posts: 15
- Joined: Tue Apr 19, 2016 10:37 am
Re: HW rendering hangs
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
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.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.

- Harry
-
- Fewer than 10 Posts
- Posts: 4
- Joined: Thu May 30, 2013 8:44 pm
Re: HW rendering hangs
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
Which should be the quicker rendering setting, though? Overlay frame setting to 5 or "Software based encoding"?
Cheers, Jack
Re: HW rendering hangs
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
Harry