AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

videosourceplayer won't play video

The forum is to discuss topics related to different areas of image processing and computer vision.

videosourceplayer won't play video

Postby ritche15 » Wed Jun 08, 2016 10:28 am

Hi I'm trying to edit an object detection program using webcam on C# with Aforge library. My problem is when I'm trying to load the video, a text saying "connecting" would come out then stops loading the video. Then if I press the play button again, a text displaying "Failed to load filters" would come out. Here is the code
Code: Select all
private void button4_Click(object sender, EventArgs e)
    {
        OpenFileDialog openFileDialog1 = new OpenFileDialog();
        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
            FileVideoSource videoSource = new FileVideoSource(openFileDialog1.FileName);
            videoSourcePlayer1.VideoSource = videoSource;
        }


    }

    private void button5_Click(object sender, EventArgs e)
    {

        videoSourcePlayer1.Start();
    }

I have already tested the tracking on a webcam and the code works perfectly. But when I tried loading a video the videosourceplayer won't even play it.
ritche15
 
Posts: 1
Joined: Wed Jun 08, 2016 10:27 am



Return to Image Processing and Computer Vision