Page 1 of 1

VLC errors when running Monteray under UTM VM

Posted: 20 Dec 2022 08:00
by filbe
Hi,
Thanks for a great product!

A low priority issue -

I bought a new Mac, and now find so much of my old software does not work.
I like to test new software in a Virtual Machine - only UTM seems to work fairly well.
Running Monterey 12.6 in UTM under host also running Monterey 12.6; VLC is version 3.0.18.

Video's work fine on the host - get sound but jumbled video on VM. The debug log repeats the following many times:
main debug: looking for text renderer module matching "any": 3 candidates
macosx debug: Activated assertion NoIdleSleepAssertion through IOKit (36583)
macosx debug: toggle playlist from state: removed splitview 0, minimized view 0. Event 2
macosx debug: toggle playlist to state: removed splitview 0, minimized view 0
main debug: using text renderer module "freetype"
main debug: looking for video converter module matching "any": 16 candidates
swscale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality)
main debug: using video converter module "swscale"
main debug: looking for video converter module matching "any": 16 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video converter module "yuvp"
main debug: Deinterlacing available
main debug: deinterlace 0, mode auto, is_needed 0
main debug: looking for vout window module matching "any": 1 candidates
macosx debug: Opening video window
macosx debug: Releasing old IOKit other assertion (36583)
macosx debug: Activated assertion NoDisplaySleepAssertion through IOKit (36584)
macosx debug: toggle playlist from state: removed splitview 0, minimized view 0. Event 2
macosx debug: toggle playlist to state: removed splitview 0, minimized view 0
macosx debug: returning videoview with proposed position x=0, y=0, width=1920, height=1080
main debug: using vout window module "macosx"
main debug: Opening vout display wrapper
main debug: looking for vout display module matching "any": 7 candidates
main debug: VoutDisplayEvent 'resize' 1920x1080
caopengllayer error: Failure to create CGL context!
main debug: VoutDisplayEvent 'resize' 1920x1080
macosx error: Initialization of open gl view failed
main debug: no vout display modules matched
main error: video output creation failed
main debug: removing module "freetype"
main debug: removing module "yuvp"
main debug: removing module "swscale"
main error: failed to create video output

Maybe failing because UTM does not yet support required drivers etc?

Thanks again for your great work!

Have a merry Xmas

Cheers
Phil

Re: VLC errors when running Monteray under UTM VM

Posted: 24 Dec 2022 08:20
by fkuehne
The OpenGL context cannot be created which is probably due to a bug or limitation in the UTM graphics card drivers.

Re: VLC errors when running Monteray under UTM VM

Posted: 29 Dec 2022 04:46
by filbe
Thanks Felix.

It seems UTM on MAC M1 chip does not yet support OpenGL.

Yet Quicktime player works fine. Can VC use the same video drivers as Quicktime?

Cheers
Phil

Re: VLC errors when running Monteray under UTM VM

Posted: 02 Jan 2023 13:39
by fkuehne
We need to do a Metal-based video output instead of OpenGL. We might do it for version 4 of VLC also to support HDR rendering correctly.