I’m rendering a 1080x1620 video. I can do this both using material override or render texture.
When viewing this in the editor it all is smooth.
When I preview it in an Android build the video drops a ton of frames (range of 10-40 frames per second with 60 fps video).
The audio is also completely messed up. When disabling skip frame in video player I get AudioSampleProvider buffer overflow. 74 sample frames discarded.
The discarded samples can be hundreds of samples as well.
I already tried to change the audio settings video proj settings and via code
AudioConfiguration config = AudioSettings.GetConfiguration();
config.sampleRate = 48000;
config.dspBufferSize = 256;
AudioSettings.Reset(config);
Using unity 2022.3.12 URP
Tested on multiple Android devices
I load the videos using an imported video clip, not URL.
I need transparency, so I tried VP8. I also tried h265 and h264, all with the same results
Any help is appreciated, as I am running out of options.
This is for an ongoing hackathon, so I cannot spend the money for AVPro sadly (and the whole system is already built on the video player)