Archive for September, 2006

File Names with Special Characters

Friday, September 22nd, 2006

You could try making a hard link to the file with the special characters in its name. But name the link something very simple like temp0001. Then, open the link. I’ve gotten around similar problems in the QT player with this technique. It seems that the QT player (at least) squawks when you use some of the more esoteric features of Windows file names such as special characters, parentheses, and brackets. Then, when you’re done doing whatever you’re doing, just delete the hard link.

Tom Hesley
Tommy’s Tunes

Finding Duration of MP4 File

Saturday, September 16th, 2006

Friends,

I need to calculate the duration (in hours, minutes, and seconds) of some MP4 files that contain AAC audio. No video. I created these files using the QT player export function. However, I’m not using the QT API, and so would like to know where to find this info in the MP4 file (which boxes and so on). It would be helpful to know how to find the following information through parsing of the MP4 file:

* Number of kilobits per second

* Sample rate (most of my files are 44100)

* Number of audio channels

* Number of audio samples

I’d appreciate any assistance you can offer.

Thanks,
Tom Hesley