HW rendering hangs

Help on issues you run into with LapTimer; in case you have a question on how to use LapTimer, use the forum "Using LapTimer" instead
Post Reply
pentavalle
10 or more Posts ★
10 or more Posts ★
Posts: 15
Joined: Tue Apr 19, 2016 10:37 am

HW rendering hangs

Post 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?
User avatar
Harry
Site Admin
Site Admin
Posts: 10639
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: HW rendering hangs

Post 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
Image Image Image Image
pentavalle
10 or more Posts ★
10 or more Posts ★
Posts: 15
Joined: Tue Apr 19, 2016 10:37 am

Re: HW rendering hangs

Post 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.
User avatar
Harry
Site Admin
Site Admin
Posts: 10639
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: HW rendering hangs

Post 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
Image Image Image Image
Jack.Bauer
Fewer than 10 Posts
Fewer than 10 Posts
Posts: 4
Joined: Thu May 30, 2013 8:44 pm

Re: HW rendering hangs

Post 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
User avatar
Harry
Site Admin
Site Admin
Posts: 10639
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: HW rendering hangs

Post 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
Image Image Image Image
Post Reply