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
0 answers

"Duplicate" option causes volume to be "-1"

Within our C# development, the below "duplicate" command is used in-order to allow one stream for viewing & the other for recording. However it triggers the volume to be set at "-1" automatically. Manually setting the volume higher through…
1
vote
2 answers

How to play video from a data stream using libvlcsharp (c# or vb.net)

I have an app in vb.net (winForms) that I want to play a valid TS with the video & audio PIDs. It works fine if I stream it using TCP/UDP protocol from the app itself, but I want to do it without doing a network stream. I see this can be doing using…
cbn
  • 21
  • 1
  • 1
  • 5
1
vote
1 answer

LibVLCSharp how to get list of webcams

VLC GUI shows the list of available webcams, like v4l2:///dev/video0 and v4l2:///dev/video1, I am wondering is there a way to get a list of available webcams? what about their default resolution? I tried this but md.MediaList is empty. var mds =…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
1
vote
1 answer

LibVLCSharp: cannot view the RTSP

I am trying to start a capture of the webcam, transcode it and output it to RTSP but I cannot view the stream when I view: rtsp://127.0.0.1:53211 I get a log in my VLC player saying: Your input can't be opened: VLC is unable to open the MRL…
Node.JS
  • 1,042
  • 6
  • 44
  • 114
1
vote
1 answer

AvaloniaUI: Cannot embed VideoView control (LibVlcSharp) in a UserControl

I am new to AvaloniaUI 0.10.5. Currently I am using the VideoView control (LibVLCSharp.Avalonia 3.5.0) in an application on macOS. The code is a copy of Donadren example…
ntxsay
  • 11
  • 3
1
vote
1 answer

How do I stop VideoView control inside a Grid control from opening a new window using LibVLCSharp library?

I'm using the LibVLCSharp.WPF to play a video using the VideoView control. I've binded MediaPlayer and Visibility in my ViewModel. I can get it to play the video but rather than be embedded inside the Grid control it creates and opens a new window…
Mmedi005
  • 35
  • 7
1
vote
1 answer

Cannot use Mobile FFmpeg and LibVLCSharp together in Xamarin.Forms project

I am adding video stream capture functionality to a Xamarin Forms project. I am trying to use VLC's LibVLCSharp.Forms (https://github.com/videolan/libvlcsharp) package and the Mobile ffmpeg Xamarin wrapper package, Laerdal.Xamarin.FFmpeg.*…
1
vote
1 answer

Playing multiple videos in sequence in using LIbVLCSharp causes memory to increase alot

After playing a playlist for about two days the memory increases from a about 100 megabytes to a few gigabytes. The thread count remains the same about 20 threads. I'm disposing of media (when changin to new media) from mediaplayer element like so: …
1
vote
2 answers

How can I transform a sequence of images into a playable video using LibVLCSharp?

I have a sequence of images that I was able to extract from a video using LibVLCSharp. This sample to be more specific. I'm creating a small video library manager for learning purposes, and I would like to extract frames and create thumbnails to…
adamasan
  • 1,092
  • 1
  • 12
  • 33
1
vote
2 answers

Parsing libvlcsharp video loaded from stream not working

I want to play a video (mp4) with libvlcsharp using C# in WinForms. I load the media using a Stream because the file will be encrypted and I will then manage to decrypt it before loading it in the media object. I succeeded loading and playing the…
MundoPeter
  • 704
  • 6
  • 12
1
vote
1 answer

Passing in a playlist file to LibVLCSharp?

Is it possible to pass in a playlist file into LibVLCSharp? I have tried both a .pls file and a .m3u8 file and served them up a webserver but have not had success. I created media as such: media = new Media(_libLVC, new…
1
vote
1 answer

RTP stream with LibVLCSharp (WPF)

I trying to play live RTP stream using the LibVLCSharp on Windows 10. I use the LibVLCSharp and LibVLCSharp.WPF NuGet libraries. Following is the code I am executing: LibVLC libVLC = new LibVLC(); MediaPlayer mediaPlayer = new…
Max Zemsky
  • 162
  • 1
  • 2
  • 15
1
vote
1 answer

Xamarin Forms LibVLC Video is not shown in Release configuration

We are developing an Xamarin.Froms App and we got some problems with the video player the flowing code is working fine in debug or more specifically when shred runtime is enabled. Package:
usnkw
  • 31
  • 4
1
vote
1 answer

Media from MemoryStream not displaying (or not playing)

In a C# application I use LibVLC via NuGet packages. I have created a MemoryStream and gave it to Media: MemoryStream buffer = new MemoryStream(); bool playing = false; public void dataArrived(byte[] d) { buffer.Write(d, 0, d.Length); if…
Daniel
  • 2,318
  • 2
  • 22
  • 53
1
vote
2 answers

Libvlcsharp: detect issues with live stream

I am trying to build a recorder using LibVlcSharp based on this sample. I managed to get the example working. However, let's say I am recording a live stream and I want to be able to detect if an error happens. My first thought was using Media.State…
Mostafa abdo
  • 616
  • 1
  • 8
  • 21
1 2
3
14 15