LibVLCSharp Streaming not working

This forum is about all development around libVLC.
juan01
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2023 12:15

LibVLCSharp Streaming not working

Postby juan01 » 21 Feb 2023 12:37

Hi,

I have implemented LibVLCSharp inside WPF application to show Raspberry Pi Camera streaming and I'm having problems only in one Platform.
Intel Pentium CPU N4200 1.10 Ghz
4GB RAM
64 bit operating system
Windows 10 Enterprise 2016 LTSB (10.0, build 14393)
DirectX version: DirectX 12
I have enabled VLC internal logging to debug and I have seen something strange comparing to a PC whitch works properly. I can see the messages zd candidates and I supose that maybe the problem.

VLC application is workwing correctly in same PC. What kind of problem could be happening here.

Here is the code whitch i'm using to initilize libvlc

Code: Select all

private static string[] LIBVLC_OPTIONS_NORMAL = { "--no-snapshot-preview", "--no-osd" }; private static string[] LIBVLC_OPTIONS_ROTATED = { "--no-snapshot-preview", "--no-osd", "--video-filter=transform", "--transform-type=180" }; private void InitializeLibVlc() { CreateMedia(); _mediaPlayer = new MediaPlayer(_media); _mediaPlayer.AspectRatio = "16:9"; _mediaPlayer.SetVideoTitleDisplay(Position.Disable, 0); AssociatedObject.MediaPlayer = _mediaPlayer; } private void CreateMedia() { _libVLC?.Dispose(); _media?.Dispose(); _libVLC = new LibVLC(enableDebugLogs: true, rotated ? LIBVLC_OPTIONS_ROTATED : LIBVLC_OPTIONS_NORMAL); _libVLC.Log += _libVLC_Log; _media = new Media(_libVLC, new Uri(_streamURL)); } private void _libVLC_Log(object sender, LogEventArgs e) { _logService.Write(CameraModule.LIBVLC_LOG, e.FormattedLog, LogCategory.Debug); } private void Play() { _mediaPlayer.Play(); }

Code: Select all

