02-26-2025 12:38 PM
Had a nightmarish experience with crashing that ended up being related to my video players when I released an update for my game. Took me 8 hours straight to fix. Hope this can help anyone else working with video players on Quest in Unity.
I'll be addressing the errors I got in my adb logs when my game was crashing. These were mainly happening on Quest 3.
AndroidVideoMedia: Error -10000 while configuring codec.
I think this happens when the hardware is getting overloaded. I was using 1920 x 1080p videos, and I could have up to 7 at one time. I reduced the amount of concurrent video players to 3 at max, and I reduced the resolution and bitrate of the video clips.
AndroidVideoMedia: Error 1100 while starting codec.
I think this happens when you use a video clip that doesn't meet the Android supported format standards (https://developer.android.com/media/platform/supported-formats). It could also just be an issue with Unity transcoding in general, I'm not sure.
Basically, I got this error when I turned transcoding on my video clips on in Unity, and then shrunk the dimensions of my videos down to 854 x 480. I also had encoding format set to auto, so I don't know what encoding was really being used.
I was able to fix this by turning off transcoding in Unity for all my video clips, and manually using the Davinci Resolve video editor to render all my videos at H264 1280 x 720p, which actually met the recommended specifications shown in the Android docs.