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

LibVLCSharp MediaInput - buffer to small too hold all readed file inside

I'm trying to play .mp4 files from low-end camera. Because VLC does not support http digest md5 auth, I had to implement MediaInput class (some code here). But buffer that is passed from LibVLCSharp in Read() method is too short to hold whole…
ElPato
  • 11
  • 4
0
votes
1 answer

Playing video stream from mp4 file with moov atom at end using libvlcsharp

I want to play video replay from low-end surveillance camera. Replays are saved on the camera in .mp4 format, with moov atom at the end. It's possible to retrieve file via http request using digset authentication. Approximate size of each video file…
ElPato
  • 11
  • 4
0
votes
0 answers

LibVLCSharp not running when loaded in a form

I have a basic C# program in VS2022 to load and play a video using LibVLCSharp. When I use it as the main form in the program, everything works well. If I use the same code in a form that is created and opened from the main form, nothing works - the…
Peter
  • 1
0
votes
1 answer

Fast thumbnail generation?

tl;dr The sample I linked takes 2 minutes to generate thumbnails for a 2 minute video and I can't figure out how to speed it up without dropping frames which messes up what I'm trying to do. I'm working on optimizing a .NET Core app that processes a…
user169771
  • 1,962
  • 2
  • 13
  • 11
0
votes
0 answers

How to playback HDR content using LibVLCSharp in Xamarin?

I had no success on google, developer.android.com and LibVLCSharp/LibVLC.Android documentation. In the LibVLC documentation, it clearly states it supports HDR, but I found no examples in the git repos of how to enable HDR playback. Google and…
Zananok
  • 121
  • 1
  • 3
  • 12
0
votes
1 answer

C# WPF application crashing when playing 16 players

I am running into an issue with my C# WPF application crashing silently when I am trying to play on 16 VideoViews. I did not see any error messaged popup, nor did I see anything in Windows Event viewer. Each player instance have WindowsFormHost and…
Harshvir
  • 21
  • 2
0
votes
1 answer

LibVLCSharp SetSpuDelay() is not working in WPF App

I've implemented a player in my WPF app and used LibVLCSharp library. Everything is working as expected except 1 thing. To delay the subtitles. I'm using MediaPlayer.SetSpuDelay(400) method from the library, it returns true (meaning, it says it…
Mayur Paghdal
  • 275
  • 1
  • 2
  • 12
0
votes
2 answers

Xamarin.Android don't play video stream using LibVlc

I'm trying to play the video stream "https://s2.moidom-stream.ru/s/public/0000000087.m3u8" using LibVlc, but I only get a black screen. Other threads work fine, but I need this particular thread. code used: using Android.App; using Android.OS; using…
Sergey
  • 1
0
votes
1 answer

LibVLCSharp How to set the number of frames per second to play

I'm using LibVLCSharp to play a h264 video stream streamed from socekt, but it seems like I'm playing the wrong number of frames per second, causing the video to play wrong
code rdp
  • 3
  • 1
0
votes
1 answer

LibVLCSharp Play H264 video stream in WPF

I am developing a project based on ADB to transmit mobile phone screen, and transmit H264 video stream to PC through socket, but LibVLCSharp is in a frozen screen situation after playing, the screen is always kept at the first frame, and the screen…
code rdp
  • 3
  • 1
0
votes
1 answer

How can I change the videotrack in libVlcSharp when recording video?

I am trying to record a live stream video into a file using libVlcSharp. That live stream contains two different video tracks, and by default when I record the file, the second track is being recorded instead of the first one. Strangely, when I play…
Roman
  • 1,691
  • 4
  • 18
  • 35
0
votes
0 answers

Can a StreamMediaInput only be played one time to the end?

I am using LibVLCSharp to play audio, and am running into an issue in a UWP app. I am playing audio via a MemoryStream loaded into the StreamMediaInput to be used as a Media for the player. When I do this, if I let the player reach the end of the…
aschaefer
  • 1
  • 1
0
votes
0 answers

Why I'm receiving Access Violation Exception when try to dispose VideoView in LibVLCSharp

I'm using Stylet as MVVM framework and LibVLCSharp.WPF 3.6.5 + VideoLAN.LibVLC.Windows 3.0.16 in my project for streaming camera rtsp streams. VideoView is included in my VLCPLayer custom user control, and that control is exposed as a property in my…
0
votes
1 answer

How can I disable verbose print statements in the output of a LibVLCSharp application that is being debugged by Visual Studio in Native mode

I am using LibVLCSharp in a solution that includes some native projects. If I debug in Native or Mixed mode, then LibVLC(Sharp) seems to spew a lot of print statements. A sample of these print statements follows. main spu text debug: looking for…
Darren
  • 138
  • 6
0
votes
0 answers

Use LibVLC to adding subtitles permanent to video

I needs soem help with a feature I want to add to a UWP app. I want to mix a video and a subtitle file (srt format) in a new video file so that I get one video file with the subtitles as an overlay to the original video. The final result should look…
Frank
  • 31
  • 3