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
0
votes
0 answers

LibVLCSharp subscribing to "EncounteredError" event

I'm trying to catch errors on RTSP stream and restart several players and recorders. Current situation: using VLCPlayer = LibVLCSharp.Shared.MediaPlayer; // Create player LibVLC _libVLC = new LibVLC(); VLCPlayer vlcPlayer = new…
Sakvojage
  • 21
  • 6
0
votes
0 answers

What and how to resolve "Failed to create video converter" in LibVlcSharp

Playing with the example PreviewThumbnailExtractor.Skia of libvlcsharp-samples-windows.sln, and changing the input file with other input files I got the error: [Error] main:Failed to create video converter. Why is that and how can I resolve it. I…
0
votes
0 answers

App crash when playing video to the end with vlc-unity on Pico 4

I was migrating a Unity3D project to the Pico 4 VR headset. When I tried to play some videos to the end, it always crashes. I tried most of my video files, but almost every time when the video is completed the app crashed. Here's the adb…
Virtroid
  • 43
  • 7
0
votes
1 answer

How to Play and Record UDP URL Video in WPF C#?

I have to Play and Record UDP Url Video in my WPF Application, For that purpose currently I am using vlc.dotnet.wpf package In Xaml side I have Assembly xmlns:wpf="clr-namespace:Vlc.DotNet.Wpf;assembly=Vlc.DotNet.Wpf" Have Control to play…
Mr. Xek
  • 81
  • 3
  • 12
0
votes
0 answers

Thread management of libvlcsharp

My application has a limit on number of threads. When we exceed 100 threads, it will show handles leakage. Is there an option to reduce the thread number when using mediaplayer to play streaming RTSP? Thanks a lot! I used LibVLCSharp.WinForms: 3.6.7…
Carla_7
  • 1
  • 1
0
votes
0 answers

When LibVLCSharp plays to the end, it cannot seek forward

I use LibVlcSharp.WPF as the player to play the video, and I want to realize the functions of Seek To End and Seek To Start, but after Seek To End, changing the Time has no effect I hope that after SeekToEnd, I can continue to operate MediaPlayer's…
0
votes
1 answer

How to list all files in network share (not just images and videos) with libVLC

I want to use libVLC (C#) to browse network shares. This works for me, but only for media files (images, videos, etc.) Media media = new Media(new Uri(networkPath)); var parseTask = media.ParseAsync(_libVLC, MediaParseOptions.FetchNetwork); …
mihca
  • 997
  • 1
  • 10
  • 29
0
votes
0 answers

how to select & play one program based on PID or PMT from a stream over UDP via libVLCSharp or other programming tools?

I have one multiple program transport stream (MPTS) with source IP address udp://@228.110.1.1:1234. I wanna develop a program like Mosaic Streaming player that detect available program in udp://@228.110.1.1:1234 till we choose one to play. (demux…
0
votes
1 answer

How do I check authentication while searching local media servers via libvlc or libvlcsharp

I'm now testing the local network feature of libvlcsharp. I've checked the example here worked fine when listing different servers in the local network. But I don't know if I missed something when opening some SMB servers that need certain…
Virtroid
  • 43
  • 7
0
votes
1 answer

Avalonia / LibVLCsharp support for iOS, Android and WASM

I'm planning to create a cross platform (Windows, Linux, macOS, Android, iOS, Wasm) audio player using latest AvaloniaUI along with LibVLCSharp. Unfortunately only support for Windows, Linux and macOS is listed for Avalonia. I think that this might…
sandreas
  • 101
  • 1
  • 7
0
votes
3 answers

Read audio file duration in C# on Linux with .net 6

I have an asp.net core API that was recently updated from .net5 to .net6. There is a piece of code that should read a duration of an audio file. The code that seems to have worked on previous versions was this: try { // // NAudio -- Windows…
mobearette
  • 377
  • 10
  • 26
0
votes
0 answers

Why does VLC force 360 videos to show only the center viewport?

I currently use the vlc for unity (libvlcsharp) for a media player project. It performs well but when I play the 360 video it automatically shows the center viewport of the panorama video due to the metadata. Why does the VLC do things like this?…
Virtroid
  • 43
  • 7
0
votes
1 answer

How to get the video time in LibVLCSharp in c#

My code is: public Form1() { InitializeComponent(); Core.Initialize(); this.KeyPreview = true; this.KeyDown += new KeyEventHandler(ShortcutEvent); oldVideoSize = videoView1.Size; oldFormSize =…
0
votes
0 answers

Creating and Disposing a LibVLC instance object multiple times causes program to exit?

C# console application built in VS2022 using LibVLCSharp 3.6.6 and LibVLC for Windows 3.0.17.4. I'm stress-testing a RTSP client class that uses libVLCSharp to stream from an IOT camera. In order to check for memory leaks, I've been creating my…
0
votes
0 answers

Xamarin forms LibVlc not able to to change aspect ratio on ios

I have a video using LibVLC and want to force the video to fit a specific size on the screen.(This will stretch the video slightly). I was looking at the question why i can't change my video size in xamarin forms ios libvlcsharp as it seems to be a…