|
-
Jan 18th, 2004, 04:46 AM
#1
Thread Starter
Sleep mode
Header file reader ?
Is there such program that retrieve all info stored in any header file ?
Thanks .
-
Jan 18th, 2004, 04:00 PM
#2
Thread Starter
Sleep mode
1 bump
-
Jan 21st, 2004, 12:30 AM
#3
Thread Starter
Sleep mode
D'uh
gave up !
-
Jan 21st, 2004, 06:44 AM
#4
Addicted Member
Could you be a bit more descriptive please?
-
Jan 21st, 2004, 06:50 AM
#5
Thread Starter
Sleep mode
Umm , I thought it's clear but I'll explain a bit more .
I need , for example , to read file header information for MPEG file . These info are stored in the beginning (the first 128 bit I think) of the file (like how many frames , total time ..etc ) . Is that clear now ?
-
Jan 21st, 2004, 06:57 AM
#6
Do you need an app for all types of files? Don't think there is an app like that. Just to many file formats. Only reading the header of a zip or an jpeg file is a pain in the ass becuase there is new versions all the time....but I might be wrong tho'...
-
Jan 21st, 2004, 07:02 AM
#7
Thread Starter
Sleep mode
Originally posted by NoteMe
Do you need an app for all types of files? Don't think there is an app like that. Just to many file formats. Only reading the header of a zip or an jpeg file is a pain in the ass becuase there is new versions all the time....but I might be wrong tho'...
Let's say , for MPEG and MP3 files . Is there anyone for this job ?
-
Jan 21st, 2004, 07:27 AM
#8
Addicted Member
Its not a very compact solution however there are plenty of large programs made to edit those files. Im sure some of them would be able to display or edit the infromation you want.
-
Jan 21st, 2004, 07:32 AM
#9
Thread Starter
Sleep mode
Originally posted by Evil_Cowgod
Its not a very compact solution however there are plenty of large programs made to edit those files. Im sure some of them would be able to display or edit the infromation you want.
I know ,
I don't want to edit the these files . Anyways , I said I gave up !
-
Jan 21st, 2004, 07:33 AM
#10
www.Wotsit.org is a good place to look - they have descriptions of file structures for lots of file types (and some code too).
-
Jan 21st, 2004, 07:53 AM
#11
Thread Starter
Sleep mode
Originally posted by si_the_geek
www.Wotsit.org is a good place to look - they have descriptions of file structures for lots of file types (and some code too).
Thanks , I've already checked the first link but the second one is good too . Most of the code in C\C++ and mostly they talk to C++ gusy I believe . For now , I'll skip this part in my proj and try to do it later .
Thanks everyone .
-
Jan 21st, 2004, 11:22 AM
#12
Fanatic Member
Dude, hello?!?! C++, VB, Java, whatever.. the data structure and data types for a binary file format will still be the same no matter what language you use. Your project isn't as trivial as it seems. You want a program to automaticall identify a file type via the header information within the file verse identifying the type of file by the files extension.
-
Jan 21st, 2004, 11:32 AM
#13
Thread Starter
Sleep mode
Originally posted by nkad
Dude, hello?!?! C++, VB, Java, whatever.. the data structure and data types for a binary file format will still be the same no matter what language you use. Your project isn't as trivial as it seems. You want a program to automaticall identify a file type via the header information within the file verse identifying the type of file by the files extension.
lol , I know that .
I meant I couldn't find a way to read this structure .
And identifiying file via ext , it's useless when it comes to avi(divx or other codecs) and MPEG (1.1 , 1.5 , 2.0) .
-
Jan 21st, 2004, 11:42 AM
#14
Fanatic Member
Are you using vb?
Why can't you create a UDT (user defined type)
Code:
Private Type header_t
ID As String * 2
Version As Integer
CompanyName as String * 10
End Type
Dim FileHeader As header_T
Thats just an example though... then just open the file for binary and do a Get #1, , FileHeader?
-
Jan 21st, 2004, 12:05 PM
#15
Thread Starter
Sleep mode
Originally posted by nkad
Are you using vb?
Why can't you create a UDT (user defined type)
Code:
Private Type header_t
ID As String * 2
Version As Integer
CompanyName as String * 10
End Type
Dim FileHeader As header_T
Thats just an example though... then just open the file for binary and do a Get #1, , FileHeader?
No , I'm using C# for this proj I've programmed in VB for years but hate to go back .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|