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

New Post: Using VLC Dot Net without installation vlc media player

$
0
0

Hello,

I'm using vlc dotnet in my application. But i don't want that users install vlc media player. Is there any way to use vlc dotnet with only dlls(libvlc.dll,libvlccore.dll)?

I set VlcContext.LibVlcDllsPath to DLL's path. But it gives an error that "accessviolationexception"

Thanks...

 


New Post: How to implement Media_Opened and Media_Ended event handlers for VlcControl media element

$
0
0

Does anyone know how to implement Media_Opened and Media_Ended event handlers for VlcControl media element?

If you know of any c# examples, in this project source, please reply.

Thanks,

RocketMan

New Post: NullReferenceException

$
0
0

Hi,

please help me too. I had the same problem, i used VLC 2.0.4 and the newst dll's from here but my appliction chrash with "Null exeptions..." (Win7, VB 2010 SP1)

Thanks

eMail vulkan58@gmx.de

Please excuse me "mein grausames Englisch"

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: HUSEYINOZKAN **

i use 2.0.4 same problem

when call
vlcControl1.Stop(); /freeze Program !


Source Code Problem line ;

internal void Stop()
{
VlcContext.InteropManager.MediaListPlayerInterops.Stop.Invoke(VlcContext.HandleManager.MediasListPlayerHandles[this]);
}
i hate this !

New Post: Using VLC Dot Net without installation vlc media player

$
0
0

VlcContext.LibVlcPluginsPath = Application.StartupPath + "\\plugins"; 

 

copy vlc plugins folder your project !

New Post: How to record UDP Stream to C Drive

$
0
0

thanks 

I searched long Time for this problem

New Post: snapshot format

$
0
0

Is it possible to change the snapshot format to JPEG?  I added the following line to the initialization but the TakeSnapshot method still produces PNG.

VlcContext.StartupOptions.AddOption("--snapshot-format=jpg");


Created Issue: DotNet.Wpf does not work with MVVM [7217]

$
0
0
I wrote a simple WPF test program and it works great. However, when I put the code into a new WPF program created with an MVVM Lite template, I get the following error:

System.BadImageFormatException was unhandled
Message=Could not load file or assembly 'Vlc.DotNet.Wpf, Version=1.2.0.0, Culture=neutral, PublicKeyToken=84529da31f4eb963' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I tried a blank MVVM Lite template with just the initialization code and I get the following error:

System.ComponentModel.Win32Exception was unhandled
Message=%1 is not a valid Win32 application
Source=Vlc.DotNet.Core.Interops
ErrorCode=-2147467259
NativeErrorCode=193

New Post: vlccontrol doesn't play video

$
0
0

Need urgent help here, since many weeks as passed and still get no working video player.

