DSPACK有個DEMO,可以錄制攝像頭視頻和麥克風音頻到一個檔案中,
想將視頻源換成從一個視頻檔案中,要如何做?
希望提供一些資料或方法。
uj5u.com熱心網友回復:
不明白你的意圖。是不是要將視頻源該為視頻檔案?
procedure TForm1.Button1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
begin
if not FilterGraph1.Active then FilterGraph1.Active:= True;
VideoWindow1.FilterGraph:= FilterGraph1;
FilterGraph1.RenderFile(OpenDialog1.Filename);
FilterGraph1.Play;
end;
end;
uj5u.com熱心網友回復:
用視頻檔案做為視頻源,將麥克風的輸入做為音頻源。播放視頻源的同時將音頻合并輸出到一個檔案中。
uj5u.com熱心網友回復:
Demos\D6-D7\videocap\videoCap.dpr這個Project ,用的是電腦上的視頻設備的電腦上的音頻設備做為來源,合并后輸出到c:\capture.avi
我想改一下,把Video改為從視頻檔案中(比如c:\myvide.avi)這個視頻)
點擊Start時,播放這個視頻,同時將音頻合并到這個檔案,輸出到c:\capture.avi。
點Stop時停止。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/110218.html
