View Full Version : Need some help in VB code.
BaRRoS
2nd May 2003, 12:33
A big HI to all coders out there....
I'm trying to find info on some tasks I want to do in VB (Visual Basic).
1. Getting information from .IFO files.
How to get the number of audio tracks and subtitles, and respective languages. Number of chapters. Name of the DVD-Title
2. Getting information about an .AVI file.
Ex: Resolution, Video Codec, Video Bitrate, number of audio track, audio bitrate, something like what GSpot does but in VB.
I'm trying to do all of this, if possible, without any ocx.
Thanks in advance :D
1. Look at www.mpucoder.com he have some very nice help sites.
2. I think you can use windows API for AVI files, try search on windows API on M$ homepage.
Movie Maniac®
2nd May 2003, 18:29
there's a thread started bi Doc Hex in this forum, and there you'll find all the code you need to access a DVD and doing ifo parsing (ain't it what are you looking for?)
Then
if you want to retrieve detailed infos on avi files, you should access them in binary mode, and you can find info's on John McGowan avi overview.
I've found a japanese page once, with a detailed description of an avi header, but I haven't the address at the moment, I will be aable to have it next week...
Bye
DoC hEx
3rd May 2003, 12:19
Here's some code that should do the trick for AVI.
It was written by Mike D Sutton, see attachment
' AVI info version 1.041
' Written by Mike D Sutton of EDais
'
' E-Mail: Mike.Sutton@btclick.com
' WWW: Http://EDais.Earlsoft.co.uk/
'
' Written: 25/06/2002
' Last edited: 12/08/2002
BaRRoS
6th May 2003, 12:44
Hi all, and thanks for replying.
@GZZ: I'm already looking into mpucoder's site and trying to figure out all that stuff ;)
@Movie Maniac®: I've seen that thread before I posted mine, but Doc Hex code uses a DLL, and I want to avoid going that way, BTW, that same code crashes in my OS.
@DoC hEx: Sorry, but I can't find the code, do you have a direct link??
Again, many thanks for helping me.
(PS: Sorry if i wrote some nonsense, i'm not used to write in english :rolleyes: )
DoC hEx
6th May 2003, 15:15
He's a direct link to the file:
clsAVIInfo.zip (http://indigo.ie/~wilsonj/clsAVIInfo.zip)
BaRRoS
13th May 2003, 15:31
Hi all,
I've been doing some tests with the IFO tables in mpucoder's site and I've managed to get the video attributes, number of audio tracks and audio attributes.
Now I'm trying to get the number of titles but don't quite understand how :(
Anyone willing to help??
Thanks in advance
DoC hEx
13th May 2003, 19:17
@BaRRoS
Have you looked at this topic at all??? it's about VB and IFOs. You might find it interesting.
http://forum.doom9.org/showthread.php?s=&threadid=50552
BaRRoS
15th May 2003, 12:24
Hi DoC hEx
I've seen that thread before I posted mine, but Doc Hex code uses a DLL, and I want to avoid going that way, BTW, that same code crashes in my OS.
At the time I write this I look at the code without the VB IDE, and after I saw the declare of AuthDVD, and also the fact that the compile exe crashes, make me believe that it uses a dll to parse the ifo. Now I've look at it properly (btw, whats the ddl for?) and everythings fine. My mistake, Sorry.
But, altought it works it doesn't help me, cause I was trying to parse the video_ts.ifo and your code only parses the vts*.ifo. But (many thanks) it makes me realise the ifo sector size (2048) which I dind know.
Right now, i'm trying to understand the TT_SRPT (table of titles) in the VMG IFO (video_ts.ifo). The title number in the .IFO I'm working with is 3 but I only have two VTS* files?? I'm confused :confused: :confused:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.