Questions tagged [libvlcsharp]

LibVLCSharp is a cross-platform audio and video API for .NET platforms based on VideoLAN's LibVLC Library. It provides a comprehensive multimedia API that can be used across mobile, server and desktop to render video and output audio as well as encode and stream.

The official repository URL for this repo is https://code.videolan.org/videolan/LibVLCSharp.

Check out libvlc-nuget to get a basic understanding of how libvlc works, what it can offer and how to install it with NuGet. Some of the features include:

  • Play every media file formats, every codec and every streaming protocols
  • Run on every platform, from desktop (Windows, Linux, Mac) to mobile (Android, iOS) and TVs
  • Hardware and efficient decoding on every platform, up to 8K
  • Network browsing for distant filesystems (SMB, FTP, SFTP, NFS...) and servers (UPnP, DLNA)
  • Playback of Audio CD, DVD and Bluray with menu navigation
  • Support for HDR, including tonemapping for SDR streams
  • Audio passthrough with SPDIF and HDMI, including for Audio HD codecs, like DD+, TrueHD or DTS-HD
  • Support for video and audio filters
  • Support for 360 video and 3D audio playback, including Ambisonics
  • Able to cast and stream to distant renderers, like Chromecast and UPnP renderers.

Most things you can achieve with the regular VLC desktop app, you can also achieve using libvlc.

Supported platforms Mono, .NET Framework and .NET Core runtimes are supported.

Xamarin.Android
Xamarin.iOS
Xamarin.tvOS
Xamarin.Mac (Cocoa)
Windows Classic (WPF, WinForms, GTK)
Windows Universal (UWP for Desktop, mobile and Xbox)
Linux including desktop, server and Raspberry Pi (GTK)
Xamarin.Forms
Uno Platform (UWP, Android, iOS)
.NET Standard 1.1 and 2.0
.NET Framework 4.0 and later
.NET Core (including ASP.NET Core)
Unity3D
    Windows Classic
212 questions
3
votes
2 answers

C# LibVLCSharp issue with playing YouTube

I am trying to play YouTube using the LibVLC on multiple instances, in a WPF app. This works fine maybe 75% of the time, but stream freeze for a second or 2 and get pixeleted the other 25%. This seems to be random. Here is my code: public async void…
Franck E
  • 629
  • 8
  • 26
3
votes
2 answers

VLC libvlc_state_t State Machine?

Does anyone know if the VLC project has a defined state machine for the libvlc_state_t states? The state machine states are exposed via libvlc and then again via bindings into other languages (for example, LibVLCSharp). The enum is documented here,…
J Trana
  • 2,150
  • 2
  • 20
  • 32
3
votes
1 answer

WPF: LibVLCSharp integration in setup project/release version

So I have been against a wall for this one for a while now. My requirement is to play .mp4 video file in a wpf application. Sounds simple enough, right? At first, I used built-in MediaElement class and everything worked. But it turns out,…
Starwave
  • 2,352
  • 2
  • 23
  • 30
3
votes
1 answer

To which Project should LibVLC dependencies be added?

I have a Solution with .NET Framework Project A which builds a winforms application containing a class, MyPlayer which requires LibVLCSharp. In order for the application to build and run correctly I had to add the following Nuget…
kwill
  • 3,211
  • 1
  • 16
  • 18
3
votes
2 answers

C# LibVLCSharp player direct feed media

There is a C# application which uses LibVLC via NuGet packages. These are the packages: https://www.nuget.org/packages/LibVLCSharp.WinForms https://www.nuget.org/packages/VideoLAN.LibVLC.Windows With these packages it is very easy to drop some…
Daniel
  • 2,318
  • 2
  • 22
  • 53
3
votes
1 answer

How to control audio pitch-shift in LibVLCSharp?

I'm currently developing a karaoke system with c# and using LibVLCSharp. Can anyone please help me how to change audio pitch shifter with it? There's libscaletempo_plugin and libscaletempo_pitch_plugin module in \libvlc\win-x86\plugins\audio_filter…
Wong
  • 86
  • 4
2
votes
1 answer

MSIX Include Additional Required Files

I have a simple WinForms app that I'm trying to package with MSIX. The app itself requires additional files that when I build the MSIX App Project doesn't copy/include. Specifically this LIBVLC folder that gets included during the WinForms app build…
aherrick
  • 19,799
  • 33
  • 112
  • 188
2
votes
2 answers

C# LibVLCSharp switching media stream causes HTTP exception

We are using libvlcsharp to play a live mp3 network stream in our xamarin.ios app using the following code snippet public bool Play(Uri uri) { Media newMedia = new(this.LibVLC, uri); Media? oldMedia = this.VLCMediaPlayer.Media; bool…
Frederik Hoeft
  • 1,177
  • 1
  • 13
  • 37
2
votes
1 answer

LibVlcSharp Mystery: Visual Studio deletes libvlc.dll files on Debug>Start Debugging

I have an intermitted build issues related to LibVLCSharp and the bin\Debug outputs. When I build a Solution containing a LibVLCSharp Project, I can see the libvlc.dll in the final win-x64 output folder, but when I start debugging, the following…
mcolhoun
  • 489
  • 4
  • 11
2
votes
2 answers

Why Read and ReadAync are producing totally different results

I have been using this code to capture the webcam and I have been trying to learn from it and make it better. Rider IDE suggested I should use an async variant of MemoryMappedViewStream.Read but it doesn't work at all. It produces all-black images…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
2
votes
1 answer

C# WPF - VLC - LibVLCSharp.Shared.VLCException: 'Failed to load required native libraries

I have tested the WPF minimal VLC sample on code.videolan website, and it works fine. I then prepare (and package) the app for the Windows store following Microsoft documentation here, and basically it no longer works with the failed to load libs…
Franck E
  • 629
  • 8
  • 26
2
votes
1 answer

Why is MediaPlayerElement not playing video when hosted in a ContentView?

I have a working example of my issue here. Basically: when I place the LibVLCSharp MediaPlayerElement into MainPage.xaml directly, I'm able to get playback. When I try to create a reusable control by hosting the MediaPlayerElement in a ContentView…
Ben
  • 314
  • 2
  • 11
2
votes
1 answer

How to pick video file and play it via VideoLAN.LibVLC.UWP

So, how to select video file by FilePicker (result is StorageFile) and use the result to set source and play video file by VideoLAN.LibVLC.UWP. The problem is following: I can get path but not permission to the folder. Only solution is pick the…
Weissu
  • 409
  • 3
  • 15
2
votes
1 answer

How can VLC play 24-bit PCM audio on general PC?

I've tried to play out an 24 bit PCM audio(s24le) by using Vlcsharp and NAudio. I set audio play callback by calling libvlc_audio_set_callbacks() to get raw sample data firstly. Next, I tried two sample video. The one has 24-bit PCM audio, and the…
Ray
  • 55
  • 1
  • 5
2
votes
1 answer

dlls disappear when performing an incremental build

I am compiling a solution using Visual Studio 2019. This solution has two projects, we can call them Common and Program. Program depends on Common and Common depends on the NuGet packages LibVLCSharp, LibVLCSharp.WPF and VideoLAN.LibVLC.Windows. If…
Ottavio Campana
  • 4,088
  • 5
  • 31
  • 58
1
2 3
14 15