Stuttering with certain encodes (CVideoPlayerAudio::Process - stream stalled)

Hi I have added the following two files.

#autostart.sh

/storage/.config/setbuf8.sh &

AND

#/storage/.config/setbuf8.sh

while true; do echo 8 > /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin ; sleep 10; done &

I will see if the wife spots any skipping over the next couple of days then try 12.

If I can figure out how to find the the resolution of the file that is currrently being played I will see if I can set the buffer dynamically by resolution