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

New Post: How do i get the media height and width?

$
0
0

You have to check after the video has started (timing can be a bit tricky), so I have this code in a timer control:

if (_iVidHeight == 0 || _iVidWidth == 0)
{
    _iVidWidth = vidplayer.VideoProperties.Size.Width;
    _iVidHeight = vidplayer.VideoProperties.Size.Height;                    
}
Not sure about the wpf frame size (how much you have to add onto video size), as I prefer to not code in wpf.

New Post: How can I get bitmaps?

$
0
0

It's not the most efficient method, I suppose a memory option isn't available since this is just a latch onto the vlc program itself.  What you need to do is call vidplayer.TakeSnapshot and save the image as a png (that's the format it saves in) and pass in the size you want.  You could create the image in a temp folder (and then clean up later).  You can get the size of the video (see this thread) http://vlcdotnet.codeplex.com/discussions/357176.  Then you have to create a bitmap object open the saved file if you want it as a bitmap.

New Post: pInvokeStackImbalance was detected

$
0
0

First of all thank you for the great effort of creating such a nice library.

I would like to report a problem that I encountered during compilation.

When I tried to compiled it with Visual Studio 2010 under Windows XP SP3 with .net 4.0, the compiler shows an error message as below:

"pInvokeStackImbalance was detected"

I took a look at MSDN and it seems to relate a potential problem of memory access violation. MSDN article:

http://msdn.microsoft.com/en-us/library/0htdy0k3(v=vs.100).aspx

This problem happens at VlcControl.Common.cs #525 where it defines all the callback functions. More information about this bug can be found here:

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/807c45cc-eb1f-4b18-9a34-aa949d5ad964/

New Post: How do i get the media height and width?

$
0
0
thank you CBiggerstaff ,

but i use this code in WPF ,

Console.WriteLine(">>>" + myVlcControl.VideoProperties.Size.Height + ">>" + myVlcControl.VideoProperties.Size.Width);

myVlcControl is vlcDotNet WPF xaml tag,in vlcDotNet API,i can use VideoProperties.Size.Height and VideoProperties.Size.Width
,but my console print ">>>Negative infinity>>>Negative infinity",it is error~

New Post: cannot load module libblend_plugin.dll

$
0
0

Do you have the following VLCContext paths set?

 VlcContext.LibVlcDllsPath = Application.StartupPath
 VlcContext.LibVlcPluginsPath = Application.StartupPath & "/" & "plugins"

 

New Post: addOption("string....?")

$
0
0

Somebody know where can i find the parameters for the method media.addOption(........?) 

Thank you. 

New Post: Vlc With silverlight

$
0
0

Hi,

        I  am creating the silverlight application using the vlc player. I have added silverlight Vlc dlls.I am not able to initialize the vlc opject in application at runtime. even i have given the proper  path of vlc plugin and dlls. secondly  i have added the these folders in project its creating the same problem. its not intializing  the player.Please give me any idea to use vlc with silverlight 5

 

 

Thanks

New Post: addOption("string....?")


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

$
0
0
ZeBobo5 wrote:

Hi,

Look at the latest source code wpf sample :)

ZeBobo5


Hi,

I got the latest source with wpf sample and can play videos from disc. however when  I click on "Play Youtube Sample", nothing happens. It does not play. Do you know what the problem could be there?

regards

 

New Post: Subtitle working properly on winform but cannot on WPF

$
0
0

In win forms

I try to enable subtitle track from mkv via

myVlcControl.VideoProperties.CurrentSpuIndex =3;

 it's not working but

it's working when you added option via

VlcContext.StartupOptions.AddOptions("--sub-track=3");

How's should I work to able to used with CurrentSpuIndex (set)

 

Another problem I got it

In WPF

Cannot get enable subtitle,

VlcContext.StartupOptions.AddOptions("--sub-track=3");

is not working properly.

I have set plugin and VLC dll path correctly.

I saw vout is set to vmem mode in WPF VLC.

cannot set it to other vout mode via command line.

 

Thank you,

 

 

 

 

 

 

 

 

 

 

 

New Post: VideoLAN - WinForm - Video Tab with Bluescreen under WinXP & Vista

$
0
0

Hello

I am using dotNET VideoLAN in my WinForms Project. The VideoLAN Control is embedded into a TAB from DotnetMagic. If I load a video (*.mp4) into the control and press the play button, everything works fine. If I do not stop the video and close this TAB with the running Video, it will crash with a BlueScreen. Even if I attach a Close-Event to the TAB and trying to stop the video manually it will crash. This behaviour can be reproduced under WinXP and Windows Vista. Under Windows 7 the Application is hanging and has to be closed with the Task Manager. Is there any workaround available? Any suggestions?

Thx & Greetings

New Post: VideoLAN - WinForm - Video Tab with Bluescreen under WinXP & Vista

$
0
0

Hello

To test the problem, just use the WinForms Example from this project and add an FormClosing EventHandler to the form. In the event method just call the stop method from the vlc player. It will crash or just stop the application and hang...

 

Greetings.

New Post: Subtitle working properly on winform but cannot on WPF

$
0
0

Are you building a 64-bit WPF application? Subtitles don't work in 64-bit mode.

Are you using VLC 2.0.1? Its more stable.

And try VideoProperties.CurrentSpuIndex again, via a button if the file is playing. That should work, otherwise post your code.

New Post: NullReferenceException

$
0
0

Hi all,

I downloaded last versione of VLC and also try the Git version (2.1.0), with the sample code gived by this site I cannot use Winforms library.

In this row I got an NullReferenceException
vlcControl.Media = media;

I already search for 
this.vlcControl.Media = null;

in designer code, but I don't find.

Version of .net vlc libraries is (29.11.2011). My LibVlcDllsPath and LibVlcPluginsPath are correct (I tryed with 2 version of vlc). I already also try to set an image as background (I read in one discussion) but don't change. VLC in form open but not load any media.

What I can do?

Thanks in advance.

New Post: NullReferenceException

$
0
0

Ok ok, I resolved download source code of project and rebuild Vlc.DotNet.Forms.dll

I see that an correction was maded but never published.

Please rebuild last version so other in future don't have this problem.

Thank you!


New Post: Subtitle working properly on winform but cannot on WPF

$
0
0
I found out the solution that I cannot play subtitle in WPF because
it's cannot used vout mode to directx .
It's automatically switch to vmem mode.



Do you know how can I enable , video effects ,audio effects while
playing (Realtime). Not before playing. The VLC Player Official Mode
C:\....\VLC\VLC.exe have that mode?



Thank ,

New Post: Subtitle working properly on winform but cannot on WPF

$
0
0
greensnowtech wrote:
I found out the solution that I cannot play subtitle in WPF because
it's cannot used vout mode to directx .
It's automatically switch to vmem mode.

VlcContext.StartupOptions.AddOption("--no-ffmpeg-hw")
VlcContext.StartupOptions.AddOption("--no-direct3d-hw-blending")           
VlcContext.StartupOptions.AddOption("--no-overlay")



Do you know how can I enable , video effects ,audio effects while
playing (Realtime). Not before playing. The VLC Player Official Mode
C:\....\VLC\VLC.exe have that mode?

No, if got the same problem


Thank ,

 

New Post: NullReferenceException

$
0
0

iPiv, I have the same problem, but how have you rebuilt the project in less than 15 minutes? 
I've got some errors trying to build it!

Could you please send me the Vlc.DotNet.Forms.dll that works?

Thanks in advance.

New Post: pInvokeStackImbalance was detected

$
0
0

EDIT:  Nevermind, this is not the source of the problem...I forgot to reenable the MDA for PInvokeStackImbalance <doh>.

 

FWIW, I believe I found the source of the PInvokeStackImbalance.

In structs MediaPlayerBufferingArgs and MediaPlayerPositionChangedArgs (in file LibVlcInterop.Events.cs), the fields are declared as floats.  They should be declared as doubles, since the C float type maps to the CLR double type.

 

 

 

New Post: UDP Streaming Audio Track (Language) List

$
0
0

Hello. Some UDP Streaming channels has multiple Languages (Multiple tracks) (For example EuroNews Chanlles Has 12 different language track)

vlccontrol.audioproperties.track = 1

or

vlccontrol.audioproperties.track = 2

or

vlccontrol.audioproperties.track = 3

is working to change language. This is good. But how can i detect those tracks name per channel (English, german, arabic .. etc)  and list in a combobox?  (In VLC i can see those track list On Audio/Tracks Menu)

Some channels has 1, some channels has multiple languages and my combobox will list language list of active channel

Viewing all 471 articles
Browse latest View live


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