Log in

View Full Version : IFO Parser for Delphi - by Kurtnoise13 and Amnon82


Amnon82
20th April 2006, 12:37
IfoParser for Delphi

This source codes will help you to add the IfoParser to your
Delphi project.

23.04.2006 IfoParser for Delphi v3
* modified release by Amnon82
* autoq2.fx.to
* formats added
* chapters save to txt added
* some bugfixes
* download IfoParser v3 (http://home.arcor.de/autoq2_amsoft/files/delphi/source/IFOParser_for_Delphi_v3.zip)

23.04.2006 IfoParser for Delphi v2
* modified release by Amnon82
* autoq2.fx.to
* 'by frames'-function fixed (FFF/40)
* download IfoParser v2 (http://home.arcor.de/autoq2_amsoft/files/delphi/source/IFOParser_for_Delphi_v2.zip)

22.04.2006 IfoParser for Delphi v1
* modified release by Amnon82
* autoq2.fx.to
* 'by frames'-function added

20.04.2006 IfoParser for Delphi v0
* inital release by Kurtnoise13
* kurtnoise.free.fr
* download IfoParser v0 (http://kurtnoise.free.fr/misc/IFOParser.zip)

Kurtnoise
20th April 2006, 15:11
You need an IFO Parser. I've made my own parser for BeLight concerning VOB support ;). If you want I can post it here...

Amnon82
20th April 2006, 18:34
Yes do it. Maybe it will help me ...

danpos
20th April 2006, 21:00
@Amno82

latsilva also has a such IFO parser for ages. If you want, send to him a PM or so contact him at www.vmesquita.com/forum ...

See ya,

Kurtnoise
20th April 2006, 22:11
http://kurtnoise.free.fr/index.php?dir=misc/&file=IFOParser_for_Delphi_v4.zip

Amnon82
20th April 2006, 23:54
thx for the delphi code Kurtnoise13.

Amnon82
22nd April 2006, 22:20
hmm. I don't get the frames right. Maybe I missed something ...

procedure TForm1.DisplayChapters;
var
j,framesPerSecond: integer;
hh,mm,ss,ff,fra,s:string;
begin
Form1.Memo3.Clear;
with IFOArray[Form1.TreeView1.Selected.Parent.Index] do
with VTS_VOBS.VideoStream do
for j:=0 to VTS_PGCI.ProgramChainArray[Form1.TreeView1.Selected.Index].NumberOfPGC-1 do
begin
if Form1.Durations.Checked then Form1.Memo3.Lines.Add(Format('Chapter %d [%s]', [j+1, VTS_PGCI.ProgramChainArray[Form1.TreeView1.Selected.Index].PGCPlaybackTime[j]]));
if Form1.Offsets.Checked then Form1.Memo3.Lines.Add(Format('Chapter %d [%s]', [j+1, VTS_PGCI.ProgramChainArray[Form1.TreeView1.Selected.Index].PGCStartTime[j]]));
if Form1.frames.Checked then
begin
framesPerSecond:=strtoint(fpsec.text);
s:=VTS_PGCI.ProgramChainArray[Form1.TreeView1.Selected.Index].PGCStartTime[j];
HH:=Copy(s, 1, pos(':',s)-1);
Delete(s, 1, Pos(':', s));
MM:=Copy(s, 1, pos(':',s)-1);
Delete(s, 1, Pos(':', s));
SS:=Copy(s, 1, pos('.',s)-1);
Delete(s, 1, Pos('.', s));
FF:=Copy(s, Pos('.', s) + 1, Length(s)-1);
FRA:=floattostr(strtoint(ff) + framesPerSecond*( strtoint(ss) + 60*( strtoint(mm) + 60*strtoint(hh))));
Form1.Memo3.Lines.Add(Format('Chapter %d [%s]', [j+1, fra]));
end;
end;
end;

IFOParser (frames added) (http://home.arcor.de/autoq2_amsoft/files/delphi/source/IFOParser_frames_v1.zip)

Oldman52
20th April 2009, 10:12
http://kurtnoise.free.fr/index.php?dir=misc/&file=IFOParser_for_Delphi_v4.zip

Sorry, I can not English.

Translation from German to English using Google Language Tools.

The Ifo parser only works on Ifo's from VOB files.
I need a parser for Ifo's from VRO files.

The following files are in the folder:

VR_MANGR.IFO
VR_MANGR.BUP
VR_MOVIE.VRO

The video consists of several chapters, which I would like to read. It seems now only to pay Proggis how TMPEG DVD Author to give the chapters of such files.
Schade. :-(
Or know of someone you advice?

Adub
20th April 2009, 20:20
I have never seen a file ending with .vro in my life. Are you sure that your file structure is correct? Maybe some one else has better insight.

buzzqw
20th April 2009, 21:09
vro file should be the same as vob...
and the structure as dvd

you could try with vstrip/ifoedit

BHH

Oldman52
21st April 2009, 10:41
vro file should be the same as vob...
and the structure as dvd

you could try with vstrip/ifoedit

BHH

My VRO (Video Object record) consists of 4 Sony Handycam recordings, as a single VRO stored.
There is no problem, the VRO to VOB, convert, or MPEG II. But neither with IfoEdit or with another program, except TMPEG Author can view the chapters. When you convert VRO to VOB, the chapters are gone.
Will probably only the VRO with a video editing program to edit the chapters and interfaces to search, right?

Kurtnoise
21st April 2009, 11:16
chapters infos are read from the IFO file not from VOB/VRO (at least using this tool)...

Oldman52
21st April 2009, 12:03
chapters infos are read from the IFO file not from VOB/VRO (at least using this tool)...

Yes, Thanks, Kurtnoise :-)

But IfoEdit shows the contents of the VRO IFO not.
VRO is not a finalized DVD, such as VOB, see here:

http://www.siteupload.de/t946246-VROIFOJPG.JPG (http://www.siteupload.de/p946246-VROIFOJPG.html)

Also your IfoParser can not read from this IFO:

http://www.siteupload.de/t946249-IfParsJPG.JPG (http://www.siteupload.de/p946249-IfParsJPG.html)

Kurtnoise
21st April 2009, 12:32
well...such tools are not appropriate then for what you want.

Oldman52
21st April 2009, 12:40
well...such tools are not appropriate then for what you want.

Ok, thank you