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

Livestreaming in WPF using LibVLCSharp and SDP file

I am able to open an sdp file in VLC to view a udp livestream from gstreamer. I would like to do the same in WPF. I followed this example: https://github.com/videolan/libvlcsharp/blob/3.x/samples/LibVLCSharp.WPF.Sample/Example2.xaml.cs But edited…
Jamie9057
  • 1
  • 1
0
votes
0 answers

Winforms VLC is unable to play any http/https video

I'm trying to play an HLS on a WinForms application. I've found out that MediaPlayer doesn't support this format, but the VLC lib does. But when I'm trying to stream the HLS with the VLC lib, it doesn't work. I then tested the VLCControler with the…
0
votes
0 answers

How to deal with VLC memory leak of simply playing & stoping with video filter on

I'm seeing a memory leak (10M each time) when I play->stop->play->stop a local mp4 file using both libvlcsharp and the officially released VLC media player(3.0.16) when video filter is applied. Since I'm having multiple(around 10) VideoView…
Craab
  • 111
  • 1
  • 5
0
votes
1 answer

Playing video yeild black screen with audio(Vlc.DotNet and libvlcsharp)

I have a simple WinForms solution with 2 video players one is Vlc.DotNet and the second is libvlcsharp and besides that, I have a simple button that plays both videos. for libvlcsharp i followed this example and for Vlc.DotNet i used this…
styx
  • 1,852
  • 1
  • 11
  • 22
0
votes
1 answer

Vlc player black screen on Xamarin.Forms

the video is playing normally, but if you open another application and go back, vlc will show a black screen with a only sound. (Android 8.0.0, last version of nuget package) LibVLC libVLC = new LibVLC("--preferred-resolution=-1", "…
Bkkkkkk90
  • 3
  • 1
0
votes
1 answer

LibVlcsharp Winforms Adjusting video options not working (VB.net)

could someone help me solve my problem. i am switching from a VLC.Dotnet player to VLCsharp. so fare everything is ok i converted everything from VLC.Dotnet with no problems except the video option like: brightness, contrast... i am…
Abdou.kou
  • 1
  • 1
0
votes
0 answers

libvlcsharp error in xamarin.forms project

my code: private void Initialize() { LibVLCSharp.Shared.Core.Initialize();// error here } the error notify: LibVLCSharp.Shared.VLCException: 'failed to load libc++_shared exception dlopen failed: library…
Bill Qu
  • 27
  • 2
0
votes
1 answer

Memory Access Violation disposing libvlcsharp objects from a task

Link to full sample app C# Winform application built in Visual Studio 2019 libvlcsharp runtime version v4.0.30319 version 3.4.4.0 I built a simpler application that has the same problem as one that is currently deployed. Here's where the code gets…
mooncaptain
  • 107
  • 1
  • 10
0
votes
0 answers

Stream directly into VLCMediaPlayer (WPF)

I use VLCLibSharp in my WPF application. I want that my stream that I get from h264 data is streamed directly into my vlc wpf mediaplayer element. How to do that? _streamReceiver.OnH264DataReceived += (s, e) => { // DO SOMETHING…
texi
  • 3
  • 4
0
votes
1 answer

LibVLCSharp: how to stop the application when player closes

I am trying to write a simple player application using LibVLCSharp and I am wondering how to stop the app when player closes. Currently, it just freezes and doesn't stop the app even though I added SetExitHandler callback. using System; using…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
0
votes
0 answers

Time Skipping in VLC media player

I want something in VLC media player like subtitles file we add if we want to use it. But instead of subtitles i want to add time. jump from-jump to Example 2:00-3:00 5:00-7:80 Etc If we add into video just like subtitles VLC media player jump from…
Qasim0787
  • 201
  • 5
  • 15
0
votes
0 answers

libVLC Data.Audio.Channels gives wrong number of channels

I'm trying to parse a video with an mp4a audio track having 5.1 channels with libVLC but it always shows 2 as the number of channels ... videoMedia = new Media(libVLC, new Uri(videoMediaFile)); videoMedia.ParsedChanged +=…
Martin Müller
  • 2,565
  • 21
  • 32
0
votes
1 answer

Libvlcsharp will get stuck playing specific videos on any platform

Playing the following video will get stuck. On any platform, I have tried WinForm, WPF, xamarin.android, xamarin.ios For the following two videos, I get stuck in xamarin.forms, Android and IOS, and the playback is not smooth, but there is no problem…
bbhxwl
  • 41
  • 6
0
votes
1 answer

How to get the current video frame while playing video by libvlcsharp?

How to get the current video frame while playing video by libvlcsharp? I can play video with libvlcsharp by the codes below: public void OnAppearing() { LibVLC = new LibVLC(); var media = new…
Bill Qu
  • 27
  • 2
0
votes
0 answers

LibVLC: Is a filter like v360:fisheye from ffmpeg available in LibVLC?

I'm having problem playing fisheye(180) videos panoramically on the fly using LibVlcSharp in a WinForms appliction. More specifically: what I want to do is filtering video with libvlcsharp in a WinForms application(c#) with the same effect like -vf…
Craab
  • 111
  • 1
  • 5