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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Get frame rate of avi file

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Fodox Posted - Oct 31 2011 : 04:38:33
How can I get the frame rate of an AVI file?

I have 3.1.2 version. Thanks.

Fodox
4   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Nov 06 2011 : 00:17:39
Starting from next minor release CreateAVIFile will have rate as "double" value, so it will allow to create AVIs with real frame rates. Of course also following properties will be double:

- TIOParams.AVI_FrameDelayTime
- TIOParams.MEDIAFILE_FrameDelayTime
- TImageEnMView.ImageDelayTime

Please send a private message if you want to test the developing version.
Fodox Posted - Nov 03 2011 : 07:00:09
Thank you, OpenMediaFile is ok. Using DShow, frame rate can also be easily calculated with:

DShowParams.Duration (using tfFrame) / DShowParams.Duration (using tfTime, converted in seconds)



Another question. Often video have a frame rate of 29.970 fps, but using tImageEnIo.CreateAVIFile the "rate" parameter is integer. It's impossible for me to open an existing AVI, modify frames and then save with the same frame rate.
Is it a limitation or I am wrong somewhere?
fab Posted - Nov 01 2011 : 00:31:57
Please try ImageEnView.IO.OpenMediaFile instead.
Frame rate is calculable from ImageEnView.IO.Params.MEDIAFILE_FrameDelayTime.
Fodox Posted - Oct 31 2011 : 09:13:03
Maybe the problem is when I run ImageEnIo1.OpenAVIFile('myfile.avi'). It return always 0 but the AVI is playable.

Any help?