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

Stream images or desktop screen with VLC (LibVLCSharp for WPF)

Could you please guide me how I can stream continuously my screen? I use the libraries: LibVLCSharp, LibVLCSharp.WPF, VideoLAN.LibVLC.Windows on NuGet I do not know how to update the stream continuously and the second videoView cannot display the…
Thanh Dong
  • 3
  • 2
  • 6
0
votes
1 answer

Trying to build VLC for Unity3D

I have been trying to get the VLC plugin for Unity3D to build. It is found here: https://code.videolan.org/videolan/vlc-unity/blob/master/README.md I am trying to do this on Debian 10 (buster). The first instruction was to: Download and install…
zoomoo
  • 3
  • 5
0
votes
2 answers

Using Media constructor to read from .NET stream

We are using Media constructor to create media from buffer (C# .NET memory stream) but no video is displayed _mediaPlayer.Play(new Media(_libVLC, buffer, "--demux h264")); Our stream works perfectly when testing with standalone VLC windows app where…
0
votes
1 answer

RTSP ip camera connection or vlc image processing in C#

I'm working on a project. I need to connect RTSP ip camera for this project. I made the RTSP connection using the vlc plugin but for this project, I have to do visual processing on this publication. and I guess vlc plugin doesn't support bitmap…
0
votes
1 answer

SignalR WPF server - How to trigger a player?

I am currently working on a standalone app that can handle communication from a mobile and also utilizes VLC player to output a stream. The way I do it is that output stream object is in the main window, but I receive requests via SignalR. The…
Ahacz
  • 33
  • 1
  • 4
0
votes
2 answers

Xamarin Forms libvlcsharp fullscreen

I'd like to understand how the options for the screen adjustments such as "Fit Screen", "Original", "Best Fit" are set, if it's possible to keep only specific options. I tried this bellow, the video opens in fill size, but if I press the Size button…
Maturano
  • 951
  • 4
  • 15
  • 42
0
votes
0 answers

libVLC displays green screen in Visual Studio (but same stream is fine in VLC)

I'm using libVLCSharp in my Windows Forms application. For this I checked out these NuGet packages: VideoLAN.LibVLC.Windows LibVLCSharp.WinForms Here is my initialization code snippet: private static string[] libVLCParams = { "--rtsp-tcp",…
Daniel
  • 2,318
  • 2
  • 22
  • 53
0
votes
1 answer

LibvclSharp winforms Go to specific Time

I am putting together a winforms app using libvclsharp wrapper. It is a basic app that hosts 4 x VideoView windows and plays 4 different mp4 videos. It plays ok and seems stable mostly, but the lib has some odd quirks that i cant seem to find an…
Manity
  • 21
  • 1
  • 6
0
votes
0 answers

Can I extract an audio clip (a single word) from the video and insert at different points/timeline of same video using FFMPEG/libvlcsharp?

I want to load a video that has a soundtrack, and I want it to take an audio clip of a single spoken word and I want the clip inserted at different points in the video. The output will be the new video. I also want to insert an image at certain…
0
votes
1 answer

How to play xspf file Libvlcsharp

i create vlc playlist xspf file now i want to stream it with Libvlcsharp codes as follows. this code working fine with video file but .xspf file not respond code : LibVLCSharp.Shared.LibVLC _libVLC; MediaPlayer _mp; …
0
votes
0 answers

(GTK3 + libvlc) Video overlays are not rendered correctly and video opacity is not applied

I embedded libvlcsharp (using GtkDrawingArea) into my GtkSharp (GTK 3) app and I want to show transparent overlays (Labels and Images) on top of a transparent video (using GtkOverlay). I ran into two issues doing that: Opacity is not applied to the…
domsch
  • 118
  • 2
  • 6
0
votes
1 answer

How can I write the audio stream input to another stream?

I'm trying to stream the audio from the default microphone on a windows host to a Docker container. Mounting the devices through layers pf virtualization can be problematic. I cannot figure out how to correctly consume the incoming stream in my C#…
runninggeek
  • 147
  • 2
  • 11
0
votes
1 answer

Capture screen on Xamarin.android get black screen - using Libvlc

I am using LibVLCSharp to play video , and trying to capture the screen. I am getting black screen , like the surface-view cant be captured. tried many different capture methods , non of them works. api 23 android 6. Any one have a solution/example…
0
votes
0 answers

When should I call SetAudioTrack exactly?

I am starting with the sample LibVLCSharp.WPF.Sample and while it plays my VOB, I cannot change the audio track. I call SetAudioTrack and it always returns false (and doesn't change). Full VLC lets me change the audio track on the same file just…
ControlAV
  • 194
  • 7
0
votes
1 answer

Will --vout=dummy option work with --video-filter=scene?

I am trying to create snapshots from a video stream using the "scene" video filter. I'm on Windows for now, but this will run on Linux I don't want the video output window to display. I can get the scenes to generate if I don't use the --vout=dummy…
runninggeek
  • 147
  • 2
  • 11