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

New Post: DVD Playback

$
0
0
I just found out:
mediaPlayer.Media = new LocationMedia("dvd:///F:");    
mediaPlayer.Play();
But it's not interactive! The control seems to be transparent. How can I direct mouse and keyboard input to VlcControl? (For DVD menu navigation)

New Post: Close (unload) current media

$
0
0
How can I close (unload) the current media? (I'm using the WPF control)
I can't use VlcContext.CloseAll() because I need to be able to assign another media to the control later on ... I tried setting Media = null but it didn't unload the media. (It continues playing)
In MediaElement and WMP ActiveX control we have Close() method.
How can I do the same in VideoLan DotNet for WPF?

New Post: How can I play specifically Web Camera?

$
0
0
Hello there,
I have 3 video device on my computer, I have tried several way and always capture the first founded device....there some way to select it properly? here my tested commands:
var media = new LocationMedia("dshow:// :dshow-vdev=Virtual Webcam 8.0 :live-caching=300");
vlcPlay.Media = media;

vlcPlay.Play();

var media = new LocationMedia("dshow://");
media.AddOption(" :dshow-vdev=Virtual Webcam 8.0 :dshow-adev= :live-caching=300");
vlcPlay.Media = media;
vlcPlay.Play();

On both case, it return the first device, and when I use PathMedia, it said:
[06e33954] logger interface: VLC media player - 2.1.3 Rincewind
[06e33954] logger interface: Copyright © 1996-2014 the VideoLAN team
[06e33954] 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"

[06e33954] logger interface: using logger.
[06e33954] logger interface debug: opening logfile `vlc-log.txt'
libdvdnav: Using dvdnav version 5.0.0
libdvdread: Could not open .....D:\path...Encoder\bin\Debug\dshow:\ :dshow-vdev=Virtual Webcam8.0 :live-caching=300 with libdvdcss.
libdvdread: Can't open D:\path...\bin\Debug\dshow:\ :dshow-vdev=Virtual Webcam 8.0
:live-caching=300 for reading
libdvdnav: vm: failed to open/read the DVD

I had started crazy with that:(
Please Help!)

New Post: Metadatas from video

$
0
0
Hello

I want to read and extract a video metadata but i cannot.
I want the video résolution, Duration, the user who save it, the codec and many others informations
PathMedia media = new PathMedia(@"D:\utilisateurs\abenjema\Desktop\Octobre Bleu\Video\MOV_4766.mp4");
 var album = media.Duration;
can anyone help me please??

thank you in advance

Created Unassigned: Link audio stream from video to specific AudioDevice [7817]

$
0
0
Hello,

I know this library doesn't work with libVLC 2.1.x, but there is an option so interesting for me in last build (2.1.3). When you play a video in VLC in this revision, there is an option to change the destination audio device for this stream, so you can easily play 2 videos, each one sending audio to different sound cards.

Is there any way to do it with VideoLan.DotNet library without upgrading libVLC to 2.1.3?

If not, any chance to upgrade VLC.DotNet to support libVLC 2.1.3 ?

Thanks!

New Post: VLC need 10-30% CPU, but VlcControl 95-99%

$
0
0
Same here.
Moving to WPFMediaKit helped..

New Post: Mute dont work/

$
0
0
Struggled with this a lot, try looping the damn thing.

something like:
while(control.AudioProperties.Volume != 1){
control.AudioProperties.Volume = 1;
}

same for mute & stop...

New Post: Volume normalize support?

$
0
0
Does\Will it support volume normalize like the original VLC ?

New Post: Metadatas from video

$
0
0
I use this for audio metadata but if I had to look for video metadata I would try:

Microsoft.WindowsAPICodePack.Shell.ShellFile shellFile = Microsoft.WindowsAPICodePack.Shell.ShellFile.FromFilePath(/yourFilePath/);

and use

shellFile.Properties.System.Video.FrameHeight....
shellFile.Properties.System.Video.FrameWidth...
duration = shellFile.Properties.System.Media.Duration.Value * 0.0001)).ToString()

check out the rest of the API of "Microsoft.WindowsAPICodePack.Shell.PropertySystem"

New Post: Metadatas from video

$
0
0
But this Library is no more supported. If i develop with it, I suppose that I will have many problems

New Post: Metadatas from video

$
0
0
WindowsAPICodePack works on Windows 7 or higher so I'm using MediaInfoLib.MediaInfo for older versions of windows, give it a look.

New Post: Metadatas from video

$
0
0
ok
thank you for your help

a finally question. Where can I download the WindowsAPICodePack??

New Post: Link audio stream of a video to specific AudioDevice

$
0
0
Hello, sorry as I posted this message first on Issues (this is the right place).

I know this library doesn't work with libVLC 2.1.x, but there is an option so interesting for me in last build (2.1.3). When you play a video in VLC in this revision, there is an option to change the destination audio device for this stream, so you can easily play 2 videos, each one sending audio to different sound cards.

Is there any way to do it with VideoLan.DotNet library without upgrading libVLC to 2.1.3?

If not, any chance to upgrade VLC.DotNet to support libVLC 2.1.3 ?

Thanks!

New Post: transparent video

$
0
0
hey,
i was wondering if it's possible with this project to play a video with some transparent areas (alpha channel)? if so, how can this be achieved?

thanks!

New Post: Metadatas from video


New Post: Metadatas from video

New Post: Video keeps opening up in separate window with title Direct 3d

$
0
0
Hello for whatever reason all 3 of my VLC controls keep opening in separate windows playing the video

This is what the code looks like (at least the portions that execute the actual playing of the video

public Main()
    {

        InitializeComponent();
        this.Width = 1024;
        this.Height = 768;
        RouteSign.Size = new Size(1280,1024);
        ChangeRouteSign("MainLineImage.png");

        MainAdvertControl.Hide();
        StationAdvertControl.Hide();
        AudioControl.Hide();
        AudioCC.StopMarquee();
        AudioCC.Hide();
}

public void PlayMainAdvertFromBeginningFromScheduler()
    {
        HideRouteSign(true);
        PlayMainAdvertFromBeginning();

        while (IsMainAdvertPlaying())
        {

        }
    }
private delegate void AddMainAdvertMediaCallback(List<PlayVideo> video);
    private void AddMainAdvertMedia(List<PlayVideo> video)
    {

        if (this.MainAdvertControl.InvokeRequired)
        {
            AddMainAdvertMediaCallback d = new AddMainAdvertMediaCallback(AddMainAdvertMedia);
            this.Invoke(d, new object[] { video });
        }
        else
        {
            var mainAdvert = video.First();
            this.MainAdvertControl.Media = new PathMedia(Path.Combine(StaticVariables.BaseDirectory, mainAdvert.FileName));
        }


    }


    public void PlayMainAdvertFromBeginning()
    {
        if (this.MainAdvertControl.InvokeRequired)
        {
            PlayMainAdvertCallback d = new PlayMainAdvertCallback(PlayMainAdvertFromBeginning);
            this.Invoke(d);
        }
        else
        {


           this.MainAdvertControl.Show();
             this.MainAdvertControl.Play();


        }
    }

Im absolutely stumped because all 3 are initialized and unaltered save the addition of media.

Any suggestions would be helpful.
Thanks

New Post: Video keeps opening up in separate window with title Direct 3d

$
0
0
Nevermind the hide methods in the constructor caused the issue

New Post: AudioProperties conflict when multiple vlccontrols on one form

$
0
0
Hello,

If you have multiple vlccontrols on one form, and you set one of them to mute, they all set to mute. is there a way to resolve this issue so just the one control that was set to mute stays muted and the others are on their original volume?

Thanks

New Post: Can't change snapshot format (size of file)

$
0
0
I use this code in order to change snapshot format :
VlcContext.StartupOptions.AddOption("--snapshot-format=jpg");
VlcContext.Initialize();
but it change not snapshot's file size.

How i can change snapshot' file size, without change snapshot's resolution?

PS I exсuse for my english.
Viewing all 471 articles
Browse latest View live


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