Log in

View Full Version : IFO Parser for Delphi?


sundance
30th June 2003, 10:14
For a DVD tool I'm writing (or should I say trying to write ;-)) I'm in the dire need of some IFO file parser for Delphi.
Is there some unit/class around for that job?
And, while we're at it, a way to get the number of frames from an Avisynth script would also come in handy (I found a VFW wrapper unit dated 1999, but I couldn't get the thing compiled with D5. Is there a newer one or another way of doing it?).

TaZ4hvn
1st July 2003, 06:11
Well I have the exactly same problem: I need a basic IFO parser in Delphi for my own app.
As I didn't find any, I'm simply writing one myself :)
But wait, it will be a very basic one: Audio/Video/Subs Streams info and that's all.
If you're willing to wait for me to finish I'll give you the unit, and i you want to help ... you're welcome !

sundance
1st July 2003, 09:17
While searching the internet I found a good point to start the delphi IFO parser class: vStrip!
You can download the complete source code at http://www.maven.de/code and the zip also contains the sources for "vStrip_gui" that comes with a complete IFO parser. I could complile the complete package with D5 so I guess it's complete. And since vStrip has a very good reputation I think there should be very few bugs in it.
The only drawback is that there's not much documentation, so you'll have to work through the code...

TaZ4hvn
7th July 2003, 07:28
Well, I'm done :) ... at least for calculation unit.
I just want to add a form to show how you call procedures and I post it, I think today or tomorrow .

TaZ4hvn
10th July 2003, 02:47
Finally I finished my IFO parser. I added a small form to show you how it works and let ppl play with it. Also I added some stuff so that it auto-find DVD drive and parse each IFO in it.
Let me know if it fits your need, if you want something more, different ...
I named it Tiny Ifo Parser 'cause it gives TIP :p

Binary: http://members.xoom.it/taz4hvn/TIP.exe
Sources: http://members.xoom.it/taz4hvn/TIP_src/

(Sorry Xoom doesn't accept any kind of compressed files ...)

Blight
15th July 2003, 00:57
TaZ4hvn:
Can the information be used to check if the disc is NTSC or PAL?

I could use a delphi function that would return the disc type (PAL/NTSC), I've got so much on my hands that I haven't had the time to look into parsing the IFO data.

TaZ4hvn
15th July 2003, 04:33
Can the information be used to check if the disc is NTSC or PAL?
Yep, for sure, this is retrieved amongst other info,
You can use any code you want I don't care :)

Blight
15th July 2003, 18:40
There's some problem.

If there's two DVD discs, the program crashes. (I used one real disc and one daemontools mounted disc).

Each on it's own seems ok.

TaZ4hvn
15th July 2003, 22:04
thx for the report: i'll look into this ...

Blight
24th July 2003, 03:24
Any progress?

TaZ4hvn
25th July 2003, 11:27
Not yet since I was on hollydays :)
I'll work on it now. I also added two different timing for the chapters: duration (present in the first version) and offset from the beginning.
Expect an update today or tomorrow .

TaZ4hvn
27th July 2003, 16:57
sorry, I'll need few more days to look at this since I have some relative at home right now :)

Blight
10th August 2003, 10:41
Any update?

TaZ4hvn
13th August 2003, 00:22
yep ! Finally I found a couple of hours to work on it.
improvements are as announced:
- if you have several DVD drives, you can switch between them,
- chapters can be sorted either by duration or offset.
This is a quick hack I didn't tested that well, plz report :)
URL are now:
binary: http://taz4hvn.chez.tiscali.fr/TIP.exe
sources: http://taz4hvn.chez.tiscali.fr/TIP.rar
( right click + save as )

jfcarbel
20th August 2003, 16:22
I'd like to look at this as well and try it.

But the links are not working.

TaZ4hvn
20th August 2003, 18:38
yes they are !
Just right click the url and choose save as.
A double left click will draw to a forbidden page, dunno why but that's the way it works :p