I'm using VS2010 and vb is the code, so far i manage to import dll's place the vlcControl on a form (shows transparent but imagine that's ok) initialize context also runs ok.

When it  gets to the part of attrib media the the vlc control just freezes, below de lines of code:

Dim NewMedia As MediaBase = New PathMedia(FVar.filme) 'movie path

        NewMedia.AddOption(":sub-file="+ FVar.legenda) 'sub path

        vlcOld.Media = NewMedia 'vlcControl named as vlcOld
        vlcOld.Play()

New Post: VlcContext Initialize error

$
0
0

Try this:

context->CloseAll();           
context->Initialize(); 

New Post: Any sample or documentation?

$
0
0

Is there any documentation or a sample project available somewhere? Posts on this forum mention a sample app within the download but that is not the case, there are just 5 dll files. The documentation tab looks like it's been empty for April 19th. I have nothing to go on here.

New Post: Any sample or documentation?

$
0
0

For sample, download source code. This contain also source sample for use in c#. If you need to use in vb.net I also I provide sample, but email me for this!

New Post: Any sample or documentation?

$
0
0

Thanks for that. I am trying to open the project in Microsoft Visual C# Express 2010 but am running into a problem with source control bindings and whether I choose to delete them or not I get a message about solution folders not being supported in this version of the application and cannot view the project properly.

Is there anything special I need to do to get it up and running?

New Post: Any sample or documentation?

$
0
0

YesFirst, it is better to copythe filestovlc in the project folder.Then, do notwant to use thecontrolinthe form.Especially withthe.Net Framework 4in VS2010VB.NETthere are problemsinstantiatingthe control in form design.It 'better toputin placeapanelobjectand send thehandle to the object.
Vlcfilesto be copiedare:
vlc.dll
vlccore.dll
nlog.dll(ifI remember correctly)
theplugin folder.

Warning: These filesmust be located in\ Documents\ VisualStudio \ Project \Projectname\ bin\ debug(orrelease)the project folder.Otherwise the projectwill not start.Inow it'sbeen a while thatI no longer usethisbecause they lack the functionalityI neededso do notremember exactlyifsomething is missingin these instructions.

 

New Post: Streaming not working

$
0
0

My goal is to test h264 streaming. I wanted to start with the youtube example delivered as part of the WPF sample application but that did not work at all. I tried to create the callback function as a separate method to see if it was ever called, and it was not. Basically the callback below is never called:

            var media = new LocationMedia(@"http://www.youtube.com/watch?v=WAjt5wPJVqM");
            media.StateChanged +=
                delegate(MediaBase s, VlcEventArgs<States> args)
                {
                    if (args.Data == States.Ended)
                    {
                        var subItems = media.SubItems;
                        if (subItems.Count > 0)
                        {
                            myVlcControl.Play(subItems[0]);
                        }
                    }
                };

 

Does anyone know how to debug this further?

Playback of video content (MOV files etc) works fine.

This implementation is the first I have found that integrates deep into WPF in the sense that you can place other WPF elements on top of the video. I need this feature so hence the motivation to get youtube and eventually streaming to work.


New Post: Streaming not working

$
0
0

On another forum I found the answer. In the downloaded sample code, locate the lines listed above, then replace with this:

            media.MediaSubItemAdded +=
                delegate(MediaBase s, VlcEventArgs<MediaBase> args)
                {
                    myVlcControl.Media = args.Data;
                    myVlcControl.Play();
                };
            myVlcControl.Media = media;
            myVlcControl.Play();

When using the current VLC version I was able to stream h264 using this sample software.

New Post: Streaming UDP

$
0
0

Hi,

I am trying to stream IP TV but facing a strange problem. I am using the latest build and compiled it myself using VS2010.

My code successfully streams RTSP and HTTP, however as for UDP multicast streams the VLC control stops at the VLC debug message  (Starting pre-buffering) and nothing happens.

Here is my code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Vlc.DotNet.Forms;
using Vlc.DotNet.Core.Medias;
using Vlc.DotNet.Core;


namespace WindowsFormsApplication1
{
    publicpartialclass Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        privatevoid button1_Click(object sender, EventArgs e)
        {

            VlcContext.StartupOptions.IgnoreConfig = true;
            VlcContext.StartupOptions.LogOptions.LogInFile = true;
            // Shows the VLC log console (in addition to the applications window)
            VlcContext.StartupOptions.LogOptions.ShowLoggerConsole = true;
            VlcContext.StartupOptions.LogOptions.Verbosity = VlcLogVerbosities.Debug;
            

            ///1///var vlcControl = new Vlc.DotNet.Forms.VlcControl { Dock = DockStyle.Fill, BackColor = Color.Green };
            this.panel1.Controls.Add(vlcControl);
            //vlcControl.Media = new LocationMedia(@"rtsp://apasfwl.apa.at:80/orf2_q4a/orf.sdp");   <===== WORKS//vlcControl.Media = new LocationMedia(@"http://listen.radionomy.com/smooth-riviera");  <===== WORKS
            vlcControl.Media = new LocationMedia(@"udp://239.255.4.2:2000"); // <===== Does NOT WORK
            vlcControl.Play();


        }

        privatevoid Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
    

 

VLC Debug windows prints the following output:

[05356e50] logger interface: VLC media player - 2.0.4 Twoflower
[05356e50] logger interface: Copyright ? 1996-2012 VLC authors and VideoLAN
[05356e50] logger interface:
Warning: if you cannot access the GUI anymore, open a command-line window, go to
 the directory where you installed VLC and run "vlc -I qt"

[05356e50] logger interface: using logger.
[05356e50] logger interface debug: opening logfile `vlc-log.txt'
[05356e50] main interface debug: using interface module "logger"
[05356e50] main interface debug: TIMER module_need() : 30.893 ms - Total 30.893
ms / 1 intvls (Avg 30.893 ms)
[05356f90] main interface debug: looking for interface module: 1 candidate
[05356f90] main interface debug: using interface module "hotkeys"
[05356f90] main interface debug: TIMER module_need() : 2.720 ms - Total 2.720 ms
 / 1 intvls (Avg 2.720 ms)
[05357030] main interface debug: looking for interface module: 1 candidate
[05357030] logger interface: VLC media player - 2.0.4 Twoflower
[05357030] logger interface: Copyright ? 1996-2012 VLC authors and VideoLAN
[05357030] logger interface:
Warning: if you cannot access the GUI anymore, open a command-line window, go to
 the directory where you installed VLC and run "vlc -I qt"

[05357030] logger interface: using logger.
[05357030] logger interface debug: opening logfile `vlc-log.txt'
[05357030] main interface debug: using interface module "logger"
[05357030] main interface debug: TIMER module_need() : 6.325 ms - Total 6.325 ms
 / 1 intvls (Avg 6.325 ms)
[006b95e0] main input debug: Creating an input for 'udp://239.255.4.2:2000'
[006b95e0] main input debug: using timeshift granularity of 50 MiB, in path 'C:\
Users\WaZaB\AppData\Local\Temp'
[006b95e0] main input debug: `udp://239.255.4.2:2000' gives access `udp' demux `
' path `239.255.4.2:2000'
[006b95e0] main input debug: creating demux: access='udp' demux='' location='239
.255.4.2:2000' file='\\239.255.4.2:2000'
[052edbc8] main demux debug: looking for access_demux module: 0 candidates
[052edbc8] main demux debug: no access_demux module matched "udp"
[052edbc8] main demux debug: TIMER module_need() : 2.429 ms - Total 2.429 ms / 1
 intvls (Avg 2.429 ms)
[006b95e0] main input debug: creating access 'udp' location='239.255.4.2:2000',
path='\\239.255.4.2:2000'
[05364540] main access debug: looking for access module: 1 candidate
[05364540] access_udp access debug: opening server=239.255.4.2:2000 local=:1234
[05364540] main access debug: net: connecting to [239.255.4.2]:2000 from []:1234

[05364540] main access debug: using access module "access_udp"
[05364540] main access debug: TIMER module_need() : 8.415 ms - Total 8.415 ms /
1 intvls (Avg 8.415 ms)
[05356c48] main stream debug: Using block method for AStream*
[05356c48] main stream debug: starting pre-buffering

Can you guys help me fix this?

I tested the the same UDP stream address using my VLC player from the same PC and I am able to stream just fine. I just noticed that VLC player only accepts the format: udp://@239.255.4.2:2000 

New Post: RTMPDump integration

$
0
0

Hi Josephnter85, did you find something to this problem?

New Post: Multiple player instances not working

$
0
0

I am trying to run two VLC players in the same application. That appear to create some conflicts as only one player seem to play at a time where the two players take turns in which one updates the frames.

I am suspecting that the static class VlcContext is designed for ONE player only. Have anyone looked into running multiple players inside the same .NET application and what changes that might require in the wrapper?

New Post: Multiple player instances not working

$
0
0

I have now tried to change the implementation of "VlcContext" from being a static class to an instantiated object. It required substantial changes in references all across the wrapper, to carry around a pointer to the "VlcContext" object. Unfortunately it did not improve the issue I was trying to solve - a significant stutter is still seen when running multiple instances of the VlcControl class within the same application.

This leaves me thinking if possibly the limitation is in VLC? Is it so that VLC only allow one instance running for each process ID?

Viewing all 471 articles
Browse latest View live


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