Thema: Delphi DSPack Video Vorspulen

Einzelnen Beitrag anzeigen

Zimond

Registriert seit: 14. Jul 2007
15 Beiträge
 
#6

Re: DSPack Video Vorspulen

  Alt 14. Jul 2007, 20:15
Ich hab doch noch eine Lösung hierzu gefunden :

Zitat:
I find a solution with the manual seeking while paused that works pretty well... if you pause the graph every time you make a seek to the next frame, it will generate a EC_PAUSED event. Then you can check this event to prevent seeking the next frame.

Something like this:
CODE
while ContinueSeeking do
begin
if SeekCanGoOn then
begin
GoToNextFrame;
SeekCanGoOn := False;
end;
FilterGraph.Pause;
Application.ProcessMessages;
end;

And on the "OnDSEvent" event:
CODE
if event = EC_PAUSED then SeekCanGoOn := True;

This way I can render every frame, with perfect accuracy, on every kind of video file (I'm seeking by time, calculating the frames with FPS), and with better performance then the IVideoFrameStep::Step method!
Funktioniert prächtig
  Mit Zitat antworten Zitat