main Debug: VLC media player - 3.0.17.4 Vetinari main Debug: revision 3.0.17.4-0-gc650ce1a4e main Debug: Copyright © 1996-2022 the VideoLAN team main Debug: configured with /builds/videolan/vlc/extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-shout' '--enable-goom' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=x86_64-w64-mingw32' '--with-contrib=../contrib/x86_64-w64-mingw32' '--with-breakpad=https://win.crashes.videolan.org' '--enable-qt' '--enable-skins2' '--enable-dvdread' '--enable-caca' 'host_alias=x86_64-w64-mingw32' 'CFLAGS= ' 'CXXFLAGS= ' 'PKG_CONFIG=pkg-config' 'PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/lib/pkgconfig:/usr/lib/x86_64-w64-mingw32/pkgconfig' main Debug: creating audio output main Debug: looking for audio output module matching "any": zd candidates mmdevice Error: cannot initialize COM (error 0x80010106) directsound Debug: found 2 devices main Debug: using audio output module "directsound" main Debug: keeping audio output main Debug: Creating an input for 'stream.mjpg' main Debug: using timeshift granularity of 50 MiB main Debug: using timeshift path: C:\Users\Console\AppData\Local\Temp main Debug: `http://XX.XX.XX.XX:8000/stream.mjpg' gives access `http' demux `any' path `XX.XX.XX.XX:8000/stream.mjpg' main Debug: creating demux: access='http' demux='any' location='XX.XX.XX.XX:8000/stream.mjpg' file='\\XX.XX.XX.XX:8000\stream.mjpg' main Debug: looking for access_demux module matching "http": zd candidates main Debug: no access_demux modules matched main Debug: creating access: http://XX.XX.XX.XX:8000/stream.mjpg main Debug: (path: \\XX.XX.XX.XX:8000\stream.mjpg) main Debug: looking for access module matching "http": zd candidates http Debug: resolving XX.XX.XX.XX ... http Debug: outgoing request: main Debug: using access module "access" main Debug: looking for stream_filter module matching "prefetch,cache_block": zd candidates prefetch Debug: using zu bytes buffer, zu bytes read main Debug: using stream_filter module "prefetch" main Debug: looking for stream_filter module matching "any": zd candidates main Debug: no stream_filter modules matched main Debug: looking for stream_directory module matching "any": zd candidates main Debug: no stream_directory modules matched main Debug: attachment of directory-extractor failed for http://XX.XX.XX.XX:8000/stream.mjpg main Debug: looking for stream_filter module matching "record": zd candidates main Debug: using stream_filter module "record" main Debug: creating demux: access='http' demux='any' location='XX.XX.XX.XX:8000/stream.mjpg' file='\\XX.XX.XX.XX:8000\stream.mjpg' main Debug: looking for demux module matching "any": zd candidates main Debug: looking for xml reader module matching "any": zd candidates main Debug: using xml reader module "xml" webvtt Debug: subtitle demux discarded ts Debug: TS module discarded (lost sync) mod Debug: MOD validation failed (ext=mjpg) mjpeg Debug: discard MIME header: Content-Length: 29664 main Debug: selecting program id=0 main Debug: using demux module "mjpeg" main Debug: looking for video decoder module matching "any": zd candidates avcodec Debug: using ffmpeg Lavc58.134.100 avcodec Debug: CPU flags: 0x000813db avcodec Debug: allowing 5 thread(s) for decoding avcodec Debug: codec (mjpeg) started main Debug: using video decoder module "avcodec" main Debug: looking for meta reader module matching "any": zd candidates lua Debug: Trying Lua scripts in C:\Users\Console\AppData\Roaming\vlc\lua\meta\reader lua Debug: Trying Lua scripts in C:\Program Files (x86)\....\libvlc\win-x64\lua\meta\reader lua Debug: Trying Lua playlist script C:\Program Files (x86)\....\libvlc\win-x64\lua\meta\reader\filename.luac main Debug: no meta reader modules matched
Thanks for your help. With regards,
Last edited by juan01 on 22 Feb 2023 08:33, edited 4 times in total.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: LibVLCSharp Streaming not working

Postby Rémi Denis-Courmont » 21 Feb 2023 19:01

Your LibVLC build is broken, ostensibly because your CRT does not support C11.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

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

Re: LibVLCSharp Streaming not working

Postby mfkl » 22 Feb 2023 07:52

We need a lot more info, such as OS used and code for starters.
https://mfkl.github.io

juan01
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2023 12:15

Re: LibVLCSharp Streaming not working

Postby juan01 » 22 Feb 2023 08:23

Your LibVLC build is broken, ostensibly because your CRT does not support C11.
Hi, I don't understand what do you want to say with "your CRT does not support C11". What is CRT and C11? The PC screen is not a CRT screen.
With regards,

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: LibVLCSharp Streaming not working

Postby Rémi Denis-Courmont » 22 Feb 2023 08:30

CRT is C RunTime, and C11 is ISO C 2011.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

juan01
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2023 12:15

Re: LibVLCSharp Streaming not working

Postby juan01 » 22 Feb 2023 08:31

We need a lot more info, such as OS used and code for starters.
I have updated the original post with c# code and more details about Hardware and windows version.
With regards,

juan01
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2023 12:15

Re: LibVLCSharp Streaming not working

Postby juan01 » 22 Feb 2023 15:36

CRT is C RunTime, and C11 is ISO C 2011.
What could be the problem? We are using the last version of LibVLC natives from nuggets packages
VideoLAN.LibVLC.Windows v3.0.18

With regards,

juan01
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2023 12:15

Re: LibVLCSharp Streaming not working

Postby juan01 » 26 Feb 2023 21:51

Hi,

I have done an WPF application with only VLC Control and works ok on that computer but in my application whitch is using Prism didn't work. The vlc control is shown because elements inside vlc control are shown but the video is not playing.
Any ideas on what could be the problem?

With regards,

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

Re: LibVLCSharp Streaming not working

Postby mfkl » 27 Feb 2023 04:59

Please provide a full yet minimal sample of a WPF app based on Prism using libvlcsharp.
https://mfkl.github.io

juan01
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2023 12:15

Re: LibVLCSharp Streaming not working

Postby juan01 » 27 Feb 2023 11:22

I have created a basic Prism WPF application and it works on that computer, so maybe I have to add more prism feautures like showing regions or somethig like that.
It's so strange because our prism wpf application was working ok without any problems with VLC but it this computer or platform is not working.

juan01
New Cone
New Cone
Posts: 7
Joined: 21 Feb 2023 12:15

Re: LibVLCSharp Streaming not working

Postby juan01 » 28 Feb 2023 19:50

I have had to deconstruct all my app to investigate what was the problem. I have try also with a simple app with prism. The problem was the AllowTransparency Property set to true. I have seen that there is an issue with that property


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests