Green screen when playing mpg/mpeg videos on Oculus Quest
Summary
Hello, me again. I'm continuously testing VLC on my Quest devices. There is a problem when it comes to certain formats (as far as I know, mpg/mpeg/m2ts etc I guess) the screen object renders green color and the audio track is normally playing. I don't know if it's a bug or just something else.
Minimal project and steps to reproduce
- Import VLC for Android from assets store.
- Modify the VLC Minimal Playback script to play your local mpg/mpeg file.
# For example /sdcard/Movies/test.mpeg. if(_mediaPlayer.Media == null) { // playing remote media _mediaPlayer.Media = new Media(new Uri("/sdcard/Movies/test.mpeg")); } _mediaPlayer.Play(); - Add the VLC Minimal Playback Scene to the compile list.
- Compile, install and run APK on Quest device.
- Wear the Quest device and see the screenshot below.
What is the current bug behavior?
The video screen shows green.
What is the expected correct behavior?
The video screen shows correct video frame.
Does it work on other plaforms? Does it work with the official VLC apps?
-
Other platforms?
- Yes, it works on my cellphone (Android 12)
-
Works with official VLC?
- Yes, it works with official VLC apps on Quest device.
Relevant logs and/or screenshots
Screenshot for VLC Minimal Playback demo on Quest playing the MPEG file

Screenshot for official VLC on Quest playing the MPEG file.

Screenshot for VLC Minimal Playback demo on my phone playing the MPEG file

Environment
- OS: Android
- Version: 10 (API 29)
- Device: Oculus Quest 2
- LibVLC version and architecture: 4.0.0-dev-20419-g490c04ad03
- LibVLCSharp version: 4.0.0.0
- VLC Unity plugin version: 0.1.6
- Scripting backend used: Mono (Default)
- Target Architecture: armv7 (Default)
Possible fixes
Edited by Vertex