Log in

View Full Version : AVI File Details


shafter
12th July 2005, 20:31
HI,

I'm looking for a way of automatically creating a text file with the codec (audio & video) used in an avi, i would like to do this without any user interaction.

e.g run a program with the avi filename as a command line oprion, and then have a text file created.

Gspot provides the information, but i need to automate it completly, any suggestions?


Anyone??

Ta in advance

Toby

unskinnyboy
12th July 2005, 21:00
Bringing up a CLI window, typing in the avi name and other parameters, pressing the Enter key - all requires user interaction, right? :)

Did you know that GSpot can be configured to spit out a text file containing the avi (or for that matter MPEG-1 or MPEG-2 also) details using its 'Export' functionality as soon as you open an avi with GSpot? The .txt file will be created in the same directory as your avi.

Options-->Export--> check 'Enable Exporting', then specify the export format. You would have to edit the ExportFormat.txt in your GSpot directory to configure the export format. The same ExportFormat.txt contains instructions on how to do it.

As long as you are opening the avis manually, this will work. If you intend this to be part of a program chain (some program calling a CLI with some parameters and have it spit out a text file with the media details), then this won't work. EDIT: Yeah, it will. Just have your calling program close GSpot GUI.

shafter
12th July 2005, 22:08
Sounds like a plan, thanks unskinny.