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
 Directshow TimeFormat problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

quantuz

Sweden
55 Posts

Posted - Nov 01 2011 :  01:02:14  Show Profile  Reply
Hi!
Have problem loading .avi movie, when I try to set TimeFormat to tfFrame it gets the value tfTime. The video(500 frames) looks ok in the load preview and I manged to load it once using the code below but could not reproduce.
Running BCB 6 and Win7 IE 4.01

TIEDirectShow *directShow_;
directShow_ = new TIEDirectShow;
directShow_->FileInput = fileName;
directShow_->EnableSampleGrabber = true;
directShow_->RenderAudio = true;
directShow_->Connect();
directShow_->TimeFormat = tfFrame; // <--- does NOT work

Regards,
//Christer

fab

1310 Posts

Posted - Nov 01 2011 :  22:57:26  Show Profile  Reply
Hi,
TimeFormat setting is just a request to the DirectShow codec. Unfortunately some formats don't allow formats other than tfTime.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: