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

How do you turn subtitles on and off while the video is playing in LibVLCSharp?

How do you turn subtitles on and off while the video is playing in LibVLCSharp? I can set it when I initialize the media player. Once the media player is playing the video, how can I toggle the subtitles on and off during playback? I've tried…
g00n3r
  • 135
  • 12
0
votes
0 answers

In VLC-Unity, why is the media player unable to play video feed from USB camera using DirectShow?

(This bounty of 300 point IS PERMANENT: if it is caused by a library bug, the bounty will be retrospectively awarded upon corresponding hotfix release) I'm experimenting the capabilities of VLC-Unit for various video streaming protocol, the simplest…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
0
votes
0 answers

Rtsp stream from images C#

Good afternoon, everyone. I am trying to implement rtsp broadcasting from images that I render from a WPF control. I was able to save the images in a folder, so they turn out to be correct. I use VLC for streaming. I made my own implementation of…
0
votes
0 answers

How to create VideoView(Libvlcsharp, Winform) in code?

I am trying to receive multiple RTSP streams using Libvlcsharp. I need to display multiple streams at once, so i declared a VideoView List, private List videoList = new List(); and declared function that creates a VideoView and…
0
votes
0 answers

WPF video player finishes with last rendered frame still showing

I have created a simple WPF video player using VideoLAN.LibVLC.Windows 3.0.18 and LibVLCSharp.WPF 3.7.0. The video plays as I would expect it to, but when the video ends the last rendered frame remains in the VideoView control. If I stop the video…
POI760704
  • 1
  • 1
0
votes
0 answers

Trying to stream from DVB-T using libvlcsharp, get error "cache_block stream error: cannot pre fill buffer"

Here is my code: static private void TuneDVB() { using var libvlc = new LibVLC(); using MediaPlayer mp = new MediaPlayer(libvlc); using Media media = new Media(libvlc, "dvb-t://frequency=562000000:bandwidth=0", FromType.FromLocation,…
zach--
  • 15
  • 1
  • 3
0
votes
0 answers

media discoverers in libvlcsharp doesn't display webcams

Media discoverer doesn't find video capture devices in this code : Core.Initialize(); using var libvlc = new LibVLC(); foreach (MediaDiscovererCategory val in Enum.GetValues(typeof(MediaDiscovererCategory))) …
kashiash
  • 21
  • 4
0
votes
1 answer

Take snapshot doesnt work while recording and displaying from webcam

Summary I m have to display webcam on screen, record this and allow user to take snapshots. But takesnapshot return false, and no screenshot was created My code: static void Main(string[] args) { …
kashiash
  • 21
  • 4
0
votes
0 answers

LibVlcSharp select wrong webcam

I have to record selected webcam to file but i get video from default webcam (no matter which i describe in media option) When i use VlcPlayer to record any of existing camera i get proper camera, but when try do the same from my application i get…
kashiash
  • 21
  • 4
0
votes
0 answers

Issues playing local MP4 video with LibVLCSharp in Xamarin.Forms

I'm using "MediaPlayerElement" from LibVLCSharp https://github.com/videolan/libvlcsharp#mediaplayerelement I try to play a video that is in…
Arnaud
  • 1
  • 2
0
votes
0 answers

Unable to continually play songs using LibVLCSharp

I'm adding VLC support for my VoiceAttack (voice recognition) plugin for a flight simulator. I instantiated a media object and started playing. The object is stored globally in Globals.vaProxy.SessionState so the user can stop/pause/next etc. What I…
dandan21
  • 37
  • 1
  • 7
0
votes
2 answers

How to set video deinterlacing with libVLCSharp for Windows?

I'm using libVLCSharp for Windows. Is there a way to set video deinterlacing mode with libVLCSharp? Thanks. Tried the following media.AddOption(":deinterlace=1"); media.AddOption(":video-filter=deinterlace"); …
L. Lee
  • 1
  • 2
0
votes
1 answer

LibVLCSharp - WinUI - Memory Leak?

LibVLCSharp is now available for WinUI, and its documentation can be found here. This is great news, and thank you for sharing it. I am experiencing an issue with memory usage. Whenever I start and stop the player, not all of the memory is released,…
Franck E
  • 629
  • 8
  • 26
0
votes
0 answers

Using the LibVLCSharp Library is there a way to set the chapters or tracks of the Media item programmatically?

In the program I am working on, I am looking for a way to create chapter cues in the mp4 file programmatically without altering the mp4 file. I am currently replacing our Windows.UI MediaPlayerElement with the LibVLCSharp library, but I am running…
Rose
  • 1
  • 2
0
votes
1 answer

how to adjust a specific Vlcontrol's volume when there are multi VlcControls in WPF?

I have 4 VlcControls which I used WindowsFormsHost to host them in my WPF page.The VlcControls are to playing video capture cards input content. When I adjust the volume of one in them like below, all 4 Controls' volume get louder/smaller…