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
1
vote
2 answers

libVLCsharp.forms can not play Android resource video file while iOS can

Trying to use libvlcsharp.forms in xamarinForms project. Need to play resource video files. Installed libVLCsharp.Forms, VideoLan.LibVLC.Android, VideoLan.LibVLC.IOS Copied an mp4 file to iosProject/Resources; marked as BundleResource. Copied same…
Add080bbA
  • 1,818
  • 1
  • 18
  • 25
1
vote
1 answer

How to change font and size of subtitles in libvlc sharp 3.4.0?

Seems i'm not getting the right way to code this. I can do almost everything done to my media player be functional except for this.
1
vote
1 answer

How to put an auto show panel over a LibVLCSharp.WPF.VideoView?

I'm writing a WPF desktop application, with some video playback functions. I decided to use LibVLCSharp.WPF to complete the playback task. Xaml code:
1
vote
1 answer

How can I clear the media from the MediaPlayer when it has stopped

I have a VideoView and in the code behind I create the MediaPlayer and a Media object to play a video. When I stop in the middle or it stops at the end, the last frame stays visible. When I load the same or another video in the same player, you see…
Martin Tirion
  • 1,246
  • 1
  • 7
  • 10
1
vote
1 answer

Is there a way to forward RTSP in C# preferably using LibVLCSharp?

I'm trying to create an application aggravating multiple RTSP's for use in a mobile app. The idea is that i run a simple WPF app on Windows PC connected to IP cameras at home and a xamarin app connects to it. I want the WPF program to relay needed…
Ahacz
  • 33
  • 1
  • 4
1
vote
1 answer

UWP with LibVLC.UWP no video and/or audio?

I have a UWP app (target version 1903 Build 18362) where I want to embed the VLC video player. This is what I experienced: Adding LibVLCSharp 3.3.1 Adding VideoLAN.LibVLC.UWP 3.2.0 Result: when I capture events he says he's buffering and playing,…
Martin Tirion
  • 1,246
  • 1
  • 7
  • 10
1
vote
2 answers

RTSP stream is not correct

I am trying to stream and RTSP video only stream from my webcam and consume the feed inside a VM (Docker container) on the same machine. Here are the commands line args I'm using: _vlcInstance = new LibVLCSharp.Shared.LibVLC("--dshow-vdev=Microsoft…
runninggeek
  • 147
  • 2
  • 11
1
vote
2 answers

How to use LibVLCSharp to stream in game footage from Unity?

I would like to implement an application that is composed by a server application (built with Unity for Windows), where the actual simulation is running, and a client application (built with Unity for Android) to which the rendered game view is…
Benjamin Zach
  • 1,452
  • 2
  • 18
  • 38
1
vote
1 answer

libvlcsharp : Get the logs per player

I have a WPF application with multiple VLC player, (using LibVLCSharp.WPF). For each player, I create a new instance of LibVLC and I subscribe to the Log event. public Player() { InitializeComponent(); _libVLC = new…
sroll
  • 752
  • 7
  • 20
1
vote
2 answers

How do I adjust the video resolution?

I'm trying to adjust the resolution of the incoming H.264 RTSP stream. I am running on Windows 10 for now, but will eventually move this to Linux. I am creating the LibVLC object passing in several command line args, but nothing I have tried affects…
runninggeek
  • 147
  • 2
  • 11
1
vote
1 answer

DllNotFoundException: Unable to load DLL 'libvlc': The specified module could not be found

I am setting up a video player using LibVLCSharp (Vlc nuget package). I have installed VideoLAN.LibVLC.Windows and LibVLCSharp.WPF and so far everything looks fine before I compile and run my code. My VideoPlayer.xaml.cs file like this: using…
user11338283
1
vote
3 answers

Show video in Avalonia UI

I started using the Avalonia during creating an app in C#. I saw that in the library is an "Image" Control, but is it possible to show video in Avalonia? For example with using LibVLCSharp? --EDIT I forget to mention that my main goal is running…
Art Base
  • 1,739
  • 3
  • 15
  • 23
1
vote
1 answer

How to use LibvlcSharp on Linux?

I'm trying to use LibvlcSharp on a linux installation (Ubuntu 18.04). I'm following all the instructions, including this one Getting started on LibVLCSharp.Gtk for Linux but my application always crash. It's working perfectly on windows, because…
1
vote
1 answer

LibVLCSharp.WPF VideoView.Content (overlay) scrolling

I am trying to include VideoView with some overlay in a changing view (scrolling, resizing, etc.). The problem is, that the overlay stays in the same position. I've tried to fix it, I've searched for a solution, but I wasn't able to find or come up…
gabrielkerekes
  • 468
  • 4
  • 10
0
votes
0 answers

Is it possible to view TIF image in VLC and if so - how

I'm trying to load Tif image in VLC viewer. It is mentioned that TIF is supported but the image is not displayed. When I do the following: In VLC go to Advanced preferences -> Demuxers ->Image - I uncheck the Decode option and then the image is…