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

VLC Xamarin iOS bindings. Can't play several media items with one player

I have an app that uses VLC media player bindings in Xamarin iOS When I play instantiate a MediaPlayer object, and play one media item as follows: var media = new Media(libVLC, new Uri(mediaItem.MediaUri)); await media.Parse(); …
Damien Doumer
  • 1,991
  • 1
  • 18
  • 33
0
votes
1 answer

Xamarin.Forms.Android black screen in release mode playing back HLS video with linking set to "SDK assemblies only"

In my Xamarin.Forms.Android app I'm trying to playback a HLS video encoded with azure media services. This works in debug mode. But when I run in release mode I see the following problem: the video does seem to load, and it starts playback (the…
Sjors Miltenburg
  • 2,540
  • 4
  • 33
  • 60
0
votes
0 answers

C# LibVLCSharp: SetAudioDevice - error 0x80070057

How can I change the output device? MediaPlayer.SetOutputDevice(id); I have picked out the Id via the AudioOutputDeviceEnum. VLC says: mmdevice Debug: using selected device {536A131C-2830-445B-8ACC-EDD22DDCE6D5} mmdevice Error: cannot get selected…
0
votes
1 answer

C# LibVLCSharp: Update speed of MediaPlayer.TimeChanged-Event

is there a way to change the update speed of the LibVLCSharp MediaPlayer TimeChanged-Event? I use this event to update the remaining playtime of my video. But this is too slow for my purpose. I would like to update the remaining time every 10ms. Is…
0
votes
1 answer

set start bitrate for adaptive stream in libvlcsharp

I am using LibVlcSharp to play an adaptive video stream (HLS) transcoded by Azure Media Services with the EncoderNamedPreset.AdaptiveStreaming setting in my Xamarin.Forms app. When viewing my video I notice that the first few (5-6) seconds of my…
Sjors Miltenburg
  • 2,540
  • 4
  • 33
  • 60
0
votes
0 answers

LibVLCSharp UWP application not running on some networks

I'm receiving a mp4 stream over UDP and want to show the video in real time in a UWP app. I'm using LibVLCSharp nuget to display the video stream. Trying to play the video directly using a UDP stream URI didn't work so I tried to pass the data…
0
votes
1 answer

Using SetVideoFormatCallbacks with I420 chroma

I am trying to integrate LibVLCSharp in to my game engine built using MonoGame. I have gotten it to render and gotten decent results using _mediaPlayer.SetVideoFormat("RGBA", _width, _height, stride); _mediaPlayer.SetVideoCallbacks(LockCb, null,…
nitramssirc
  • 340
  • 1
  • 2
  • 7
0
votes
2 answers

LibVLC# Stream over TCP

I currently have code that returns a valid URI for streaming from an IP Camera. I take that uri and pass it into an object for streaming. Can I configure the objects so they stream over TCP? The VLC application has a setting where I can stream this…
NewCode
  • 39
  • 4
0
votes
1 answer

Best way to stream low latency video from a Raspberry Pi to an UWP-APP

For a project, I have to communicate with a Raspberry Pi Zero from a UWP-APP via TCP. Because both, the Raspberry and the computer with the interface, have got a private IP, I have to use a server to forward messages from one client to the other…
0
votes
1 answer

Custom renderer for LibVLCSharp VideoView in Mac and UWP (Xamarin.Forms)

I'm trying to use VideoView from LibVLCSharp for Mac to create a custom renderer in Xamarin.Forms to play a video in Xamarin.Forms mac application. So far I only get audio but no video. this is my VideoPlayerRenderer for mac…
0
votes
0 answers

vlc uwp Dash playback issue

I'm using VLC for Instagram live playback. As long as I'm using Libvlcsharp 3.4.6 VideoLAN.libvlc.UWP 3.1.1.1 everything working fine when I create a media from the live dash playback URL. But when I update any of the NuGets above live playbacks can…
Ali NGame
  • 449
  • 3
  • 14
0
votes
1 answer

LibVLCSharp - How to play RTSP stream using password and media option when password has "@"?

If the RTSP stream password is "pass@word" I can only play it adding the password to the url like this: rtsp://username:pass%40word@domain:port Changing @ to %40 works on the URL But when I try to…
Rafael F.
  • 190
  • 12
0
votes
1 answer

Xamarin Forms VLC automatic audio delay

Is there any way to automatically get the audiodelay to set in the videoplayer? It is really annoying to fix it manually every time. Exoplayer (google native player used in yt) is using the getLatency method, not part of the public…
Blue
  • 45
  • 1
  • 7
0
votes
1 answer

Force libvlc/libvlcsharp to transcode video for chromecast?

I am currently using libvlcsharp and trying to use the ability to stream to chromecast. It works in "most" cases, specifically the ones where it sends the video over and the chromecast already supports the video format (e.g. AVI). If I do something…
0
votes
0 answers

LibVLCSharp MediaPlayer marquee text for audio files?

I've been messing around with LibVLCSharp and noticed that there is an option to display text when using the MediaPlayer. You can do this with SetMarqueeString (To set the text) and SetMarqueeInt (To enable the text to be shown). This works great on…