Help - Search - Members - Calendar
Full Version: RealVideo resolution
Hydrogenaudio Forums > Digital Audio/Video > General A/V
getID3()
How do you find out the resolution of a RealVideo file? I assume it's somewhere in the type_specific_data of the MDPR chunk, but I couldn't find any documentation on that. Does anyone have such documentation?
getID3()
Looks interesting... if only it was open-source smile.gif
And I can't PM the author until I've been registered there for 5 days! mad.gif

This is the file layout that I've been working off:
http://homepages.slingshot.co.nz/~helmboy/.../rmf-layout.txt
and it's great, except that under MDPR it lists the last item as
-> variable stream additional info = data as defined by MIME
and it's that data that contains the information I'm missing, and I haven't been able to find any better file format definition that contains a description of the data that's in there.
jcsston
When the MIME-Type is "video/x-pn-realvideo" the following struct is stored in the additional info data block.

CODE
#pragma pack(push, 1)
struct RealMedia_VideoHeader
{
UINT32 dwSize;
UINT32 fcc1;
UINT32 fcc2;
UINT16 w;
UINT16 h;
UINT16 bpp;
UINT32 unk1;
UINT32 unk2;
UINT32 type1;
UINT32 type2;
UINT8 w2;
UINT8 h2;
UINT8 w3;
UINT8 h3;
};
#pragma pack()


To get the frame-rate
CODE
RealMedia_VideoHeader video_header;
// Fill in video_header with data
float frame_rate = (float)video_header->unk2 / 0x10000;


Hope this help smile.gif

BTW I found these specs easier to rad.
getID3()
Fabulous! Thanks a bunch jcsston! biggrin.gif

edit: The above information has given me info to fully support all the Real stuff I need, thanks! smile.gif
sh0dan
GuliverKLI kan an opensource RM splitter and decoder (using Real Libraries). It might also help you find the information you need.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.