Quantcast
Channel: VideoLan DotNet for WinForm, WPF
Viewing all 471 articles
Browse latest View live

New Post: play audio to one side left/right speaker

$
0
0
Hi Jacob, I have the same problem to Change audio balance.
Could you put the answer if you found the it?

New Post: Disable autoplay when loading a file

$
0
0
Hi,
is there a way to prevent the Vlc WPF control to start playing media files automatically upon load?

Thanks!
Francesco

New Post: vlc interactive zoom

$
0
0
I can enable interactve zoom in vlc using the code VlcContext.StartupOptions.AddOption("--video-filter=magnify");
But it always shows default zoom value at start up. How to set interactive magnify value as commandline in my code.

New Post: High CPU usage? Whats going on here?

$
0
0
if use VlcContext.StartupOptions.AddOption("--ffmpeg-hw") this config

vlc can't decode mpg and mpeg

New Comment on "Documentation"

$
0
0
Is there any documentation or usage examples?

Created Unassigned: CPU usage of WPF version when paused [7540]

$
0
0
The wpf sample uses cpu (26% on my i5 3570 PC) even if the video is paused and it doesn't appear when using the winform version (cpu usage will be 0% when paused) or the official VLC application. So I would suspect it's an issue of the wpf libaray.

Env:
OS: win7 64 bits Professional and Home version
All VLC Log is disabled
VLC library: 2.0.6 and 2.0.2
VideoFile: the sample video file (my videos\wildlife.wmv) provided by windows7.

Commented Unassigned: CPU usage of WPF version when paused [7540]

$
0
0
The wpf sample uses cpu (26% on my i5 3570 PC) even if the video is paused and it doesn't appear when using the winform version (cpu usage will be 0% when paused) or the official VLC application. So I would suspect it's an issue of the wpf libaray.

Env:
OS: win7 64 bits Professional and Home version
All VLC Log is disabled
VLC library: 2.0.6 and 2.0.2
VideoFile: the sample video file (my videos\wildlife.wmv) provided by windows7.
Comments: ** Comment from web user: EbenZhang **

26% when using .net 3.5
down to 7% after upgrade to .net 4.5

New Post: Good news !!!

$
0
0
Hello,
I know that this post is too old but I couldn't change the audio track.
I use 2011.11.29.0 version, .net 2012 c#, Windows 8.
Please help me.

New Post: Fullscreen mode in WPF?

$
0
0
Hi there - I have a bit of a problem with the WPF control. I've put a little video player app together, but I can't find any Full Screen property or method on the control. Have I just missed it, or does it not exist? I tried just manually resizing the control to fill the screen, but this results in very choppy playback.

Is there any way to either a) switch the control into full screen mode, or b) solve the choppy playback issue? Thanks in advance!

New Post: NullReferenceException

$
0
0
Hi,
I have Vlc player 2.0.1 and tried to use dll with Silverlight. But same NullreferenceException error. I tried to modify code as medias.clear doesn't work!
If anyone can have updated dll for silverlight please send me to jeffereymeek@gmail.com
Thanks,
Jeff

New Post: NullReferenceException

$
0
0

Here they are.

Groeten/Regards,

Frank van Bokhoven

cid:image001.jpg@01CCB53B.F0146C70

Yggdra Solutions

Arnhemseweg 39

kvk: 09193694

6991DK Rheden

026-3706499

[email removed]

06-48109250

New Post: Fullscreen mode in WPF?

$
0
0
Anyone out there with any idea at all?

New Post: Fullscreen mode in WPF?

$
0
0
I solved it by ditching the built-in rendering and doing the entire rendering myself. My personal player draws the frames obtained from this library, and can scale, point zoom, drag, flip, stretch, rotate and even add layers of custom GPU shader post-processing effects in real time without any lag. The result is stunning, no other app I know of can do stuff like this. The native rendering of both this lib and VLC itself is extremely limited. Heck, with this approach you could even render the frames on 3D objects in 3D space.. :)

Tip:

VLCControl.VideoSource is updated internally by this library when the video is playing. It's a ImageSource... you can draw it on anything :) Or even save it as screenshots, without relying on the slow internal library method.

Create your own override of any control, such as Canvas or Grid and do something like..

protected override void OnRender(DrawingContext dc)
{
...
dc.DrawImage(<VLCControl.VideoSource here>, new Rect(0, 0, Width, Height));
}

