Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
14th October 2002, 08:49 | #1 | Link |
Registered User
Join Date: Jul 2002
Location: Bremen,Germany
Posts: 35
|
Numer of Frames from .D2V-File
Hi
I need to count the number of frames from a .D2V-Project-File made by DVD2AVI. With PAL-Movies there is only the value 2 for I,P and B frames. So i was able to determine the whole number of frames by countig this value. With NTSC-Movies there are the values 0,1,2 and 3 for the frames. The summation of appearances did not match with the total amount of frames. Did anyone knows the meaning for the values 0,1,2,3 and how to calculate the total amount of frames from this values or their appearances? Regards Chatwalker |
14th October 2002, 15:19 | #2 | Link |
Moderator
Join Date: Oct 2001
Posts: 3,530
|
What field is this value in? There are many fields, with many values. Also, which number of frames do you want? For NTSC there are the coded frames and the displayed frames. Your count is probably the correct for the coded count.
Possibly you are talking about the combined tff/rff flags (which are not adjacent in memory). If so, count the frames with the rff flag (which would be values 1 and 3) as 1.5 displayed frames. |
9th November 2002, 12:45 | #7 | Link |
XviDer
Join Date: Jun 2002
Posts: 190
|
u can also open the d2v file in QuickAVS:
http://forum.doom9.org/showthread.php?threadid=37626 and it will show the number of frames immediately
__________________
www.the-unforgiven.info |
10th November 2002, 09:52 | #8 | Link | |
Registered User
Join Date: Feb 2002
Posts: 123
|
Quote:
-AVIFileInit -AVIFileOpen -AVIFileGetStream -AVIStreamLength => this will give you the number of frames -AVIFileStreamInfo => you can get info from AVISTREAMINFO struct -AVIFileExit Hope this will help you.
__________________
"AutoDivX5 - Avisynth Frameserving Tool" |
|
11th November 2002, 15:23 | #10 | Link |
Still Laughing
Join Date: Oct 2001
Location: Around
Posts: 1,312
|
You can skip the .avs step by directly referencing the functions in mpeg2dec.dll, the url I meant to reference is here: http://aquaplaning.20m.com/
Code:
var MPEG2videoInfo: PVideoInfo; MPEG2frame: TBitMap; isMPEG2VideoOpen: boolean; MPEG2DllName: String; // direct access to DLL function's openMPEG2Dll: function(name: PChar): PVideoInfo; stdcall; closeVideoDll: procedure; stdcall; getRGBFrameDll: function(frame: integer): PByteArray; stdcall; getFrameDll: function(frame: integer): PByteArray; stdcall; // capsulated functions for delphi, recommended for use procedure openMPEG2(name: String); procedure closeVideo; procedure getFrame(frame: integer); procedure getRGBFrame(frame: integer); function getWidth: integer; function getHeight: integer; function getFrameCount: integer; function getFPS: float; |
7th April 2003, 12:39 | #11 | Link |
Registered User
Join Date: Nov 2001
Posts: 205
|
Does anybody know a function or a external program with which I could get the Framecount from a D2V File out of a vbscript?
It could also be a avisynth plug-in which can write to a file, which I can read from afterwards. Can somebody help? |
8th April 2003, 02:51 | #12 | Link | |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Re: Numer of Frames from .D2V-File
Quote:
|
|
8th April 2003, 02:54 | #13 | Link | |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
http://shelob.mordor.net/dgraft/tools/ParseD2V.zip Run it from a DOS prompt like this: ParseD2V your_d2v.d2v >out Then look at the file out. If you want the parsing source code, let me know. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|