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

New Post: Multiple player instances not working

$
0
0

If anyone else might run into this issue, I would like to share the results and the status. There is in fact a solution - sort of.

As it turns out, the stutter experienced with multiple instances on the same process (application) was only present when streaming YouTube clips. It is NOT a problem when playing back local video files or when playing a rtsp stream over the network. This means the problem is YouTube is not caused by the network nor VLC's ability to handle several instances but something else.

I have tested running the following VLC instances simultaneously in the same WPF application on a Win7 computer:

- two 1080p video streams

- One YouTube video playing back 1080p source (I think)

- four mpeg4 video's playing back 1080p source

Notice that one YouTube video does not kill the system, but having two will. The CPU was pushed to 80% with 5 players and 100% with the 7 players above.

I will leave this one for now but hope that the findings can help others with knowing what works and what does not work.


Commented Issue: vlccontrol freeze application (wait cursor mouse appears and application stop responding [6496]

$
0
0
<p>VLC control freeze with mpg and avi if:</p>
<p>end of video </p>
<p>load another video (send stop command don&#39;t change effect)</p>

Comments: ** Comment from web user: Sohra **

Interestingly, I switched to another VLC C# library and ran into this exact same problem. It is a deadlock. I worked around it in the other library by reading and loosely following the advice in the replies to this post: http://www.codeproject.com/Messages/3971279/libvlc_media_player_stop-deadlock-fix.aspx

You can probably accomplish the same with VLC DotNet.

New Post: Trying to connect to a rtsp stream

$
0
0
jrufas wrote:

Hello again,

 

Success !!

I've downloaded source code 66475 and added Core, Core.Interops and Forms to my solution (I'm developping a CCTV matrix).

Once compiled with the only change in VlcEventHandler'.cs :

public delegate void VlcEventHandler<in TSender, TArg>(TSender sender, VlcEventArgs<TArg> e);

public delegate void VlcEventHandler<TSender, TArg>(TSender sender, VlcEventArgs<TArg> e);

And it works (rtsp with authentication too).

 

Thank you for returning and offer a solution!

New Post: Set a media and no play default behavior

$
0
0

Hi,

I'm developping a WPF application based on the VLC dotnet component. The default behavior that i'm looking for, is just see the first frame without playing when the Media property is set.

I saw in the source code of the WPF component that on the set method, the Play method is called. So i tried to clear the Medias collection and Add the media without calling the Play method, but the player play the video.

With the event management I would try to call Pause() when the player state changed to Playing, but I'm searching an easier way that will be more stable.

 

Thanks for your help.

Seb

New Post: VLC & silverlight in-Browser

New Post: Adding logo.

$
0
0

Hi!

I need to add logo to playing media. I tried this solution:

MediaBase media = new PathMedia("...");

 media.AddOption(":logo-file=C:\\logo.png");
 media.AddOption(":logo-position=6");
 media.AddOption(":logo-transparency=128");

But unfortunately it showing nothing. And nothing about logo appears in vlc log.

Can anyone suggest in what way should I dig?

New Post: Play video in memoryStream

$
0
0

Hello guys,

I was trying to play video in a memoryStream,

 

Can somebody point me out how to do it?

Thank you all very much for your kind attention


New Comment on "Forms"

$
0
0
I'm not sure what you mean? You don't know how to use a control or don't you know how to use Visual Studio to add a custom control to your toolbox?

New Comment on "Forms"

$
0
0
Somehow my question was deleted. Once again: I'd love to help you using visual studio and this package. But before I give a full scale tutorial please narrow your question, be more specific. Are you looking for help how to use controls generally in regards to the vlc control or do you want to know how to add controls to the visual studio toolbox interface?

Reviewed: VideoLan DotNet for WinForm, WPF, SL5 - 2011.11.29 (Jan 31, 2013)

$
0
0
Rated 3 Stars (out of 5) - The source code provided is different(older-my presumption) than the release(dll's zip file).I have been trying for a few days to make a player using the wpf control and in my attempt to make .AddOption to work with Magnify(a plugin from vlc that has interactive zoom) i decided to write my own wrapper methods to handle this.

Reviewed: VideoLan DotNet for WinForm, WPF, SL5 - 2011.11.29 (Jan 31, 2013)

$
0
0
Rated 3 Stars (out of 5) - The source code provided is different(older-my presumption) than the release(dll's zip file).I have been trying for a few days to make a player using the wpf control and in my attempt to make .AddOption to work with Magnify(a plugin from vlc that has interactive zoom) i decided to write my own wrapper methods to handle this. For example Source>VlcControl=185 rows while dll>VlcControl=1004 rows.

Reviewed: VideoLan DotNet for WinForm, WPF, SL5 - 2011.11.29 (Jan 31, 2013)

$
0
0
Rated 3 Stars (out of 5) - .I have been trying for a few days to make a player using the wpf control and in my attempt to make .AddOption to work with Magnify(a plugin from vlc that has interactive zoom) I decided to write my own wrapper methods to handle this. The source code provided is different(older-my presumption) than the release(dll's zip file) For example Source>VlcControl=185 rows while dll>VlcControl=1004 rows.

New Post: Difference between Source Code and the Download Zip File And Magnify

$
0
0

I have been trying for a few days to make a player using the wpf control and in my attempt to make .AddOption to work with Magnify(a plugin from vlc that has interactive zoom) I decided to write my own wrapper methods to handle this since myVlcControl.Media.AddOption(":vout-filter=magnify"); doesn't do anything .
The source code provided is different(older-my presumption) than the release(dll's zip file) For example Source VLC.DotNet>WPF>VlcControl=185 rows while dll>VlcControl=1004 rows. I don't know how to approach this problem, since I don't think decompiling the dlls to copy the code and then recompile it once I am done writing my methods to be a solution.
Has anyone been able to use the myVlcControl.Media.AddOption? I can only make it work with VlcContext.StartupOptions.AddOption and only a few commands work("--no-video-title-show", for example, works). Please help me if you can since i'm already late on the deadline :(

New Post: Change things like aspect ratio / Adding custom functionality

$
0
0

I've started using this nice library a few days ago, and managed to add video playback to my app, however AddOption rarely works, and I had a major headache when trying to change something as basic, and important, as aspect ratio. AddOption failed me here.

Then I tried looking deeper, and found a way to expose what I need directly in the VlcControl class - without using any options! You need to add some code to the library, using nearby functions as example, and add an AspectRatio field to VLCControl. All you need to do is edit

Vlc.DotNet\Vlc.DotNet.Forms\VlcControl.Common.cs

and add the following code to the VlcControl class:

        /// <summary>
        /// Sets the current aspect ratio of the media
        /// </summary>
        [Category(CommonStrings.VLC_DOTNET_PROPERTIES_CATEGORY)]
#if !SILVERLIGHT
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
#endif
        public string AspectRatio
        {
            get
            {
                return "0"; // we don't need to get it this way, we can use video size to calculate it
            }

            set
            {
                if (VlcContext.InteropManager != null &&
                    VlcContext.InteropManager.MediaPlayerInterops != null &&
                    VlcContext.InteropManager.MediaPlayerInterops.VideoInterops.SetAspectRatio.IsAvailable &&
                    VlcContext.HandleManager != null &&
                    VlcContext.HandleManager.MediaPlayerHandles != null &&
                    VlcContext.HandleManager.MediaPlayerHandles.ContainsKey(this))
                {
                    VlcContext.InteropManager.MediaPlayerInterops.VideoInterops.SetAspectRatio.Invoke(VlcContext.HandleManager.MediaPlayerHandles[this], value);
                }
            }
        }

Then compile it and you're done. Works for me. You can now create:

VlcControl vlcControl = new Vlc.DotNet.Forms.VlcControl();
// ...
MediaBase media = new PathMedia(path);
vlcControl.Media = media;
// ... and play the media, then at any moment, during playback do
vlcControl.AspectRatio = "4:3"; // or any other ratio

Works like a charm. Thought someone might find this useful. I believe you can expose many more VLC features this way, that were not included in the downloaded library, and that, for some reason, fail to be set by AddOption.

New Post: Problem with VlcControlOnPositionChanged on x64 architecture

$
0
0

hello all,
I have a problem with the library Vlc.DotNet x64.
In particular, when trying to retrieve the current position of the file for reading, the result is a small number (for example: 1.1223456 E-38). I tried the same procedure on pc x86, but it's completely normal. How can I fix?
Here is the procedure:

private void VlcControlOnPositionChanged(VlcContro sender, Core.VlcEventArgs<float> e)
{
       label.Text = (e.Data * 100).ToString("000") + " %";
}

Regards


New Post: Tutorial - How to... use advanced settings not implemented now and VB.net sample code for use control without stress! :-)

$
0
0

Where did you find the source for the DLL's that you compiled? The source provided here is different than the downloadable Dll's. Could you please share the source code that can be modified?

New Post: RTMPDump integration

New Post: Refresh media info

$
0
0

Hello

I would update the length of a file stream on the channel rtsp.
if I stop and restart the play the file, the property vlccontrol.Media.Duration is updated, which does not happen during the play. How can I fix this?

New Post: Need to rotate video display in VlcControl

$
0
0
Did you get this resolved? I am having the same issue. Any pointers would be greatly appreciated.

New Post: AddOption Rotate Video stream

$
0
0
Thanks for this control. I like it so far.

I am trying to rotate a video stream and I am unable to. I tried it just using VLC in the command line and it works.

Eg: vlc.exe --video-filter=transform --transform-type=180 rtsp://192.168.76.103/stream1

I tried doing the following it did not work. Please let me know if this can infact be done or not using this vlcdotnet control.

media.AddOption(":transform-type={180}");

Is this control being actively developed upon? If not, what needs to be done to add this functionality?
Viewing all 471 articles
Browse latest View live


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