[UWP] LibVLCSharp - problem with dshow

This forum is about all development around libVLC.
addaco
New Cone
New Cone
Posts: 1
Joined: 22 Feb 2020 00:23

[UWP] LibVLCSharp - problem with dshow

Postby addaco » 22 Feb 2020 00:33

I am trying to use LibVLCSharp in a UWP application to connect to my USB camera.
I tried first using the vlc.exe application and it works fine.
3.0.8 version:
vlc dshow:// :dshow-vdev="Device Camera" : dshow-adev = none

Unfortunately, when I try the same in a code it unfortunately does not work.

Code: Select all

LibVLC = new LibVLC(eventArgs.SwapChainOptions); LibVLC.Log += LibVLC_Log; MediaPlayer = new MediaPlayer(LibVLC); Media media = new Media(LibVLC, "dshow://", FromType.FromLocation); media.AddOption(":dshow-vdev=\"Camera Device\""); media.AddOption(":dshow-adev=none"); media.AddOption(":live-caching=300"); MediaPlayer.Play(media);
Logs:

VLC media player - 3.0.9 Vetinari
Copyright © 1996-2019 the VideoLAN team
configured with ../configure '--enable-winstore-app' '--disable-vlc' '--enable-lua' '--disable-vlm' '--disable-faad' '--enable-theora' '--disable-twolame' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--disable-x264' '--enable-realrtsp' '--enable-live555' '--enable-shout' '--disable-goom' '--disable-caca' '--disable-qt' '--disable-skins2' '--enable-sse' '--enable-mmx' '--disable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-mad' '--disable-a52' '--enable-dsm' '--disable-smbclient' '--disable-vcd' '--disable-crystalhd' '--disable-dxva2' '--enable-flac' '--enable-jpeg' '--enable-vpx' '--enable-postproc' '--enable-gme' '--host=x86_64-w64-mingw32' 'host_alias=x86_64-w64-mingw32' 'CC=x86_64-w64-mingw32-gcc' 'LDFLAGS=-lnormaliz -lwinstorecompat -lruntimeobject -lsynchronization -lvcruntime140_app -lucrt -lwindowsapp' 'CPPFLAGS=-D_WIN32_WINNT=0xA00 -DWINVER=0xA00 -DWINSTORECOMPAT -D_UNICODE -DUNICODE -DWINAPI_FAMILY=WINAPI_FAMILY_APP' 'CXX=x86_64-w64-mingw32-g++' 'PKG_CONFIG_LIBDIR=/builds/videolan/vlc-winrt/libvlc/vlc/contrib/winrt-x86_64-ucrt/../x86_64-w64-mingw32/lib/pkgconfig'
looking for audio output module matching "winstore": 4 candidates
using audio output module "winstore"
keeping audio output
creating audio output
revision 3.0.8-96-g2bfaa8860b
Creating an input for 'dshow://'
using timeshift granularity of 50 MiB
using default timeshift path
`dshow://' gives access `dshow' demux `any' path `'
looking for access_demux module matching "dshow": 6 candidates
no access_demux modules matched
looking for access module matching "dshow": 22 candidates
no access modules matched
Your input can't be opened
VLC is unable to open the MRL 'dshow://'. Check the log for details.

I allow access to the microphone and camera in Windows Settings for my application

did anyone come across a similar problem?

Thanks for the help!

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: [UWP] LibVLCSharp - problem with dshow

Postby mfkl » 25 Feb 2020 04:10

DirectShow doesn't work on UWP, I believe, so dshow support is not enabled in libvlc uwp. You will have to go the win32 way.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests