LibVLCSharp issues
https://code.videolan.org/videolan/LibVLCSharp/-/issues
2023-06-12T06:16:54Z
https://code.videolan.org/videolan/LibVLCSharp/-/issues/617
media discoverers doesn't display webcams
2023-06-12T06:16:54Z
Jacek Placek
media discoverers doesn't display webcams
### Summary
Media discoverer doesn't find video capture devices
### Minimal project and steps to reproduce
```csharp
Core.Initialize();
using var libvlc = new LibVLC();
var mds = libvlc.MediaDis...
### Summary
Media discoverer doesn't find video capture devices
### Minimal project and steps to reproduce
```csharp
Core.Initialize();
using var libvlc = new LibVLC();
var mds = libvlc.MediaDiscoverers(MediaDiscovererCategory.Devices);
Console.WriteLine($" number of mds: {mds.Count()}");
foreach (var dm in mds)
{
Console.WriteLine($"{dm.Category} {dm.Name} {dm.LongName}");
//display only disc
}
if (mds.Any(x => x.LongName == "Video capture"))
{
var devices = mds.First(x => x.LongName == "Video capture");
var md = new MediaDiscoverer(libvlc, devices.Name);
md.Start();
foreach (var media in md.MediaList)
{
Console.WriteLine($" _ {media.Mrl}");
}
}
```
### What is the current *bug* behavior?
I get only devices disc in code above
### What is the expected *correct* behavior?
list of devices disc, video capture, audio capture etc
### Does it work on other plaforms? Does it work with the official VLC apps?
in VLC player I can select 2 other webcams and one video grabber
### Environment
- OS: Windows 11
- Version [e.g. 22]
- Device: pc amd
- LibVLC version and architecture [e.g. 3.7, x64]
- LibVLCSharp version 3.0.18
https://code.videolan.org/videolan/LibVLCSharp/-/issues/616
Log callback interop for Android simulator
2023-06-26T07:19:26Z
winkmichael
Log callback interop for Android simulator
### Summary
Xamarin Forms app, running _libVLC.Log += LibVLC_Log; overload which contains nothing will crash. private void LibVLC_Log(object sender, LogEventArgs e) {} The overload contains no code.
### Minimal project and steps to re...
### Summary
Xamarin Forms app, running _libVLC.Log += LibVLC_Log; overload which contains nothing will crash. private void LibVLC_Log(object sender, LogEventArgs e) {} The overload contains no code.
### Minimal project and steps to reproduce
https://github.com/winkmichael/LogTestlibVLC
Immediately crashes once initialized, no errors.
Remove _libVLC.Log += LibVLC_Log; and there is no crash.
Same issue occurs with; private void OnLogReceived(object sender, LogEventArgs e)
### What is the current *bug* behavior?
Crashes the Android App.
### What is the expected *correct* behavior?
Log overload should allow log handling by application.
### Does it work on other plaforms? Does it work with the official VLC apps?
[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 23185 (e.logtestlibvlc), pid 23185 (e.logtestlibvlc)
That is the only log.
### Relevant LibVLC logs and/or screenshots
N/A
### Environment
Android Pixel 5 - API 30 Emulator
LibVLCSharp.Forms 3.7.0
VideoLAN.LibVLC.Android 3.5.3
### Possible fixes
No idea
https://code.videolan.org/videolan/LibVLCSharp/-/issues/615
360-degree video with handle mouse or touch events in the WPF application
2023-06-05T04:40:41Z
test firststep
360-degree video with handle mouse or touch events in the WPF application
360-degree video is playing by your sample but mouse or touch events in the WPF application not working
like as
<Grid x:Name="overlayPanel1" Background="Transparent" Grid.Row="1">
<uc:VideoView x:Name="VideoView" Panel.ZIndex="1" Mous...
360-degree video is playing by your sample but mouse or touch events in the WPF application not working
like as
<Grid x:Name="overlayPanel1" Background="Transparent" Grid.Row="1">
<uc:VideoView x:Name="VideoView" Panel.ZIndex="1" MouseLeftButtonDown="VideoView_MouseLeftButtonDown" MouseWheel="VideoView_MouseWheel" >
<StackPanel Orientation="Horizontal" x:Name="test">
<Button Content="PLAY" Height="25" Width="50" VerticalAlignment="Bottom" HorizontalAlignment="Left" Click="PlayButton_Click" />
<Button Content="STOP" Height="25" Width="50" VerticalAlignment="Bottom" HorizontalAlignment="Left" Click="StopButton_Click" />
</StackPanel>
</uc:VideoView>
</Grid>
private void VideoView_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
}
When play 360-degree video and click to mouse left button but not goes to VideoView_MouseLeftButtonDown method
Let me know what is wrong in above code.
https://code.videolan.org/videolan/LibVLCSharp/-/issues/614
Bind Mouse Event Using LibVLCSharp.WPF namespace
2023-05-30T05:09:54Z
test firststep
Bind Mouse Event Using LibVLCSharp.WPF namespace
Can we bind mouse event on VideoView control using LibVLCSharp.WPF
I have used this code also LibVLCSharp/samples/LibVLCSharp.WPF.Sample but my issue is not solved
Please share handle mouse or touch events in the WPF application to cha...
Can we bind mouse event on VideoView control using LibVLCSharp.WPF
I have used this code also LibVLCSharp/samples/LibVLCSharp.WPF.Sample but my issue is not solved
Please share handle mouse or touch events in the WPF application to change the camera's position or rotation, which in turn affects the viewing angle of the 360-degree video.
https://code.videolan.org/videolan/LibVLCSharp/-/issues/612
[Question - c#] Load byte[] of m2t data and reading frame information
2023-05-26T06:03:31Z
Lior Banai
[Question - c#] Load byte[] of m2t data and reading frame information
## Context
I have Enciris lt 101 card which I read the frames in a loop and write it to m2t file.
Each frame is being read and just written to the file as is. VLC can play it since each frame is a key frame also.
## Question
I was w...
## Context
I have Enciris lt 101 card which I read the frames in a loop and write it to m2t file.
Each frame is being read and just written to the file as is. VLC can play it since each frame is a key frame also.
## Question
I was wondering if it possible in parallel of writing the byte array also to:
- [ ] load each frame in VLC play inside winform.
- [ ] Get frame statistics (like ffprobe): pts value , resolution.. etc..
and if it is possible (one of them or both) some code example would be appreciated
https://code.videolan.org/videolan/LibVLCSharp/-/issues/611
Failed to load required native libraries in an outlook plugin
2023-05-31T07:33:41Z
elthombre
Failed to load required native libraries in an outlook plugin
### Summary
I receive the exception on the following line of code:
Core.Initialize();
### Minimal project and steps to reproduce
My project is an Outlook add-in.
I am unsure how to reproduce it outside of this project. I created a ...
### Summary
I receive the exception on the following line of code:
Core.Initialize();
### Minimal project and steps to reproduce
My project is an Outlook add-in.
I am unsure how to reproduce it outside of this project. I created a brand new standalone solution and the same relative source code / method calls to the LibVLCSharp player worked.
Unfortunately, I am not able to share the project through git. It belongs to my employer and it is a commercial solution.
### What is the current *bug* behavior?
The following exception:
LibVLCSharp.Shared.VLCException
HResult=0x80131500
Message=Failed to load required native libraries.
Have you installed the latest LibVLC package from nuget for your target platform?
On this line of code:
Core.Initialize();
### What is the expected *correct* behavior?
It should run; simply pass through and continue.
### Does it work on other plaforms? Does it work with the official VLC apps?
It runs in a separate, small standalone exe that I recreated.
### Relevant LibVLC logs and/or screenshots
Additional info from the exception:
Search paths include C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc\win-x64\libvlc.dll,C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc\win-x64\libvlccore.dll; C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc\win-x64\libvlc.dll,C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc\win-x64\libvlccore.dll; C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc.dll,
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
### Environment
- OS: Windows 11 Home
- Version 22H2
- Device: Lenovo laptop
- LibVLC version and architecture <!-- [e.g. 3.0.6, x64] -->
- LibVLCSharp version <!-- [e.g. 0.7.0] -->
- LibVLCSharp 3.7.0
- LibVLCSharp.WinForms 3.7.0
- VideoLAN.LibVLC.Windows 3.0.18
### Possible fixes
It appears this issue has come up a number of times before:
https://stackoverflow.com/questions/67486438/libvlcsharp-failed-to-load-required-native-libraries
https://stackoverflow.com/questions/66935123/c-sharp-wpf-vlc-libvlcsharp-shared-vlcexception-failed-to-load-required-na
https://code.videolan.org/videolan/LibVLCSharp/-/issues/454
https://stackoverflow.com/questions/38594837/visual-studio-c-sharp-sqlite-interop-dll-not-found
https://stackoverflow.com/questions/38594837/visual-studio-c-sharp-sqlite-interop-dll-not-found
https://code.videolan.org/videolan/LibVLCSharp/-/issues/610
LibVLCSharp.Shared.VLCException
2023-05-19T08:35:58Z
elthombre
LibVLCSharp.Shared.VLCException
LibVLCSharp.Shared.VLCException
HResult=0x80131500
Message=Failed to load required native libraries.
Have you installed the latest LibVLC package from nuget for your target platform?
Search paths include C:\Users\[username]\AppData\...
LibVLCSharp.Shared.VLCException
HResult=0x80131500
Message=Failed to load required native libraries.
Have you installed the latest LibVLC package from nuget for your target platform?
Search paths include C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc\win-x64\libvlc.dll,C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc\win-x64\libvlccore.dll; C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc\win-x64\libvlc.dll,C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc\win-x64\libvlccore.dll; C:\Users\[username]\AppData\Local\assembly\dl3\P50TL99W.754\3X11G5QJ.WPH\68283a9c\0075d653_ce66d901\libvlc.dll,
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
and the line of code which throws the runtime error is:
Core.Initialize();
and my organization certainly would / could consider a commercial license once this is proven out. Presently, I installed these assemblies through the Nuget Package Mgr.
https://code.videolan.org/videolan/LibVLCSharp/-/issues/609
UI crashes with exception: "Unable to create WPF Window in VideoView."
2023-05-17T17:33:35Z
Bartemis
UI crashes with exception: "Unable to create WPF Window in VideoView."
**Description:**
When using a LibVLCSharp WPF VideoView and switching between tabs, the UI crashes with an exception.
![switching_tabs_crash](/uploads/894e127507eecf3393cfb9de22161fd8/switching_tabs_crash.gif)
**Expected behavior:**
E...
**Description:**
When using a LibVLCSharp WPF VideoView and switching between tabs, the UI crashes with an exception.
![switching_tabs_crash](/uploads/894e127507eecf3393cfb9de22161fd8/switching_tabs_crash.gif)
**Expected behavior:**
Expected no crash
**Exception:**
```
LibVLCSharp.Shared.VLCException: Unable to create WPF Window in VideoView. ---> System.InvalidOperationException: This Visual is not connected to a PresentationSource.
at System.Windows.Media.Visual.PointToScreen(Point point)
at LibVLCSharp.WPF.ForegroundWindow.Background_Loaded(Object sender, RoutedEventArgs e)
```
**Stacktrace**:
```
at LibVLCSharp.WPF.ForegroundWindow.Background_Loaded(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
```
**LibVLCSharp/LibVLC Versions:**
- LibVLCSharp 3.7.0
- LibVLCSharp.WPF 3.7.0
- VideoLan.LibVLC.Windows 3.0.18
**Operating system:**
Windows 10 Professional
**How to reproduce:**
Create a WPF application and use the following **MainWindow.xaml** (change the `NameSpace` to your own):
```
<Window x:Class="NameSpace.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MSStreaming_VLC_WPF"
xmlns:wpf="clr-namespace:LibVLCSharp.WPF;assembly=LibVLCSharp.WPF"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<TabControl>
<TabItem Header="VLC 1">
<TabControl>
<TabItem Header="VLC 2">
<wpf:VideoView x:Name="VideoView" />
</TabItem>
<TabItem Header="Other 2">
<TextBlock Text="Other content" />
</TabItem>
</TabControl>
</TabItem>
<TabItem Header="Other 1">
<TextBlock Text="Other content" />
</TabItem>
</TabControl>
</Grid>
</Window>
```
Add some exception handling to the **App.xaml.cs**:
```
public partial class App
{
// Prevent an exception to crash the application
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
DispatcherUnhandledException += (sender, args) =>
{
// Prevent the application from crashing
args.Handled = true;
// Display a message box with the exception details
MessageBox.Show("An unhandled exception occurred: " + args.Exception.Message, "Unhandled Exception", MessageBoxButton.OK, MessageBoxImage.Error);
// Log the exception including inner exceptions
Debug.WriteLine(args.Exception.ToString());
Debug.WriteLine(args.Exception.StackTrace);
};
}
}
```
Reproduction steps (also see gif):
- Click on Other 2
- Click on Other 1
- Click on VLC 1
Observe the application popups with an exception
https://code.videolan.org/videolan/LibVLCSharp/-/issues/608
After installing the VideoLAN.LibVLC.Windows package on WinUI3, a PRI263 warn...
2023-04-12T10:34:49Z
王熙
After installing the VideoLAN.LibVLC.Windows package on WinUI3, a PRI263 warning is displayed
![image](/uploads/2f5da30238cdebb7e45bc62a446eb3e8/image.png)
Although it does not affect the use, placing it there can make people feel uncomfortable.
![image](/uploads/2f5da30238cdebb7e45bc62a446eb3e8/image.png)
Although it does not affect the use, placing it there can make people feel uncomfortable.
https://code.videolan.org/videolan/LibVLCSharp/-/issues/607
LibVLCSharp 4 - MediaPlayer.SetOutputCallbacks Marshal issue?
2023-03-31T06:24:27Z
jesse-trana
LibVLCSharp 4 - MediaPlayer.SetOutputCallbacks Marshal issue?
### Summary
LibVLCSharp 4's new MediaPlayer.SetOutputCallbacks appears to have an issue with marshalling the callbacks that a) use a pointer and b) contain a bool type because the bool types are not blittable.
### Minimal project and s...
### Summary
LibVLCSharp 4's new MediaPlayer.SetOutputCallbacks appears to have an issue with marshalling the callbacks that a) use a pointer and b) contain a bool type because the bool types are not blittable.
### Minimal project and steps to reproduce
Call MediaPlayer.SetOutputCallbacks with the required D3D11 callbacks on Windows using .NET framework (I'd imagine the same would work for OpenGL). For example:
```
m_MediaPlayer.SetOutputCallbacks(
VideoEngine.D3D11,
m_OutputSetup,
m_OutputCleanup,
m_OutputSetResize,
m_UpdateOutput,
m_Swap,
m_MakeCurrent,
null,
m_FrameMetadata,
m_OutputSelectPlane);
```
### What is the current *bug* behavior?
Compilation works but at runtime an exception occurs:
System.Runtime.InteropServices.MarshalDirectiveException: 'Cannot marshal 'parameter #2': Pointers cannot reference marshaled structures. Use ByRef instead.'
See Possible Fixes for what I think might be going on.
### What is the expected *correct* behavior?
No runtime exception. At least until it reaches my other broken code. :smile:
### Does it work on other plaforms? Does it work with the official VLC apps?
Given that I saw references to things matching an official sample when the structs were added, I've wondered if maybe e.g. Mono handles the marshalling just a bit differently and it works on other platforms.
### Relevant LibVLC logs and/or screenshots
Let me know if logs make a difference here, but I think it's just a P/Invoke thing.
### Environment
OS: Win 11
Device: Laptop
LibVLC version/arch: x64 LibVLCSharp 4 preview 4.0.0-alpha-20230324-6630, problem believed to exist on current master 3/29/2023.
### Possible fixes
It is believed that this is actually sneakily caused by the presence of the bool fields on SetupDeviceConfig and RenderConfig. Changing these to `ref` parameters on the callback seems to not blow up. For example, trying to monkeypatch in the following no longer throws the exception:
```
[DllImport(/*Constants.LibraryName - inaccessible; relatively safe to hardcode on Windows*/ "libvlc",
CallingConvention = CallingConvention.Cdecl,
EntryPoint = "libvlc_video_set_output_callbacks")]
static extern bool LibVLCVideoSetOutputCallbacksPatched(IntPtr mediaplayer, VideoEngine engine, OutputSetupPatchedCallback outputSetup,
OutputCleanup outputCleanup, OutputSetResize resize, UpdateOutputPatchedCallback updateOutput, Swap swap, MakeCurrent makeCurrent,
GetProcAddress getProcAddress, FrameMetadata metadata, OutputSelectPlane selectPlane, IntPtr opaque);
delegate bool OutputSetupPatchedCallback(ref IntPtr opaque, ref SetupDeviceConfig config, ref SetupDeviceInfo setup);
delegate bool UpdateOutputPatchedCallback(IntPtr opaque, ref RenderConfig config, ref OutputConfig output);
LibVLCVideoSetOutputCallbacksPatched(
m_MediaPlayer.NativeReference,
VideoEngine.D3D11,
m_OutputSetup,
m_OutputCleanup,
m_OutputSetResize,
m_UpdateOutputPatched,
m_Swap,
m_MakeCurrent,
null,
m_FrameMetadata,
m_OutputSelectPlane,
GCHandle.ToIntPtr(mediaPlayerGCHandle));
```
My gut says there's a different way to make the bool blittable etc. - not sure on any performance penalties for the `ref` approach; usually I'd not be worried but these calls are likely a bit hotter than normal so the performance may be a consideration.
https://code.videolan.org/videolan/LibVLCSharp/-/issues/606
Uno Platform 4.x support
2023-03-20T10:07:57Z
MIke Drtikol
Uno Platform 4.x support
Hi,
Not sure if this has been already addressed, but is it possible to bring back UNO 4.x platform support please ?
Regards
Hi,
Not sure if this has been already addressed, but is it possible to bring back UNO 4.x platform support please ?
Regards
https://code.videolan.org/videolan/LibVLCSharp/-/issues/604
how to select & play one program based on PID or PMT from a stream over UDP v...
2023-03-02T08:59:12Z
Hamid Laktarash
how to select & play one program based on PID or PMT from a stream over UDP via libVLCSharp or other programming tools?
I have one multiple program transport stream (MPTS) with source IP address udp://@228.110.1.1:1234. I wanna develop a program like Mosaic Streaming player that detect available program in udp://@228.110.1.1:1234 till we choose one to pl...
I have one multiple program transport stream (MPTS) with source IP address udp://@228.110.1.1:1234. I wanna develop a program like Mosaic Streaming player that detect available program in udp://@228.110.1.1:1234 till we choose one to play. (demux stream and extract programs baseid on PID or PMT ) this task done in VLC app but i cant switch between program and play one of theme. my platform is .net and i am familiar with libVLCSharp and ffplay and DVB viewer
I read vlc doc and libVLCSharp samples I paly Single Program Transport Stream
`Core.Initialize();
_libVLC = new LibVLC(); _mediaPlayer = new MediaPlayer(_libVLC);
videoView.MediaPlayer = _mediaPlayer;
_mediaPlayer.Play(new Media(_libVLC, new Uri("... stream ip ...")));`
https://code.videolan.org/videolan/LibVLCSharp/-/issues/603
VideoLAN.LibVLC.Android no preview version
2023-03-01T07:26:51Z
szekelymatyas
VideoLAN.LibVLC.Android no preview version
Here is the error: LibVLCSharp.VLCException: 'Version mismatch between LibVLC 3 and LibVLCSharp 4. They must share the same major version number'
VideoLAN.LibVLC.Android i cant found the preview version. Is there any preview build? If n...
Here is the error: LibVLCSharp.VLCException: 'Version mismatch between LibVLC 3 and LibVLCSharp 4. They must share the same major version number'
VideoLAN.LibVLC.Android i cant found the preview version. Is there any preview build? If not how can i wire it up myself, and where can i get the necessary libs?
https://code.videolan.org/videolan/LibVLCSharp/-/issues/602
E/VLC: [8eb73400/6bcd] libvlc input: ES_OUT_SET_(GROUP_)PCR is called 386 ms...
2023-02-21T07:31:38Z
Anmol Singh
E/VLC: [8eb73400/6bcd] libvlc input: ES_OUT_SET_(GROUP_)PCR is called 386 ms late (pts_delay increased to 500 ms) | sf error code: -38 | buffer deadlock prevented
Getting these error while trying to stream rtsp in android java
Errors:
E/VLC: [8eb73400/6bcd] libvlc input: ES_OUT_SET_(GROUP_)PCR is called 409 ms late (jitter of 386 ms ignored)
E/NdkMediaCodec: sf error code: -38
E/VLC: [76a63800/6...
Getting these error while trying to stream rtsp in android java
Errors:
E/VLC: [8eb73400/6bcd] libvlc input: ES_OUT_SET_(GROUP_)PCR is called 409 ms late (jitter of 386 ms ignored)
E/NdkMediaCodec: sf error code: -38
E/VLC: [76a63800/6bcd] libvlc decoder: buffer deadlock prevented
Then after few minutes I get these again and the video freezes
Here's the code:
`LibVLC libVLC = new LibVLC(mainAct);
String mediaUrl = URL;
Media media = new Media(libVLC, Uri.parse(mediaUrl));
media.setHWDecoderEnabled(true, false); // Hardware decoding
media.addOption(":network-caching=500"); // Network caching
media.addOption(":clock-jitter=0"); // Clock jitter
media.addOption(":clock-synchro=0"); // Clock synchro
media.addOption(":live-caching=500"); // Live caching
media.addOption(":fullscreen");
media.addOption(":rtsp-tcp");
media.addOption("--no-audio");
org.videolan.libvlc.MediaPlayer mediaPlayer = new org.videolan.libvlc.MediaPlayer(libVLC);
mediaPlayer.setMedia(media);
mediaPlayer.getVLCVout().setVideoSurface(binding.contentArea.videoView.getHolder().getSurface(),
binding.contentArea.videoView.getHolder());
mediaPlayer.getVLCVout().setWindowSize(binding.contentArea.videoView.getWidth(), binding.contentArea.videoView.getHeight());
mediaPlayer.setAspectRatio("16:9");
mediaPlayer.setScale(0.7f); // Scale the video to a factor of 0.5
mediaPlayer.getVLCVout().attachViews();
mediaPlayer.play();`
I just to stream rtsp video coming from a camera continuesly.
https://code.videolan.org/videolan/LibVLCSharp/-/issues/601
How to solve this error:cannot initialize COM (error 0x80010106)
2023-02-28T07:42:02Z
陈
How to solve this error:cannot initialize COM (error 0x80010106)
When I play the rtsp stream, I encounter the following error:
~~~
cannot initialize COM (error 0x80010106)
~~~
The _libvlc_Log context is as follows:
~~~
[时间:2023-02-17 20:20:40,313]
[线程:34]
[内容:SmallWindow-_libvlc_Log=main Debug: lo...
When I play the rtsp stream, I encounter the following error:
~~~
cannot initialize COM (error 0x80010106)
~~~
The _libvlc_Log context is as follows:
~~~
[时间:2023-02-17 20:20:40,313]
[线程:34]
[内容:SmallWindow-_libvlc_Log=main Debug: looking for audio output module matching "any": 6 candidates]
[时间:2023-02-17 20:20:40,314]
[线程:19]
[内容:SmallWindow-_libvlc_Log=main Debug: using audio output module "directsound"]
[时间:2023-02-17 20:20:40,315]
[线程:35]
[内容:SmallWindow-_libvlc_Log=main Debug: keeping audio output]
[时间:2023-02-17 20:20:40,345]
[线程:13]
[内容:SmallWindow-_libvlc_Log=main Debug: Creating an input for 'rtsp://172.23.58.249:554/openUrl/XDLuU5a']
[时间:2023-02-17 20:20:40,346]
[线程:37]
[内容:SmallWindow-_libvlc_Log=main Debug: using timeshift granularity of 50 MiB]
[时间:2023-02-17 20:20:40,346]
[线程:37]
[内容:SmallWindow-_libvlc_Log=main Debug: using timeshift path: C:\Users\Lenovo\AppData\Local\Temp]
[时间:2023-02-17 20:20:40,346]
[线程:37]
[内容:SmallWindow-_libvlc_Log=main Debug: `rtsp://172.23.58.249:554/openUrl/XDLuU5a' gives access `rtsp' demux `any' path `172.23.58.249:554/openUrl/XDLuU5a']
[时间:2023-02-17 20:20:40,346]
[线程:37]
[内容:SmallWindow-_libvlc_Log=main Debug: creating demux: access='rtsp' demux='any' location='172.23.58.249:554/openUrl/XDLuU5a' file='\\172.23.58.249:554\openUrl\XDLuU5a']
[时间:2023-02-17 20:20:40,347]
[线程:37]
[内容:SmallWindow-_libvlc_Log=main Debug: looking for access_demux module matching "rtsp": 15 candidates]
[时间:2023-02-17 20:20:40,347]
[线程:37]
[内容:SmallWindow-_libvlc_Log=live555 Debug: version 2016.11.28]
[时间:2023-02-17 20:20:40,311]
[线程:9]
[内容:SmallWindow-_libvlc_Log=main Debug: creating audio output]
[时间:2023-02-17 20:20:40,313]
[线程:32]
[内容:SmallWindow-_libvlc_Log=mmdevice Error: cannot initialize COM (error 0x80010106)]
[时间:2023-02-17 20:20:40,313]
[线程:29]
[内容:SmallWindow-_libvlc_Log=directsound Debug: found 2 devices]
[时间:2023-02-17 20:20:40,311]
[线程:33]
[内容:SmallWindow-_libvlc_Log=main Debug: removing module "swscale"]
[时间:2023-02-17 20:20:40,504]
[线程:31]
[内容:SmallWindow-_libvlc_Log=direct3d11 Debug: WinProc WM_DESTROY]
[时间:2023-02-17 20:20:40,504]
[线程:10]
[内容:SmallWindow-_libvlc_Log=direct3d11 Debug: Win32 Vout EventThread terminating]
[时间:2023-02-17 20:20:40,504]
[线程:31]
[内容:SmallWindow-_libvlc_Log=direct3d11 Debug: WinProc WM_DESTROY]
[时间:2023-02-17 20:20:40,504]
[线程:34]
[内容:SmallWindow-_libvlc_Log=direct3d11 Debug: Win32VoutCloseWindow]
[时间:2023-02-17 20:20:40,556]
[线程:13]
[内容:SmallWindow-_libvlc_Log=main Debug: creating audio output]
[时间:2023-02-17 20:20:40,556]
[线程:13]
[内容:SmallWindow-_libvlc_Log=main Debug: creating audio output]
[时间:2023-02-17 20:20:40,556]
[线程:37]
[内容:SmallWindow-_libvlc_Log=main Debug: looking for audio output module matching "any": 6 candidates]
[时间:2023-02-17 20:20:40,557]
[线程:37]
[内容:SmallWindow-_libvlc_Log=main Debug: looking for audio output module matching "any": 6 candidates]
[时间:2023-02-17 20:20:40,557]
[线程:37]
[内容:SmallWindow-_libvlc_Log=directsound Debug: found 2 devices]
[时间:2023-02-17 20:20:40,558]
[线程:37]
[内容:SmallWindow-_libvlc_Log=directsound Debug: found 2 devices]
[时间:2023-02-17 20:20:40,557]
[线程:12]
[内容:SmallWindow-_libvlc_Log=main Debug: using audio output module "directsound"]
[时间:2023-02-17 20:20:40,558]
[线程:12]
[内容:SmallWindow-_libvlc_Log=main Debug: using audio output module "directsound"]
[时间:2023-02-17 20:20:40,558]
[线程:12]
[内容:SmallWindow-_libvlc_Log=main Debug: keeping audio output]
[时间:2023-02-17 20:20:40,556]
[线程:15]
[内容:SmallWindow-_libvlc_Log=mmdevice Error: cannot initialize COM (error 0x80010106)]
[时间:2023-02-17 20:20:40,558]
[线程:12]
[内容:SmallWindow-_libvlc_Log=main Debug: keeping audio output]
[时间:2023-02-17 20:20:40,559]
[线程:15]
[内容:SmallWindow-_libvlc_Log=mmdevice Error: cannot initialize COM (error 0x80010106)]
~~~
https://code.videolan.org/videolan/LibVLCSharp/-/issues/600
Video does not play when AllowsTransparency=True on wpf window
2023-02-21T07:28:37Z
Lutz Lai
Video does not play when AllowsTransparency=True on wpf window
### Summary
I have a signage application that uses the libvlcsharp.wpf VideoView element to rotate through videos. Everything works great except for some times I get a white frame between videos. I believe this is the Foreground window ...
### Summary
I have a signage application that uses the libvlcsharp.wpf VideoView element to rotate through videos. Everything works great except for some times I get a white frame between videos. I believe this is the Foreground window loading on top of the VideoView. This is related to https://code.videolan.org/videolan/LibVLCSharp/-/issues/555. To fix this problem what I have done is add allowstransparency=true
```
<Window
WindowStyle="None"
AllowsTransparency="True"
>
```
That works on my machine but now when I run it on a client machine the video does not play at all. The other machine is window 10 Build 14393. When I remove the AllowsTransparency property the videos play properly but I get the white frame. Anyone have any ideas why the video would not play when AllowsTransparency="True"? Am I possibly missing a dependency or something that would cause this? I do see the `Playing` event of the MediaPlayer firing properly.
### Minimal project and steps to reproduce
I apologize I do not know how to reproduce without the Build 14393, but my code is pretty much a simple VideoView where I set videos from the code-behind file
```
var media = new Media(_libVLC, new Uri(source, UriKind.Absolute));
VideoOne.MediaPlayer.Play(media);
```
### What is the current *bug* behavior?
Video does not play when AllowsTransparency="True" is set to true on MainWindow on Windows 10 Build 14393
### What is the expected *correct* behavior?
The video to play without the white frame between videos.
### Does it work on other plaforms? Does it work with the official VLC apps?
I have seen this work on Windows 10 build 17763 and 19044
### Relevant LibVLC logs and/or screenshots
VLC Logs
```
2023-02-08 17:24:35.178 -06:00 [INF] revision 3.0.18-0-ge9eceaed4d
2023-02-08 17:24:35.178 -06:00 [INF] VLC media player - 3.0.18 Vetinari
2023-02-08 17:24:35.178 -06:00 [INF] configured with /builds/videolan/vlc/extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-shout' '--enable-goom' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--host=x86_64-w64-mingw32' '--with-contrib=../contrib/x86_64-w64-mingw32' '--with-breakpad=https://win.crashes.videolan.org' '--enable-qt' '--enable-skins2' '--enable-dvdread' '--enable-caca' 'host_alias=x86_64-w64-mingw32' 'CFLAGS= ' 'CXXFLAGS= ' 'PKG_CONFIG=pkg-config' 'PKG_CONFIG_LIBDIR=/usr/x86_64-w64-mingw32/lib/pkgconfig:/usr/lib/x86_64-w64-mingw32/pkgconfig'
2023-02-08 17:24:35.178 -06:00 [INF] Copyright © 1996-2022 the VideoLAN team
2023-02-08 17:24:36.070 -06:00 [INF] creating audio output
2023-02-08 17:24:36.070 -06:00 [INF] looking for audio output module matching "any": zd candidates
2023-02-08 17:24:36.070 -06:00 [INF] cannot initialize COM (error 0x80010106)
2023-02-08 17:24:36.083 -06:00 [INF] found 2 devices
2023-02-08 17:24:36.083 -06:00 [INF] using audio output module "directsound"
2023-02-08 17:24:36.085 -06:00 [INF] keeping audio output
2023-02-08 17:24:36.347 -06:00 [INF] creating audio output
2023-02-08 17:24:36.347 -06:00 [INF] looking for audio output module matching "any": zd candidates
2023-02-08 17:24:36.347 -06:00 [INF] cannot initialize COM (error 0x80010106)
2023-02-08 17:24:36.348 -06:00 [INF] found 2 devices
2023-02-08 17:24:36.349 -06:00 [INF] using audio output module "directsound"
2023-02-08 17:24:36.350 -06:00 [INF] keeping audio output
2023-02-08 17:24:36.463 -06:00 [INF] removing module "directsound"
2023-02-08 17:24:36.478 -06:00 [INF] Creating an input for 'file-428.mp4'
2023-02-08 17:24:36.482 -06:00 [INF] using timeshift granularity of 50 MiB
2023-02-08 17:24:36.482 -06:00 [INF] using timeshift path: C:\Users\NEXTLE~1\AppData\Local\Temp
2023-02-08 17:24:36.483 -06:00 [INF] creating demux: access='file' demux='any' location='/C:/ProgramData/Project_Schedule_Player_WPF/Media/file-428.mp4' file='C:\ProgramData\Project_Schedule_Player_WPF\Media\file-428.mp4'
2023-02-08 17:24:36.483 -06:00 [INF] looking for access_demux module matching "file": zd candidates
2023-02-08 17:24:36.485 -06:00 [INF] no access_demux modules matched
2023-02-08 17:24:36.486 -06:00 [INF] creating access: file:///C:/ProgramData/Project_Schedule_Player_WPF/Media/file-428.mp4
2023-02-08 17:24:36.486 -06:00 [INF] (path: C:\ProgramData\Project_Schedule_Player_WPF\Media\file-428.mp4)
2023-02-08 17:24:36.486 -06:00 [INF] looking for access module matching "file": zd candidates
2023-02-08 17:24:36.487 -06:00 [INF] using access module "filesystem"
2023-02-08 17:24:36.487 -06:00 [INF] looking for stream_filter module matching "prefetch,cache_read": zd candidates
2023-02-08 17:24:36.487 -06:00 [INF] Using stream method for AStream*
2023-02-08 17:24:36.488 -06:00 [INF] starting pre-buffering
2023-02-08 17:24:36.488 -06:00 [INF] received first data after 1 ms
2023-02-08 17:24:36.488 -06:00 [INF] pre-buffering done 1024 bytes in 0s - 999 KiB/s
2023-02-08 17:24:36.489 -06:00 [INF] using stream_filter module "cache_read"
2023-02-08 17:24:36.489 -06:00 [INF] looking for stream_filter module matching "any": zd candidates
2023-02-08 17:24:36.491 -06:00 [INF] Trying Lua scripts in C:\Users\NEXTLED SIGNS\AppData\Roaming\vlc\lua\playlist
2023-02-08 17:24:36.492 -06:00 [INF] Trying Lua scripts in C:\Program Files\Project\libvlc\win-x64\lua\playlist
2023-02-08 17:24:36.492 -06:00 [INF] `file:///C:/ProgramData/Project_Schedule_Player_WPF/Media/file-428.mp4' gives access `file' demux `any' path `/C:/ProgramData/Project_Schedule_Player_WPF/Media/file-428.mp4'
2023-02-08 17:24:36.493 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\anevia_streams.luac
2023-02-08 17:24:36.497 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\anevia_xml.luac
2023-02-08 17:24:36.500 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\appletrailers.luac
2023-02-08 17:24:36.502 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\bbc_co_uk.luac
2023-02-08 17:24:36.504 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\cue.luac
2023-02-08 17:24:36.507 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\dailymotion.luac
2023-02-08 17:24:36.509 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\jamendo.luac
2023-02-08 17:24:36.511 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\koreus.luac
2023-02-08 17:24:36.513 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\liveleak.luac
2023-02-08 17:24:36.523 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\newgrounds.luac
2023-02-08 17:24:36.523 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\rockbox_fm_presets.luac
2023-02-08 17:24:36.523 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\soundcloud.luac
2023-02-08 17:24:36.525 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\twitch.luac
2023-02-08 17:24:36.528 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\vimeo.luac
2023-02-08 17:24:36.529 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\vocaroo.luac
2023-02-08 17:24:36.532 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\playlist\youtube.luac
2023-02-08 17:24:36.535 -06:00 [INF] no stream_filter modules matched
2023-02-08 17:24:36.535 -06:00 [INF] looking for stream_directory module matching "any": zd candidates
2023-02-08 17:24:36.535 -06:00 [INF] no stream_directory modules matched
2023-02-08 17:24:36.535 -06:00 [INF] attachment of directory-extractor failed for file:///C:/ProgramData/Project_Schedule_Player_WPF/Media/file-428.mp4
2023-02-08 17:24:36.535 -06:00 [INF] looking for stream_filter module matching "record": zd candidates
2023-02-08 17:24:36.535 -06:00 [INF] using stream_filter module "record"
2023-02-08 17:24:36.536 -06:00 [INF] creating demux: access='file' demux='any' location='/C:/ProgramData/Project_Schedule_Player_WPF/Media/file-428.mp4' file='C:\ProgramData\Project_Schedule_Player_WPF\Media\file-428.mp4'
2023-02-08 17:24:36.536 -06:00 [INF] looking for demux module matching "mp4": zd candidates
2023-02-08 17:24:36.537 -06:00 [INF] dumping root Box "root"
2023-02-08 17:24:36.537 -06:00 [INF] | + ftyp size 24 offset 0
2023-02-08 17:24:36.537 -06:00 [INF] | + moov size 4863 offset 24
2023-02-08 17:24:36.538 -06:00 [INF] | | + mvhd size 108 offset 32
2023-02-08 17:24:36.538 -06:00 [INF] | | + trak size 2542 offset 140
2023-02-08 17:24:36.538 -06:00 [INF] | | | + tkhd size 92 offset 148
2023-02-08 17:24:36.538 -06:00 [INF] | | | + edts size 36 offset 240
2023-02-08 17:24:36.538 -06:00 [INF] | | | | + elst size 28 offset 248
2023-02-08 17:24:36.538 -06:00 [INF] | | | + mdia size 2406 offset 276
2023-02-08 17:24:36.539 -06:00 [INF] | | | | + mdhd size 32 offset 284
2023-02-08 17:24:36.539 -06:00 [INF] | | | | + hdlr size 68 offset 316
2023-02-08 17:24:36.539 -06:00 [INF] | | | | + minf size 2298 offset 384
2023-02-08 17:24:36.540 -06:00 [INF] | | | | | + smhd size 16 offset 392
2023-02-08 17:24:36.540 -06:00 [INF] | | | | | + dinf size 36 offset 459
2023-02-08 17:24:36.540 -06:00 [INF] | | | | | | + dref size 28 offset 467
2023-02-08 17:24:36.541 -06:00 [INF] | | | | | | | + url size 12 offset 483
2023-02-08 17:24:36.541 -06:00 [INF] | | | | | + hdlr size 51 offset 408
2023-02-08 17:24:36.541 -06:00 [INF] | | | | | + stbl size 2187 offset 495
2023-02-08 17:24:36.541 -06:00 [INF] | | | | | | + stsd size 91 offset 503
2023-02-08 17:24:36.541 -06:00 [INF] | | | | | | + stts size 24 offset 594
2023-02-08 17:24:36.541 -06:00 [INF] | | | | | | + stsc size 124 offset 618
2023-02-08 17:24:36.542 -06:00 [INF] | | | | | | + stsz size 1864 offset 742
2023-02-08 17:24:36.542 -06:00 [INF] | | | | | | + stco size 76 offset 2606
2023-02-08 17:24:36.541 -06:00 [INF] | | | | | | | + mp4a size 75 offset 519
2023-02-08 17:24:36.541 -06:00 [INF] | | | | | | | | + esds size 39 offset 555
2023-02-08 17:24:36.542 -06:00 [INF] | | | + tkhd size 92 offset 2690
2023-02-08 17:24:36.542 -06:00 [INF] | | + trak size 2205 offset 2682
2023-02-08 17:24:36.542 -06:00 [INF] | | | + edts size 36 offset 2782
2023-02-08 17:24:36.542 -06:00 [INF] | | | | + mdhd size 32 offset 2826
2023-02-08 17:24:36.542 -06:00 [INF] | | | | + elst size 28 offset 2790
2023-02-08 17:24:36.543 -06:00 [INF] | | | | + hdlr size 64 offset 2858
2023-02-08 17:24:36.543 -06:00 [INF] | | | | + minf size 1965 offset 2922
2023-02-08 17:24:36.542 -06:00 [INF] | | | + mdia size 2069 offset 2818
2023-02-08 17:24:36.543 -06:00 [INF] | | | | | | + dref size 28 offset 3009
2023-02-08 17:24:36.543 -06:00 [INF] | | | | | + vmhd size 20 offset 2930
2023-02-08 17:24:36.543 -06:00 [INF] | | | | | + hdlr size 51 offset 2950
2023-02-08 17:24:36.543 -06:00 [INF] | | | | | + dinf size 36 offset 3001
2023-02-08 17:24:36.544 -06:00 [INF] | | | | | | | + url size 12 offset 3025
2023-02-08 17:24:36.544 -06:00 [INF] | | | | | + stbl size 1850 offset 3037
2023-02-08 17:24:36.544 -06:00 [INF] | | | | | | + stsd size 151 offset 3045
2023-02-08 17:24:36.544 -06:00 [INF] | | | | | | | + avc1 size 135 offset 3061
2023-02-08 17:24:36.544 -06:00 [INF] | | | | | | | | + avcC size 49 offset 3147
2023-02-08 17:24:36.544 -06:00 [INF] | | | | | | + stts size 24 offset 3196
2023-02-08 17:24:36.544 -06:00 [INF] | | | | | | + stsc size 40 offset 3220
2023-02-08 17:24:36.545 -06:00 [INF] | | | | | | + stsz size 608 offset 3260
2023-02-08 17:24:36.545 -06:00 [INF] | | | | | | + stco size 76 offset 3868
2023-02-08 17:24:36.546 -06:00 [INF] | + skip size 46345 offset 4887
2023-02-08 17:24:36.545 -06:00 [INF] | | | | | | + stss size 56 offset 3944
2023-02-08 17:24:36.545 -06:00 [INF] | | | | | | + sdtp size 159 offset 4000
2023-02-08 17:24:36.546 -06:00 [INF] | + mdat size 1721464 offset 61480
2023-02-08 17:24:36.546 -06:00 [INF] unrecognized major media specification (mp42).
2023-02-08 17:24:36.546 -06:00 [INF] | + skip size 10248 offset 51232
2023-02-08 17:24:36.547 -06:00 [INF] elst box found
2023-02-08 17:24:36.545 -06:00 [INF] | | | | | | + ctts size 728 offset 4159
2023-02-08 17:24:36.548 -06:00 [INF] - [0] duration=9800ms media time=0ms) rate=1.0
2023-02-08 17:24:36.548 -06:00 [INF] track[Id 0x2] read 15 chunk
2023-02-08 17:24:36.546 -06:00 [INF] found 2 tracks
2023-02-08 17:24:36.548 -06:00 [INF] STTS table of 1 entries
2023-02-08 17:24:36.549 -06:00 [INF] selecting program id=0
2023-02-08 17:24:36.548 -06:00 [INF] track[Id 0x2] read 461 samples length:9s
2023-02-08 17:24:36.549 -06:00 [INF] adding track[Id 0x2] audio (enable) language eng
2023-02-08 17:24:36.549 -06:00 [INF] - [0] duration=9800ms media time=66ms) rate=1.0
2023-02-08 17:24:36.549 -06:00 [INF] track[Id 0x1] read 15 chunk
2023-02-08 17:24:36.549 -06:00 [INF] elst box found
2023-02-08 17:24:36.549 -06:00 [INF] STTS table of 1 entries
2023-02-08 17:24:36.550 -06:00 [INF] CTTS table of 89 entries
2023-02-08 17:24:36.550 -06:00 [INF] track[Id 0x1] read 147 samples length:9s
2023-02-08 17:24:36.550 -06:00 [INF] adding track[Id 0x1] video (enable) language eng
2023-02-08 17:24:36.550 -06:00 [INF] using demux module "mp4"
2023-02-08 17:24:36.551 -06:00 [INF] looking for a subtitle file in C:\ProgramData\Project_Schedule_Player_WPF\Media\
2023-02-08 17:24:36.552 -06:00 [INF] looking for audio decoder module matching "any": zd candidates
2023-02-08 17:24:36.552 -06:00 [INF] using audio decoder module "faad"
2023-02-08 17:24:36.553 -06:00 [INF] looking for video decoder module matching "any": zd candidates
2023-02-08 17:24:36.553 -06:00 [INF] using ffmpeg Lavc58.134.100
2023-02-08 17:24:36.553 -06:00 [INF] CPU flags: 0x000013db
2023-02-08 17:24:36.554 -06:00 [INF] allowing 5 thread(s) for decoding
2023-02-08 17:24:36.560 -06:00 [INF] codec (h264) started
2023-02-08 17:24:36.560 -06:00 [INF] using frame thread mode with 5 threads
2023-02-08 17:24:36.560 -06:00 [INF] using video decoder module "avcodec"
2023-02-08 17:24:36.561 -06:00 [INF] looking for meta reader module matching "any": zd candidates
2023-02-08 17:24:36.565 -06:00 [INF] Trying Lua scripts in C:\Users\NEXTLED SIGNS\AppData\Roaming\vlc\lua\meta\reader
2023-02-08 17:24:36.565 -06:00 [INF] Trying Lua scripts in C:\Program Files\Project\libvlc\win-x64\lua\meta\reader
2023-02-08 17:24:36.566 -06:00 [INF] Trying Lua playlist script C:\Program Files\Project\libvlc\win-x64\lua\meta\reader\filename.luac
2023-02-08 17:24:36.569 -06:00 [INF] no meta reader modules matched
2023-02-08 17:24:36.569 -06:00 [INF] `file:///C:/ProgramData/Project_Schedule_Player_WPF/Media/file-428.mp4' successfully opened
2023-02-08 17:24:36.571 -06:00 [INF] Video Playing System.EventArgs
2023-02-08 17:24:36.572 -06:00 [INF] elst (0) gives 0ms (movie)-> 0ms (track)
2023-02-08 17:24:36.572 -06:00 [INF] elst (0) gives 0ms (movie)-> 66ms (track)
2023-02-08 17:24:36.572 -06:00 [INF] stss gives 1 --> 0 (sample number)
2023-02-08 17:24:36.576 -06:00 [INF] Buffering 0%
2023-02-08 17:24:36.578 -06:00 [INF] Buffering 25%
2023-02-08 17:24:36.572 -06:00 [INF] track[Id 0x1] using Sync Sample Box (stss)
2023-02-08 17:24:36.579 -06:00 [INF] decoded zero sample
2023-02-08 17:24:36.579 -06:00 [INF] reusing audio output
2023-02-08 17:24:36.579 -06:00 [INF] Buffering 75%
2023-02-08 17:24:36.579 -06:00 [INF] available hardware decoder output format 53 (dxva2_vld)
2023-02-08 17:24:36.579 -06:00 [INF] Opening DirectSound Audio Output
2023-02-08 17:24:36.579 -06:00 [INF] available hardware decoder output format 118 (d3d11va_vld)
2023-02-08 17:24:36.579 -06:00 [INF] available hardware decoder output format 174 (d3d11)
2023-02-08 17:24:36.579 -06:00 [INF] available software decoder output format 0 (yuv420p)
2023-02-08 17:24:36.580 -06:00 [INF] Stream buffering done (1250 ms in 6 ms)
2023-02-08 17:24:36.580 -06:00 [INF] trying format d3d11va_vld
2023-02-08 17:24:36.580 -06:00 [INF] Buffering 100%
2023-02-08 17:24:36.579 -06:00 [INF] Buffering 50%
2023-02-08 17:24:36.580 -06:00 [INF] looking for text renderer module matching "any": zd candidates
2023-02-08 17:24:36.580 -06:00 [INF] Using DWrite backend
2023-02-08 17:24:36.581 -06:00 [INF] DWrite_ParseFamily(): using font at index 2 with weight 400 for bold: 0, italic: 1
2023-02-08 17:24:36.581 -06:00 [INF] DWrite_ParseFamily(): using font at index 0 with weight 400 for bold: 0, italic: 0
2023-02-08 17:24:36.581 -06:00 [INF] DWrite_ParseFamily(): using font at index 1 with weight 700 for bold: 1, italic: 0
2023-02-08 17:24:36.581 -06:00 [INF] DWrite_GetFamily(): family name: Arial
2023-02-08 17:24:36.581 -06:00 [INF] DWrite_ParseFamily(): using font at index 3 with weight 700 for bold: 1, italic: 1
2023-02-08 17:24:36.584 -06:00 [INF] using text renderer module "freetype"
2023-02-08 17:24:36.584 -06:00 [INF] looking for video converter module matching "any": zd candidates
2023-02-08 17:24:36.587 -06:00 [INF] 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality)
2023-02-08 17:24:36.587 -06:00 [INF] using video converter module "swscale"
2023-02-08 17:24:36.587 -06:00 [INF] looking for video converter module matching "any": zd candidates
2023-02-08 17:24:36.588 -06:00 [INF] YUVP to YUVA converter
2023-02-08 17:24:36.588 -06:00 [INF] using video converter module "yuvp"
2023-02-08 17:24:36.588 -06:00 [INF] Deinterlacing available
2023-02-08 17:24:36.588 -06:00 [INF] deinterlace -1, mode auto, is_needed 0
2023-02-08 17:24:36.588 -06:00 [INF] using vout window module "drawable"
2023-02-08 17:24:36.588 -06:00 [INF] looking for inhibit module matching "any": zd candidates
2023-02-08 17:24:36.588 -06:00 [INF] looking for vout window module matching "embed-hwnd,any": zd candidates
2023-02-08 17:24:36.592 -06:00 [INF] using inhibit module "inhibit"
2023-02-08 17:24:36.594 -06:00 [INF] Opening vout display wrapper
2023-02-08 17:24:36.594 -06:00 [INF] looking for vout display module matching "any": zd candidates
2023-02-08 17:24:36.599 -06:00 [INF] creating Vout EventThread
2023-02-08 17:24:36.602 -06:00 [INF] Win32VoutCreateWindow
2023-02-08 17:24:36.602 -06:00 [INF] VoutDisplayEvent 'resize' 714x322
2023-02-08 17:24:36.612 -06:00 [INF] Windows speaker config: Stereo and stream has 2 channels, using 2 channels
2023-02-08 17:24:36.614 -06:00 [INF] inclinometer not found. (hr=0x80070490)
2023-02-08 17:24:36.636 -06:00 [INF] output 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes
2023-02-08 17:24:36.637 -06:00 [INF] looking for audio volume module matching "any": zd candidates
2023-02-08 17:24:36.637 -06:00 [INF] using audio volume module "float_mixer"
2023-02-08 17:24:36.637 -06:00 [INF] input 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes
2023-02-08 17:24:36.638 -06:00 [INF] looking for audio filter module matching "scaletempo": zd candidates
2023-02-08 17:24:36.638 -06:00 [INF] format: 48000 rate, 2 nch, 4 bps, fl32
2023-02-08 17:24:36.638 -06:00 [INF] params: 30 stride, 0.200 overlap, 14 search
2023-02-08 17:24:36.638 -06:00 [INF] 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
2023-02-08 17:24:36.638 -06:00 [INF] conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo
2023-02-08 17:24:36.638 -06:00 [INF] conversion pipeline complete
2023-02-08 17:24:36.638 -06:00 [INF] using audio filter module "scaletempo"
2023-02-08 17:24:36.639 -06:00 [INF] conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo
2023-02-08 17:24:36.639 -06:00 [INF] conversion pipeline complete
2023-02-08 17:24:36.639 -06:00 [INF] looking for audio resampler module matching "any": zd candidates
2023-02-08 17:24:36.640 -06:00 [INF] using audio resampler module "samplerate"
2023-02-08 17:24:37.213 -06:00 [INF] created video sub-window
2023-02-08 17:24:37.213 -06:00 [INF] Vout EventThread running
2023-02-08 17:24:37.227 -06:00 [INF] Created the D3D11 device type 1 level b000.
2023-02-08 17:24:37.227 -06:00 [INF] failed to read the 0 Display Adapter registry key (2)
2023-02-08 17:24:37.228 -06:00 [INF] can't find adapter in registry
2023-02-08 17:24:37.230 -06:00 [INF] supports colorspace RGB Rec.709 gamma:22 range:FULL
2023-02-08 17:24:37.231 -06:00 [INF] supports colorspace RGB Rec.2020 gamma:22 range:STUDIO
2023-02-08 17:24:37.231 -06:00 [INF] supports colorspace RGB Rec.2020 gamma:22 range:FULL
2023-02-08 17:24:37.232 -06:00 [INF] supports colorspace RGB Rec.2020 gamma:2084 range:FULL
2023-02-08 17:24:37.232 -06:00 [INF] supports colorspace RGB Rec.2020 gamma:2084 range:STUDIO
2023-02-08 17:24:37.232 -06:00 [INF] using colorspace RGB Rec.709 gamma:22 range:FULL
2023-02-08 17:24:37.233 -06:00 [INF] Using pixel format VA_NV12 for chroma DX11
2023-02-08 17:24:37.276 -06:00 [INF] VoutDisplayEvent 'resize' 730x361
2023-02-08 17:24:37.355 -06:00 [INF] Direct3D11 resources created
2023-02-08 17:24:37.355 -06:00 [INF] Direct3D11 device adapter successfully initialized
2023-02-08 17:24:37.355 -06:00 [INF] Direct3D11 Open Succeeded
2023-02-08 17:24:37.356 -06:00 [INF] using vout display module "direct3d11"
2023-02-08 17:24:37.358 -06:00 [INF] D3D11 pool succeed with 38 surfaces (768x384) context 0x00000185733A5AB8
2023-02-08 17:24:37.361 -06:00 [INF] original format sz 720x336, of (0,0), vsz 714x322, 4cc DX11, sar 1:1, msk r0x0 g0x0 b0x0
2023-02-08 17:24:37.361 -06:00 [INF] removing module "freetype"
2023-02-08 17:24:37.361 -06:00 [INF] looking for text renderer module matching "any": zd candidates
2023-02-08 17:24:37.361 -06:00 [INF] DWrite_GetFamily(): family name: Arial
2023-02-08 17:24:37.361 -06:00 [INF] VoutDisplayEvent 'resize' 176x80
2023-02-08 17:24:37.362 -06:00 [INF] DWrite_ParseFamily(): using font at index 0 with weight 400 for bold: 0, italic: 0
2023-02-08 17:24:37.363 -06:00 [INF] DWrite_ParseFamily(): using font at index 1 with weight 700 for bold: 1, italic: 0
2023-02-08 17:24:37.361 -06:00 [INF] Using DWrite backend
2023-02-08 17:24:37.363 -06:00 [INF] DWrite_ParseFamily(): using font at index 2 with weight 400 for bold: 0, italic: 1
2023-02-08 17:24:37.363 -06:00 [INF] Detected size change 176x79
2023-02-08 17:24:37.363 -06:00 [INF] using text renderer module "freetype"
2023-02-08 17:24:37.363 -06:00 [INF] DWrite_ParseFamily(): using font at index 3 with weight 700 for bold: 1, italic: 1
2023-02-08 17:24:37.367 -06:00 [INF] Detected size change 176x80
2023-02-08 17:24:37.370 -06:00 [INF] looking for hw decoder module matching "any": zd candidates
2023-02-08 17:24:37.370 -06:00 [INF] failed to read the 0 Display Adapter registry key (2)
2023-02-08 17:24:37.370 -06:00 [INF] can't find adapter in registry
2023-02-08 17:24:37.370 -06:00 [INF] Reusing Direct3D11 device
2023-02-08 17:24:37.371 -06:00 [INF] CreateDevice succeed
2023-02-08 17:24:37.371 -06:00 [INF] - 'MPEG-2 variable-length decoder' is supported
2023-02-08 17:24:37.372 -06:00 [INF] - 'MPEG-2 inverse discrete cosine transform' is supported
2023-02-08 17:24:37.372 -06:00 [INF] - 'VC-1 variable-length decoder' is supported
2023-02-08 17:24:37.372 -06:00 [INF] - 'VC-1 variable-length decoder 2 (Intel)' is supported
2023-02-08 17:24:37.373 -06:00 [INF] - 'VC-1 variable-length decoder (Intel)' is supported
2023-02-08 17:24:37.373 -06:00 [INF] - 'VC-1 inverse discrete cosine transform' is supported
2023-02-08 17:24:37.373 -06:00 [INF] - 'Windows Media Video 9 IDCT' is supported
2023-02-08 17:24:37.373 -06:00 [INF] - 'H.264 variable-length decoder, no film grain technology' is supported
2023-02-08 17:24:37.373 -06:00 [INF] - 'Unknown decoder 0x91cd2d6e-0x897b-0x4fa1-0xb0d751dc88010e0a' is supported
2023-02-08 17:24:37.374 -06:00 [INF] - 'Unknown decoder 0x442b942a-0xb4d9-0x4940-0xbc45a882e5f919f3' is supported
2023-02-08 17:24:37.374 -06:00 [INF] - 'Unknown decoder 0x97688186-0x56a8-0x4094-0xb543fc9daaa49f4b' is supported
2023-02-08 17:24:37.374 -06:00 [INF] - 'Unknown decoder 0xffc79924-0x5eaf-0x4666-0xa73606190f281443' is supported
2023-02-08 17:24:37.375 -06:00 [INF] - 'Unknown decoder 0xf416f7bd-0x098a-0x4cf1-0xa11bce54959ca03d' is supported
2023-02-08 17:24:37.375 -06:00 [INF] - 'Unknown decoder 0x49761bec-0x4b63-0x4349-0xa5ff87ffdf088466' is supported
2023-02-08 17:24:37.375 -06:00 [INF] Trying to use 'H.264 variable-length decoder, no film grain technology' as input
2023-02-08 17:24:37.375 -06:00 [INF] NV12 output is supported for decoder H.264 variable-length decoder, no film grain technology.
2023-02-08 17:24:37.375 -06:00 [INF] Using output format NV12 for decoder H.264 variable-length decoder, no film grain technology
2023-02-08 17:24:37.376 -06:00 [INF] va_pool_SetupDecoder id 27 720x336 count: 23
2023-02-08 17:24:37.376 -06:00 [INF] ID3D11VideoDecoderOutputView succeed with 23 surfaces (720x336)
2023-02-08 17:24:37.376 -06:00 [INF] we got 6 decoder configurations
2023-02-08 17:24:37.377 -06:00 [INF] using external surface pool
2023-02-08 17:24:37.377 -06:00 [INF] configuration[0] ConfigBitstreamRaw 2
2023-02-08 17:24:37.377 -06:00 [INF] configuration[1] ConfigBitstreamRaw 1
2023-02-08 17:24:37.377 -06:00 [INF] configuration[2] ConfigBitstreamRaw 1
2023-02-08 17:24:37.377 -06:00 [INF] configuration[3] ConfigBitstreamRaw 1
2023-02-08 17:24:37.377 -06:00 [INF] configuration[4] ConfigBitstreamRaw 2
2023-02-08 17:24:37.377 -06:00 [INF] configuration[5] ConfigBitstreamRaw 2
2023-02-08 17:24:37.381 -06:00 [INF] DxCreateDecoderSurfaces succeed
2023-02-08 17:24:37.381 -06:00 [INF] using hw decoder module "d3d11va"
2023-02-08 17:24:37.381 -06:00 [INF] Using D3D11VA (Intel(R) HD Graphics, vendor 8086(Intel), device f31, revision 11) for hardware decoding
2023-02-08 17:24:37.408 -06:00 [INF] Received first picture
2023-02-08 17:24:37.413 -06:00 [INF] Decoder wait done in 833 ms
2023-02-08 17:24:37.623 -06:00 [INF] auto hiding mouse cursor
2023-02-08 17:24:37.623 -06:00 [INF] unsupported control query 3
2023-02-08 17:24:43.454 -06:00 [INF] killing decoder fourcc `mp4a'
2023-02-08 17:24:43.454 -06:00 [INF] removing module "faad"
2023-02-08 17:24:43.454 -06:00 [INF] removing module "samplerate"
2023-02-08 17:24:43.454 -06:00 [INF] removing module "scaletempo"
2023-02-08 17:24:43.455 -06:00 [INF] closing audio device
2023-02-08 17:24:43.475 -06:00 [INF] removing module "float_mixer"
2023-02-08 17:24:43.475 -06:00 [INF] keeping audio output
2023-02-08 17:24:43.477 -06:00 [INF] killing decoder fourcc `h264'
2023-02-08 17:24:43.477 -06:00 [INF] removing module "avcodec"
2023-02-08 17:24:43.492 -06:00 [INF] saving a free vout
2023-02-08 17:24:43.493 -06:00 [INF] reusing provided vout
2023-02-08 17:24:43.493 -06:00 [INF] removing module "mp4"
2023-02-08 17:24:43.493 -06:00 [INF] freeing all memory
2023-02-08 17:24:43.493 -06:00 [INF] Program doesn't contain anymore ES
2023-02-08 17:24:43.494 -06:00 [INF] removing module "record"
2023-02-08 17:24:43.494 -06:00 [INF] removing module "cache_read"
2023-02-08 17:24:43.494 -06:00 [INF] removing module "filesystem"
2023-02-08 17:24:43.497 -06:00 [INF] removing module "directsound"
2023-02-08 17:24:43.497 -06:00 [INF] destroying useless vout
2023-02-08 17:24:43.497 -06:00 [INF] removing module "direct3d11"
2023-02-08 17:24:43.498 -06:00 [INF] Direct3D11 resources destroyed
2023-02-08 17:24:43.516 -06:00 [INF] Direct3D11 device adapter closed
2023-02-08 17:24:43.516 -06:00 [INF] SetThumbNailClip failed: 0x800706f4
2023-02-08 17:24:43.517 -06:00 [INF] Win32 Vout EventThread terminating
2023-02-08 17:24:43.517 -06:00 [INF] Win32VoutCloseWindow
2023-02-08 17:24:43.518 -06:00 [INF] WinProc WM_DESTROY
2023-02-08 17:24:43.525 -06:00 [INF] removing module "inhibit"
2023-02-08 17:24:43.527 -06:00 [INF] removing module "freetype"
2023-02-08 17:24:43.528 -06:00 [INF] removing module "yuvp"
2023-02-08 17:24:43.528 -06:00 [INF] removing module "swscale"
```
### Environment
* OS: Windows 10 Enterprise 2016 LTSB
* Version Build 14393
* Device: x64
* LibVLC version and architecture: Windows 3.0.18
* LibVLCSharp version: WPF 3.6.7
https://code.videolan.org/videolan/LibVLCSharp/-/issues/599
Failed to load Required Native Libraries
2023-01-10T05:33:39Z
Vash Baldeus
Failed to load Required Native Libraries
The app I am working on proceeds to throw the following:
_Failed to load required native libraries.
Have you installed the latest LibVLC package from nuget for your target platform?
Search Includes:
[sub folders of where the library
ac...
The app I am working on proceeds to throw the following:
_Failed to load required native libraries.
Have you installed the latest LibVLC package from nuget for your target platform?
Search Includes:
[sub folders of where the library
actually resides and exists!]_
Only if I put:
- hrtfs
- locale
- lua
- plugins
- libvlc.dll
- libvlccore.dll
- libvlc.lib
- libvlccore.lib
In the root where the *.exe of app is then it loads fine. Is there a solution to this?
https://code.videolan.org/videolan/LibVLCSharp/-/issues/598
New Avalonia update 11.0.0 not working
2023-01-09T10:31:56Z
Miroslav Murin
New Avalonia update 11.0.0 not working
### Summary
In new Avalonia 11.0.0 Preview 4 LibVLCSharp crashes with the following error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'Avalonia.Styling, Version=0.10.7.0, Culture=neutral, PublicKeyToken=c8d484a7012...
### Summary
In new Avalonia 11.0.0 Preview 4 LibVLCSharp crashes with the following error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'Avalonia.Styling, Version=0.10.7.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'. The system cannot find the file specified.'
In the previous version 0.10.18 it worked fine.
### Minimal project and steps to reproduce
To reproduce the bug, all you need is an example project and the latest version of Avalonia.
### What is the current *bug* behavior?
Program crash.
### What is the expected *correct* behavior?
Start the program and play the video.
### Does it work on other plaforms? Does it work with the official VLC apps?
This bug is related to Avalonia View. Version of Avalonia: 11.0.0 Preview 4
### Relevant LibVLC logs and/or screenshots
```
System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly 'Avalonia.Styling, Version=0.10.7.0, Culture=neutral, PublicKeyToken=c8d484a7012f9a8b'. The system cannot find the file specified.
Source=LibVLCSharp.Avalonia
StackTrace:
at LibVLCSharp.Avalonia.VideoView.Attach()
at LibVLCSharp.Avalonia.VideoView.CreateNativeControlCore(IPlatformHandle parent)
at Avalonia.Controls.NativeControlHost.<UpdateHost>b__10_0(IPlatformHandle parent)
at Avalonia.Win32.Win32NativeControlHost.CreateNewAttachment(Func 2 create)
at Avalonia.Controls.NativeControlHost.UpdateHost()
at Avalonia.Visual.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Layout.Layoutable.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Controls.Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Visual.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Layout.Layoutable.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Controls.Control.OnAttachedToVisualTreeCore(VisualTreeAttachmentEventArgs e)
at Avalonia.Visual.SetVisualParent(Visual value)
at Avalonia.Visual.SetVisualParent(IList children, Visual parent)
at Avalonia.Collections.AvaloniaList 1.NotifyAdd(T item, Int32 index)
at Avalonia.Controls.Presenters.ContentPresenter.UpdateChild(Object content)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding)
at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
at Avalonia.Controls.Window.MeasureOverride(Size availableSize)
at Avalonia.Controls.WindowBase.MeasureCore(Size availableSize)
at Avalonia.Layout.Layoutable.Measure(Size availableSize)
at Avalonia.Layout.LayoutManager.Measure(ILayoutable control)
at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass()
at Avalonia.Controls.Window.ShowCore(Window parent)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.ShowMainWindow()
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
at AvaloniaApplicationPreMVVM.Program.Main(String[] args) in C:\Users\Admin\source\repos\AvaloniaApplicationPreMVVM\AvaloniaApplicationPreMVVM\Program.cs:line 13
```
### Environment
<!-- Please complete the following information. -->
- OS: Windows
- Version 11
- Device: PC x64
- LibVLC version and architecture VideoLAN.LibVLC.Windows 3.0.18 x64
- LibVLCSharp version LibVLCSharp.Avalonia 3.6.7
https://code.videolan.org/videolan/LibVLCSharp/-/issues/597
关于 Panel.ZIndex 属性失效的疑惑
2023-01-09T10:22:44Z
陈
关于 Panel.ZIndex 属性失效的疑惑
**描述**
当我在使用LibVLCSharp.WPF 的时候遇到了 Panel.ZIndex 属性失效的问题。我在 window 中编写了两个并列的 VideoView , 并分别设置了 Panel.ZIndex 为19 和20 ,但是当窗体显示出来的时候, Panel.ZIndex 为20 的VideoView 被遮住了。
![图片](/uploads/465006183e9aeeba29452b8565bdb7cb/图片.png)
**CODE**
~...
**描述**
当我在使用LibVLCSharp.WPF 的时候遇到了 Panel.ZIndex 属性失效的问题。我在 window 中编写了两个并列的 VideoView , 并分别设置了 Panel.ZIndex 为19 和20 ,但是当窗体显示出来的时候, Panel.ZIndex 为20 的VideoView 被遮住了。
![图片](/uploads/465006183e9aeeba29452b8565bdb7cb/图片.png)
**CODE**
~~~
<Window x:Class="WpfApp1.Test.VideoView5"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1.Test"
xmlns:vlc="clr-namespace:LibVLCSharp.WPF;assembly=LibVLCSharp.WPF"
ResizeMode="NoResize" WindowStyle="None" AllowsTransparency="True"
mc:Ignorable="d"
Title="VideoView5" Height="1080" Width="1920">
<Grid>
<vlc:VideoView Background="LightBlue" x:Name="video_main" Panel.ZIndex="19" Width="1900" Height="1060">
<WrapPanel Margin="50">
</WrapPanel>
</vlc:VideoView>
<vlc:VideoView x:Name="video_small" Background="Black" Panel.ZIndex="20" Width="555" Height="300"></vlc:VideoView>
</Grid>
</Window>
~~~
`
public partial class VideoView5 : Window
{
readonly LibVLC _libvlc;
public VideoView5()
{
InitializeComponent();
_libvlc = new LibVLC();
string url = "http://1257120875.vod2.myqcloud.com/0ef121cdvodtransgzp1257120875/3055695e5285890780828799271/v.f230.m3u8";
string url2 = "http://39.134.115.163:8080/PLTV/88888910/224/3221225631/index.m3u8";
//VideoMain
video_main.MediaPlayer = new LibVLCSharp.Shared.MediaPlayer(_libvlc);
using (var media = new Media(_libvlc, new Uri(url)))
{
video_main.MediaPlayer.Play(media);
}
//videoSmall
video_small.MediaPlayer = new LibVLCSharp.Shared.MediaPlayer(_libvlc);
using (var media = new Media(_libvlc, new Uri(url2)))
{
video_small.MediaPlayer.Play(media);
}
}
}
`
**期望实现的效果**
可以使用 Panel.ZIndex 或者其他的属性实现窗体叠加的功能。 我的最终诉求是在一个 window 中展示两个rtsp 的流画面,一个作为背景占据全屏,另一个小屏放在左下角展示,并可以通过一个按钮来回切换。
![图片](/uploads/85a779c1960b02bbb46abf00a31b0dbe/图片.png)
https://code.videolan.org/videolan/LibVLCSharp/-/issues/596
rework linux init
2023-02-06T04:09:09Z
Martin Finkel
rework linux init
### Summary
```
if (Native.XInitThreads() == 0)
```
assumes x11 is used. It is not always the case.
The call could be removed and it should be documented that the user may need to call it themselves (with the help of https://github.com...
### Summary
```
if (Native.XInitThreads() == 0)
```
assumes x11 is used. It is not always the case.
The call could be removed and it should be documented that the user may need to call it themselves (with the help of https://github.com/terrafx/terrafx.interop.xlib for example).
### Minimal project and steps to reproduce
Run a minimal sample on a wayland system?
### What is the current *bug* behavior?
Crash.
`Unable to load shared library 'libX11' or one of its dependencies`
### What is the expected *correct* behavior?
No error.
### Does it work on other plaforms? Does it work with the official VLC apps?
Yes this is LibVLCSharp on Linux-only.
### Relevant LibVLC logs and/or screenshots
https://stackoverflow.com/questions/74934138/read-audio-file-duration-in-c-sharp-on-linux-with-net-6
### Environment
<!-- Please complete the following information. -->
- OS: <!-- [e.g. iOS] -->
- Version <!-- [e.g. 22] -->
- Device: <!-- [e.g. iPhone6] -->
- LibVLC version and architecture <!-- [e.g. 3.0.6, x64] -->
- LibVLCSharp version <!-- [e.g. 0.7.0] -->
### Possible fixes
<!-- If you can, link to the line of code that might be responsible for the problem -->