[DSPack]Rendering a 2nd video doesn't work on user pc, but fine on dev. pc
- From: Raymond Kennington <raymondwk@xxxxxxxxxxxxxxx>
- Date: Sat, 17 Mar 2007 20:20:56 +1030
The following code is designed to load a video. It works on the development pc but only the first time on the user pc.
Folder + Filename are correct. This works fine on the development machine.
The user pc is about 3 times faster than the development pc. Both have DirectX 9.0c or later. The same thing occurred when both had exactly the same version of 9.0c.
What's causing this and what is the remedy, if any?
Thanks,
Raymond.
with FilterGraph do
begin
if not Active then
begin
Active := True;
end;
Pause();
Application.ProcessMessages();
Stop();
Application.ProcessMessages();
ClearGraph();
Application.ProcessMessages();
FilenameSP.Caption := Folder + Filename;
try
RenderFile(Folder + Filename);
// ShowMessage('Filename: ' + Folder + Filename);
except
MessageDlg('There is no clip for this ID, which has Volume Number: ' + IntToStr(VN), mtWarning, [mbOk], 0);
Exit;
end;
Application.ProcessMessages();
QueryInterface(IID_IMediaSeeking, MediaSeeking);
with MediaSeeking do
begin
SetTimeFormat(TIME_FORMAT_FRAME);
GetDuration(ClipDuration);
// Load and wait
StartPos := 1;
StopPos := 1;
MediaSeeking.SetPositions(StartPos, AM_SEEKING_AbsolutePositioning, StopPos, AM_SEEKING_AbsolutePositioning);
FilterGraph.Play();
Sleep(500);
StartPos := 1;
StopPos := ClipDuration;
MediaSeeking.SetPositions(StartPos, AM_SEEKING_AbsolutePositioning, StopPos, AM_SEEKING_AbsolutePositioning);
with FilterGraph do
begin
Rate := RateEdit.Value;
Play();
end;
end; {with}
end;
.
- Follow-Ups:
- Re: [DSPack]Rendering a 2nd video doesn't work on user pc, but fine on dev. pc
- From: Thomas Mueller
- Re: [DSPack]Rendering a 2nd video doesn't work on user pc, but fine on dev. pc
- Prev by Date: [DSPack and rendering Video]Problem moving the position one frame or jumping to a particular position
- Next by Date: Re: Generating anti-noise
- Previous by thread: [DSPack and rendering Video]Problem moving the position one frame or jumping to a particular position
- Next by thread: Re: [DSPack]Rendering a 2nd video doesn't work on user pc, but fine on dev. pc
- Index(es):
Relevant Pages
|