ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 DVDPlayAt after Pause()
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graphman

259 Posts

Posted - Apr 10 2013 :  13:21:23  Show Profile  Reply
ImageEnView1->IO->DShowParams->DVDPlayAt(....)
doesn't work after using
ImageEnView1->IO->DShowParams->Pause()

How to fix it?
Is there any solution?

graphman

259 Posts

Posted - Apr 14 2013 :  04:09:50  Show Profile  Reply
May be

ImageEnView1->IO->DShowParams->DVDPlayAt(....)
ImageEnView1->IO->DShowParams->Play()
ImageEnView1->IO->DShowParams->Pause()
Is there event which occur at DShowParams->Play() ???
Go to Top of Page

graphman

259 Posts

Posted - Apr 14 2013 :  04:12:30  Show Profile  Reply
Or how to get one or group of fream before and after PAUSE position?
Go to Top of Page

fab

1310 Posts

Posted - Apr 15 2013 :  06:59:04  Show Profile  Reply
Making tests on the demo at Display\VMR_DVD seems to work.
I can Pause and the change the chapter (DVDPlayAt) then Play without problems.
Can you replicate the problem using that demo?
Go to Top of Page

graphman

259 Posts

Posted - Apr 15 2013 :  07:09:43  Show Profile  Reply
I need static image after pause
ImageEnView1->IO->DShowParams->Pause()
And after pause I need to see image from this position
ImageEnView1->IO->DShowParams->DVDPlayAt(....)
without playing

How to do that?
Go to Top of Page

fab

1310 Posts

Posted - Apr 15 2013 :  07:25:18  Show Profile  Reply
Ok, now understand. Let me look if there is a way to do it.
Go to Top of Page

graphman

259 Posts

Posted - Apr 15 2013 :  07:46:04  Show Profile  Reply
thanks
Go to Top of Page

fab

1310 Posts

Posted - Apr 15 2013 :  10:24:25  Show Profile  Reply
I'm sorry, but it seems not possible.
We have no way to know when playing (hence the new frame is available) actually starts. This is not under ImageEn control.
If you need to capture frames continuously you could slowdown playback, for example with:

ImageEnView1.IO.DShowParams.DVDPlayAdvanced(true, 0.1);


Then capture each frame inside a TTimer event (timed at about 25 times per second):

procedure TForm1.Timer1Timer(Sender: TObject);
begin
  with ImageEnView1.IO.DShowParams do
  begin
    GetSample( ImageEnView2.IEBitmap );
    ImageEnView2.Update;
  end;
end;
Go to Top of Page

graphman

259 Posts

Posted - Apr 15 2013 :  12:08:15  Show Profile  Reply
thank you
Go to Top of Page

graphman

259 Posts

Posted - Apr 17 2013 :  07:48:46  Show Profile  Reply
> ImageEnView1.IO.DShowParams.DVDPlayAdvanced(true, 0.1);
> Then capture each frame inside a TTimer event (timed at about 25 times per second):

Result is 250 frames per second.
What this frequency for?
Go to Top of Page

fab

1310 Posts

Posted - Apr 20 2013 :  22:46:16  Show Profile  Reply
Value that specifies the playback speed. This value is a multiplier, where 1.0 is the authored speed, so a value of 2.5 plays at two and one-half times the authored speed, while a value of 0.5 plays at half the authored speed. The actual speed of playback depends on the capabilities of the video decoder (MSDN).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: