Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Merging Multiple Videos with DirectShow
12-02-2012, 10:17 AM
Post: #7
RE: Merging Multiple Videos with DirectShow
I've not found any useful documentation. Not sure how to access any of the documention under c:\program files(x86)\LabPacks\DotNet\Help.

This is what I currently have...

Code:
private List<DSVideoPlayer> dsVideoPlayers = new List<DSVideoPlayer>();
        private int dsVideoPlayersIndex = 0;
        private void startButton_Click(object sender, EventArgs e) {
            this.videoMixer.Channels.Clear();
            this.dsVideoLogger.FileName = this.fileNameValueLabel.Text;
            
            this.videoMixer.Channels.Add(this.reel.Clips.Count);
            for (int i = 0; i < this.reel.Clips.Count; i++) {
                DSVideoPlayer dsVideoPlayer = new DSVideoPlayer();
                dsVideoPlayer.FileName = this.reel.Clips[i].FullFileName;
                dsVideoPlayer.Stopped += new EventHandler(dsVideoPlayer_Stopped);
                dsVideoPlayer.OutputPin.Connect(this.videoMixer.InputPins[i]);
                
                dsVideoPlayers.Add(dsVideoPlayer);
            }

            dsVideoPlayers[dsVideoPlayersIndex].Start();
        }

        void dsVideoPlayer_Stopped(object sender, EventArgs e) {
            this.dsVideoPlayers[this.dsVideoPlayersIndex].Stopped -= dsVideoPlayer_Stopped;
            this.dsVideoPlayersIndex++;
            if (this.dsVideoPlayersIndex < this.dsVideoPlayers.Count) {
                this.dsVideoPlayers[this.dsVideoPlayersIndex].Start();
            }
            else {
            }
        }

Is it correct that I should be starting each individual DSVideoPlayer at the right time to concatenate them properly?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Merging Multiple Videos with DirectShow - Dave - 12-01-2012, 08:24 AM
RE: Merging Multiple Videos with DirectShow - Dave - 12-01-2012, 08:59 PM
RE: Merging Multiple Videos with DirectShow - Dave - 12-02-2012, 08:56 AM
RE: Merging Multiple Videos with DirectShow - firesharkstudios - 12-02-2012 10:17 AM
RE: Merging Multiple Videos with DirectShow - Dave - 12-02-2012, 10:43 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)