macOS "no vout display modules matched" with set_nsobject

This forum is about all development around libVLC.
xjbeta
New Cone
New Cone
Posts: 1
Joined: 20 Feb 2020 08:21

macOS "no vout display modules matched" with set_nsobject

Postby xjbeta » 20 Feb 2020 16:23

libvlc cannot match vout display module "macosx" after version "vlc-4.0.0-20181123-0317-dev.dmg"

Code: Select all

VLC LOG: looking for vout display module matching "any": 8 candidates VLC LOG: no vout display modules matched

Simple Swift Code

Code: Select all

var instance: OpaquePointer? var mediaPlayer: OpaquePointer? let pluginPath = "/Applications/VLC.app/Contents/MacOS/plugins" // new version path "/Applications/VLC.app/Contents/Frameworks/plugins" if setenv("VLC_PLUGIN_PATH", pluginPath, 1) != 0 { print("Set plugins path error \(errno)") } let mrl = "file:///Users/xxx/xxx/xxx.mkv" instance = libvlc_new(0, nil) let v = view! let vv = UnsafeMutableRawPointer(Unmanaged.passUnretained(v).toOpaque()) let mediaI = libvlc_media_new_location(instance, mrl) mediaPlayer = libvlc_media_player_new_from_media(mediaI) libvlc_media_player_set_nsobject(mediaPlayer, vv) libvlc_media_player_play(mediaPlayer)


libvlc "dylib" "include" and "plugins" in version "vlc-4.0.0-20181123-0317-dev.dmg"
[url]https://nightlies.videolan.org/build/macosx-intel/vlc-4.0.0-20181123-0317[/url]

Log File
[url]https://gist.github.com/xjbeta/b06539956e1e4ac570f45f885bc967f6[/url]

Code: Select all

VLC LOG: using vout window module "wdummy" VLC LOG: Opening vout display wrapper VLC LOG: looking for vout display module matching "any": 7 candidates VLC LOG: resized to 1920x1080 VLC LOG: using vout display module "macosx"

libvlc "dylib" "include" and "plugins" in version "vlc-4.0.0-20200220-0326-dev.dmg"

Other Tested version
vlc-4.0.0-20181130-0317-dev
vlc-4.0.0-20181214-0317-dev
vlc-4.0.0-20190104-0320-dev
vlc-4.0.0-20190607-0418-dev

[url]https://nightlies.videolan.org/build/macosx-intel/vlc-4.0.0-20200220-0326[/url]

Log File
[url]https://gist.github.com/xjbeta/adaad7f0a83467f3edcd1acb4c0d17c9[/url]

Code: Select all

VLC LOG: using vout window module "wdummy" VLC LOG: looking for inhibit module matching "any": 1 candidates VLC LOG: using inhibit module "iokit_inhibit" VLC LOG: resized to 1920x1080 VLC LOG: Inhibiting display sleep VLC LOG: deinterlace -1, mode auto, is_needed 0 VLC LOG: Opening vout display wrapper VLC LOG: looking for vout display module matching "any": 8 candidates VLC LOG: no vout display modules matched VLC LOG: video output display creation failed

Full Xcode Project (Xcode 11.3.1 (11C504) macOS 10.15.3 (19D76))
[url]https://github.com/xjbeta/libvlc-test[/url]


Usage:
1. Download the corresponding version of vlc.dmg
2. copy vlc.app to /Applications/vlc.app
3. open vlc.app once (macOS security)
4. Open "livblc test.xcodeproj"
5. Update video path ViewController.swift let mrl = "YOUR VIDEO PATH"
6. RUN

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 15 guests