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? |