[Tutor] Video file metadata? (MP4/WMV)

Alan Gauld alan.gauld at btinternet.com
Wed Mar 5 09:48:02 CET 2008


"Allen Fowler" <allen.fowler at yahoo.com> wrote

> That being said, what is the correct way to parse binary files in 
> Python?

The safest way is to open in binary mode and use read() to get the 
data
then use the struct module to decode the data into python objects.
There is a very basic intro to this at the end of my file handling 
topic
in my tutorial.

-- 
Alan Gauld
Author of the Learn to Program web site
Temorarily at:
http://uk.geocities.com/alan.gauld@btinternet.com/
Normally:
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list