BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Video File Formats (MP4)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
Patrick
Guest





PostPosted: Wed Jan 17, 2007 6:09 am    Post subject: Video File Formats (MP4) Reply with quote



Does anyone know the structure of *.mp4 files.
I can't even find the basic things like FourCC, and framerate. I've only
found dimensions.
Didn't find any Audio information at all.
Back to top
Tsviatko Jongov
Guest





PostPosted: Wed Jan 17, 2007 9:12 am    Post subject: Re: Video File Formats (MP4) Reply with quote



Hi,
MP4 files are actually MPEG-4 in QuickTime container.

You can try my free QuickTime Atom Viewer:
http://tsviatko.jongov.com/index_prj_quicktimeviewer.htm

QuickTime Atom Viewer application provides the user with a visual representation of the QuickTime container. QuickTime files can contain a wide variety of different video coded streams (MPEG-2, MPEG-4, H.264, Animation, DV, MJPEG), still graphic formats (TIFF, PICT, JPEG), and audio streams (WAV, AIFF, AAC).

Regards,
Tsviatko Jongov
http://tsviatko.jongov.com

"Patrick" <patrickveenstra (AT) yahoo (DOT) es> wrote:
Quote:
Does anyone know the structure of *.mp4 files.
I can't even find the basic things like FourCC, and framerate. I've only
found dimensions.
Didn't find any Audio information at all.

Back to top
Patrick
Guest





PostPosted: Wed Jan 17, 2007 4:39 pm    Post subject: Re: Video File Formats (MP4) Reply with quote



Thanks, I'll take a look.

"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> escribió en el mensaje
news:45add77c$1 (AT) newsgroups (DOT) borland.com...
Quote:

Hi,
MP4 files are actually MPEG-4 in QuickTime container.

You can try my free QuickTime Atom Viewer:
http://tsviatko.jongov.com/index_prj_quicktimeviewer.htm

QuickTime Atom Viewer application provides the user with a visual
representation of the QuickTime container. QuickTime files can contain a
wide variety of different video coded streams (MPEG-2, MPEG-4, H.264,
Animation, DV, MJPEG), still graphic formats (TIFF, PICT, JPEG), and audio
streams (WAV, AIFF, AAC).

Regards,
Tsviatko Jongov
http://tsviatko.jongov.com

"Patrick" <patrickveenstra (AT) yahoo (DOT) es> wrote:
Does anyone know the structure of *.mp4 files.
I can't even find the basic things like FourCC, and framerate. I've only
found dimensions.
Didn't find any Audio information at all.


Back to top
Patrick
Guest





PostPosted: Wed Jan 17, 2007 5:56 pm    Post subject: Re: Video File Formats (MP4) Reply with quote

Thanks, it seems to show all I needed.
Back to top
Patrick
Guest





PostPosted: Wed Jan 17, 2007 7:35 pm    Post subject: Re: Video File Formats (MP4) Reply with quote

I've found everything I need, except audio and video bitrate. I only know
the total bitrate.
The SampleSize block states the number of entries, but sample size = 0.
Of course I thought about reading all sample sizes, and taking the average,
but it seems to me that there must be a simpler way.
Back to top
Tsviatko Jongov
Guest





PostPosted: Wed Jan 17, 2007 9:11 pm    Post subject: Re: Video File Formats (MP4) Reply with quote

Hi,
In order to find the track(stream) bitrate you'll have to find the ("number of bits per stream" / "duration") = bits/sec.
From your post I'll take that you know how to calculate the "duration" parameter.
Each track is built from chunks. Each chunk may contain one or more samples. If the "Sample Size" in the "stsz" atom is equal to 0 then there must be a "Sample Size Table", which denotes the size of each sample. You'll have to sum
all the sample sizes and you'll have your value in bytes. I think you'll manage from here.

You can find more information in the "QuickTime File Format".
I think you can find it free on the www.apple.com.

Regards,
Tsviatko Jongov
http://tsviatko.jongov.com




"Patrick" <patrickveenstra (AT) yahoo (DOT) es> wrote:
Quote:
I've found everything I need, except audio and video bitrate. I only know
the total bitrate.
The SampleSize block states the number of entries, but sample size = 0.
Of course I thought about reading all sample sizes, and taking the average,
but it seems to me that there must be a simpler way.

Back to top
Patrick
Guest





PostPosted: Wed Jan 17, 2007 11:38 pm    Post subject: Re: Video File Formats (MP4) Reply with quote

So actually if the sample size = 0 then bitrate is variable and one has to
calculate. For some reason Apple didn't consider it important to write the
average like in every other file format.

Thanks a lot for your great support.
Back to top
Whome
Guest





PostPosted: Sun Jan 21, 2007 9:11 am    Post subject: Re: Video File Formats (MP4) Reply with quote

Patrick wrote:
Quote:
Does anyone know the structure of *.mp4 files.
I can't even find the basic things like FourCC, and framerate. I've only
found dimensions.
Didn't find any Audio information at all.

http://koti.mbnet.fi/akini/delphi/dspack/
file: VMRBitmap.zip

Look at uMediaDetails.pas unit. It uses DSPACK directshow wrapper to
utilize functionality. It should work for all directshow registered codecs.
Back to top
Patrick
Guest





PostPosted: Mon Jan 22, 2007 4:41 pm    Post subject: Re: Video File Formats (MP4) Reply with quote

I didn't want to depend on codecs.

But thanks anyways.

"Whome" <nomail (AT) maildot (DOT) com> escribió en el mensaje
news:45b3183f (AT) newsgroups (DOT) borland.com...
Quote:
Patrick wrote:
Does anyone know the structure of *.mp4 files.
I can't even find the basic things like FourCC, and framerate. I've only
found dimensions.
Didn't find any Audio information at all.

http://koti.mbnet.fi/akini/delphi/dspack/
file: VMRBitmap.zip

Look at uMediaDetails.pas unit. It uses DSPACK directshow wrapper to
utilize functionality. It should work for all directshow registered
codecs.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.