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

New Post: Nvidia Optimus behavior?

$
0
0

I developed a windows forms program with your library and I am seeing the following behavior when testing with a 720p 60 fps MP4 file on a Dell Inspiron N5110 (i7 2670QM, GeForce GT525M):

1. When opening the program with Intel HD Graphics 3000, the video is completely smooth, GPU usage stands at 37% and the CPU usage is around 5%.

2. When opening the program with GeForce GT525M, the video will constantly drop frames. GPU usage is always at 30%, CPU at around 12%.

 

Any possible explanations to this? If you think it may be related to my code I will post it, but I wanted to check first. Thank you.


New Post: How can I get bitmaps?

$
0
0

This worked for me mruce, I click on a button and the current frame is displayed in image1.

    public byte[] RawImage { get; set; }
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            BitmapSource myBMS = myVlcControl.VideoSource as BitmapSource;
            BitmapSource newBMS;
            // Copy current bitmap to Byte[] array
            int rawStride = (myBMS.PixelWidth * myBMS.Format.BitsPerPixel + 7) / 8;
            RawImage = new byte[rawStride * myBMS.PixelHeight];
            myBMS.CopyPixels(RawImage, rawStride, 0);

            myVlcControl.Pause();

            // Create a BitmapImage source
            newBMS = BitmapSource.Create((int)myImage.ActualWidth, (int)myImage.ActualHeight,
                                           myBMS.DpiX * myImage.ActualWidth / image1.Width,
                                           myBMS.DpiY * myImage.ActualHeight / image1.Height,
                                           myBMS.Format, myBMS.Palette,
                                           RawImage, rawStride
                                        );

            if (newBMS.CanFreeze) newBMS.Freeze();
            image1.Source = newBMS;

        }

 

New Comment on "Wpf"

$
0
0
i created a new wpf file and the vlc plugin version installed on my system are 2.0+. Still only the audio is being played and there is no video output!

New Post: The directory : C:\Program Files\VideoLAN\VLC\ not found..

$
0
0

Hi at all, sorry for my bad english.

If i want to debug my vb.net project on WinXp 32bit, i get following message :

"The directory : C:\Program Files\VideoLAN\VLC\ not found.."

I installed vlc 1.1.11 und compiled the source-code with x86-configuration,

but the problem persists.

I used this code, to initialized it :

Imports Vlc.DotNet.Core
Imports Vlc.DotNet.Forms

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        VlcContext.LibVlcDllsPath = CommonStrings.LIBVLC_DLLS_PATH_DEFAULT_VALUE_X86
        VlcContext.LibVlcPluginsPath = CommonStrings.PLUGINS_PATH_DEFAULT_VALUE_X86
        Dim vlcControl = New Vlc.DotNet.Forms.VlcControl
        vlcControl.Dock = DockStyle.Fill
        vlcControl.BackColor = Color.Green
        Me.Controls.Add(vlcControl)
    End Sub
End Class

Where can i define/change the directory - i think it ignore "VlcContext.LibVlcDllsPath" ?

On Win7(64bit) i haven´t this error.

New Post: NullReferenceException

$
0
0

HI Hector, you have to delete and readd reference to vlc.DotNet.Core and vlc.DotNet.Core.Interops.

Or put your email and I will send you DLL.

New Post: Has anybody a working WPF sample?

$
0
0

Hi,

somebody know how to add a VLCControl in WPF app dinamcally? I don't want to insert 

<vlc:VlcControl x:Name="myvlc" /> in xaml

but I want to do with c# code. Thank you.

New Post: Logo and Marqueee

$
0
0

Hi gipix, do you solved this problem?

I want to add a logo too but i found no tutorial about AddOption.

New Post: Memory Leak

$
0
0

We're seeing a memory leak playing with the simplest program playing a video stream. I read regarding the .Net 4 compilation issue , but we're not evening targeting that. Kind of surprised more people haven't reported this , it easily will bring a machine down after hours of operation.


New Post: Logo and Marqueee

$
0
0

For add image from containers you need to save image in a temporary file. For marquee you can use labels/textblocks but if you need to change when play you need to use other wrapper (like nVLC) or vlc activex because is possible to add logo and marquee without insert this in media options but like other parameters. Or you can ask to implements logo and marquee functions in wrapper. I switched to use nvlc in my project because missing some functions in vlcwrapper. I like vlcwrapper but if some functions not presents i can't use in my project.

New Post: CPU utilization on WPF

$
0
0

Hi all I noticed that with the WPF player when you play a video it tooks about 30% of cpu.

Does anyone else noticed that?
Do you have any adivice to reduce the CPU utilization

New Post: pInvokeStackImbalance was detected

$
0
0

Hello I'm facing the sam issue. Does someone solved it?

New Post: password for open sliverlight project?

$
0
0

After tried to build sliverlight sample , I got tw errors

  1. Error 2 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
  2. Error 3 Importing key file "Vlc.DotNet.Silverlight.SampleApplication_TemporaryKey.pfx" was canceled. Vlc.DotNet.Silverlight.SampleApplication

New Post: The directory : C:\Program Files\VideoLAN\VLC\ not found..

$
0
0

Look in ..\Vlc.DotNet\Vlc.DotNet.Core\VlcContext.cs and make sure you have the correct path depending on your Processor Architecture.

The VlcContext constructor may be picking up AMD64 instead of X86

New Post: CPU utilization on WPF

New Post: Can't play media

$
0
0

It keeps saying that it can't find the MRL file.\

 

This is what i use basicly:

            string filepath = Path.GetTempFileName().Replace(".tmp",".flv");
            File.WriteAllBytes(filepath, filename);

            VlcControl result = new VlcControl();
            result.Media = new LocationMedia(filepath);
            result.Play();


New Post: Audio Equalizer - DSP runtime

$
0
0

hi,

there is anybody that have some code in which is used param-eq options to filter audio media at runtime, for example with some gui equalizer object?

i tried many samples, with use of addoption property,  but none of that cause same effect to the output

can anybody say me if in the next release will be some enhancement about this topic?

bye

New Post: Nvidia Optimus behavior?

$
0
0

I also had a problem with choppy video playback.   In order to solve it,  I had to roll back VLC  back to to version 1.1.11.  Once I rolled back,  I no longer had dropped frames.

 

New Post: Nvidia Optimus behavior?

$
0
0

I rolled back too, but still had choppy playback on GeForce. I switched to another wrapper, which already used 1.1.11, and now it works perfectly.

New Comment on "Forms"

$
0
0
Dear Sir How can i use the controls of vlc after i had done these things.i want to use vlc network streaming and all the other control of vlc. Please guide me with the above problem. Thanks

New Post: How to play youtube video using libvlc in C#

$
0
0

Yeh i have the same problem too.. nothing happens for youtube... works fine on videos on disc...

Viewing all 471 articles
Browse latest View live


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