New Post: Fullscreen mode in WPF?

$
0
0
Thanks for the tip. I'm afraid I'm lost in terms of getting the above to work... how would the OnRender get called each time there was a new frame available to render?

I was really hoping someone would just be able to tell me where I've missed the FullScreen flag, there surely must be one somewhere?! :)

Commented Issue: Still null pointer exception in Play() linked with media [7365]

$
0
0
I am using winForm to display a video in a window.
Using the code from the winform example I still get the null pointer exception in play
or when i assign a value to media returns a null exception.

The version of VLC 2.0.5 (x86)
The version of VlcDotNet 2011.11.29

Using .Net 4

Lambert57
Comments: ** Comment from web user: binsys **

workground:
//public delegate IntPtr NewInstance(int argsCount, [MarshalAs(UnmanagedType.LPArray)]string[] args);
public delegate IntPtr NewInstance(int argsCount, IntPtr argv);

IntPtr[] argvsPtr = new IntPtr[args.Length];
for (int i = 0; i < args.Length; i++)
{
argvsPtr[i] = Marshal.StringToHGlobalAnsi(args[i]);
}
GCHandle gch = GCHandle.Alloc(argvsPtr, GCHandleType.Pinned);
IntPtr argvPtr = gch.AddrOfPinnedObject();
HandleManager.LibVlcHandle = InteropManager.NewInstance.Invoke(args.Length, argvPtr);

gch.Free();
for (int i = 0; i < args.Length; i++)
{
Marshal.FreeHGlobal(argvsPtr[i]);
}


Commented Issue: Still null pointer exception in Play() linked with media [7365]

$
0
0
I am using winForm to display a video in a window.
Using the code from the winform example I still get the null pointer exception in play
or when i assign a value to media returns a null exception.

The version of VLC 2.0.5 (x86)
The version of VlcDotNet 2011.11.29

Using .Net 4

Lambert57
Comments: ** Comment from web user: peasonokay **

Avoid using the media=directly. i have been using this assembly in my own code successfully for 6 months and following works for me:

1. if you have dragged the control onto your form. go into the designer and comment out the line
' Me.Vlcplayer.Media = Nothing
2. . if you ever modify the form objects the designer will put it back so you may have to repeat this.
3. . In your play function use something like the following where the parameter is the full path to the video or audio file.

```
Public Sub DoPlay(ByVal vvsToPlay As String)
MediaFile = New Vlc.DotNet.Core.Medias.PathMedia(vvsToPlay)
lblNowPlaying.Text = vvsToPlay
Vlcplayer.Play(MediaFile)
End sub
```


Created Unassigned: Cannot import Vlc.DotNet.pfx.snk [7592]

$
0
0
I have downloaded the zipped source code: vlcdotnet-70298.zip.

When I try to compile, I get this error message:
Error 1 Cannot import the following key file: ..\Common\Vlc.DotNet.pfx.snk. The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user’s personal certificate store. Vlc.DotNet.Silverlight.SampleApplication

How do I import the certificate if that is in fact the solution to this problem, or what is the workaround so I can compile it?

Reviewed: VideoLan DotNet for WinForm, WPF, SL5 - 2011.11.29 (Sep 17, 2013)

$
0
0
Rated 4 Stars (out of 5) - My only complaint is that the compiled DLLs yield a NullReferenceException in VlcControl.Stop() b/c VlcControl.Medias is null. This flummoxed me because the VlcControl constructor clearly allocates a VlcMediaListPlayer for itself. Apparently the assemblies in your .zip don't match your source. Compiling from the source takes care of the problem.

Reviewed: VideoLan DotNet for WinForm, WPF, SL5 - 2011.11.29 (Sep 17, 2013)

$
0
0
Rated 4 Stars (out of 5) - I should add that I'm talking about the Winforms control

Reviewed: VideoLan DotNet for WinForm, WPF, SL5 - 2011.11.29 (Sep 17, 2013)

$
0
0
Rated 4 Stars (out of 5) - My only complaint is that the compiled DLLs yield a NullReferenceException in the Winforms VlcControl.Stop() b/c VlcControl.Medias is null. This flummoxed me because the VlcControl constructor clearly allocates a VlcMediaListPlayer for itself. Apparently the assemblies in your .zip don't match your source. Compiling from the source takes care of the problem.
Viewing all 471 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>