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
2
votes
1 answer

Media from capture card in Unity with Vlc plugin for Unity

I am trying to get the camera feed from a blackmagic capture card into the mediaplayer of the Vlc plugin for Unity. What i have done : I can get the capture device with the vlc desktop application, so camera and capture card work fine. I can run…
YM_P
  • 41
  • 5
2
votes
2 answers

Include a Libvlc videoview into a layout

can anybody help me with a c# xamarin code sample how to include into a layout as a VideoView control a LibVLC VideoView? I want to display a short video and then, after it's finished to return on my main layout. I succeeded to include the VLC…
miki74
  • 21
  • 4
2
votes
1 answer

libVLCSharp fail to create MediaList

I'am playing arround with libVLCSharp and I found a wired behavior. Actually I have no problem creating a media and playing it with MediaPlayer. However when I try to create a Media from MediaList it breaks with the followig message: Failed to…
Dmitry
  • 2,033
  • 1
  • 22
  • 31
2
votes
2 answers

How to achieve looping playback with Libvlcsharp

I have libvlcsharp working for both my windows and android project. Its very nice and easy to use! But I can't find any way to make the playback automatically loop I've tried using the mediaplayer event handlers to restart playback and passing…
Ben W
  • 23
  • 1
  • 3
1
vote
1 answer

Xamarin Custom View OnElementChanged never runs

I got a very simple application showing a VideoView, whenever I change tabs in my application it crashes because it says "View is Null", now I found a solution online making a custom renderer…
1
vote
1 answer

How to disable/minimize buffering in LibVLCSharp?

I already tried FileCaching = 0, NetworkCaching = 0, but the playback delay still appears to be very high (several seconds). I am using the Avalonia view from LibVLCSharp.Avalonia NuGet package, but that should not matter. Here's how the code looks…
LOST
  • 2,956
  • 3
  • 25
  • 40
1
vote
2 answers

Streaming MP4 over WebRTC using .NET and LibVLCSharp

I have a local .mp4 file that I would need to stream over WebRTC. For streaming I believe I first need to get .mp4 file into RTP packets from which I know how to transfer them over WebRTC. I'm looking at library LibVLCSharp with which I can send rtp…
Mr Squidr
  • 143
  • 1
  • 8
1
vote
0 answers

LibVLC/LibvlcSharp/Windows RTSP -- Is There A Way To Tell if a Camera has hung?

Using LibVLC/LibVLCSharp in Windows (Winforms) and using RTSP occasionally a camera will hang. Whatever the cause it is worth disposing of the MediaPlayer, creating a new one and trying again. This usually works. However, it is difficult to tell if…
1
vote
1 answer

LibVlcCsharp WPF. Show content over VideoView

I was using Meta.Vlc wrapper in a WPF application and I'm doing the migration to LibVLCSharp official library. With Meta.Vlc I was able to show controls over videoview and with VideoView control of LibVLCSharp it seems that is always on top and…
JuanDYB
  • 590
  • 3
  • 9
  • 23
1
vote
1 answer

How to use libvlcsharp to read titles and chapters per title for a DVD player

I'm working on a c# dvd player. I'm using libvlcsharp and am able to play video from the disk when specifying the title and chapter. The problem is I need to know a list of titles/chapters that are available to have the user pick from. I've tried…
Mike
  • 11
  • 2
1
vote
1 answer

Encode and Decode frames by libVLC (C#)

I am new to VLC or libVLC. I am using C# (.Net Framework 4.8) and targeting to encode and decode video frames (each frame in form of Bitmap or byte array of Bitmap) as byte arrays in H.264 video streams, i.e., each frame being encoded as a byte…
Linus
  • 51
  • 4
1
vote
1 answer

VideoLan VLC media player showing green texture unity application in different screens

Currently I am working on development of an Interactive standalone application in Unity 2020.3.30f1. Here I am using VLC player (https://assetstore.unity.com/packages/tools/video/vlc-for-unity-windows-133979#description) for streaming external…
dinesh T
  • 19
  • 4
1
vote
1 answer

How can I use webcam as a source of Media with LibVLCSharp

I want to stream my webcam. How can I do that? using var libVLC = new LibVLC(enableDebugLogs: true); using var media = new Media(libVLC, new Uri("HD Webcam")); using var mp = new MediaPlayer(media); mp.Play(); Also want to use libVLCharp as…
1
vote
0 answers

I'm trying to figure out the correct addoption for vlcsharp to use addoptioon for adding a logo to an avalonia control

I'm building an app for Avalonia which plays videos and shows images on a raspberry pi. I'm able to show text such as the date/time on the bottom of an image, but not on a libvlc control (for now). I see open issues on that, so came up with a hack…
Joe Farro
  • 11
  • 1
1
vote
0 answers

UWP VLC media player makes heavy use of the UI thread while buffering

I am using LibVLCSharp and VideoLAN.LibVLC.UWP nuget packages in an UWP app that runs on XBOX. My app does video streaming and I have been using the default Windows Media controls and they work fine. I wanted to also support VLC to handle more…
1
2
3
14 15