so I  played around with vp9 enciding a bit more.<div>apoarently there is vp9 lossless mode, and additionally libvpx can support high bit depth if configured so. </div><div><br></div><div>I also tried to remove (currently unused?) libavdevice build from ffmpeg, and fix termux breakage (libandroid-shmem lib was missing) </div><div><br></div><div>try attached patches and check if vdpau/vaapi still works? </div>