GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MP4OPTIMIZE (3)

NAME

MP4Optimize - Optimize the layout of an mp4 file

CONTENTS

SYNTAX

#include <mp4.h>

bool MP4Optimize(
        const char* existingfileName,
        const char* newfileName = NULL,
        u_int32_t verbosity = 0
);

ARGUMENTS

existingFileName
  Specifies the path name of the existing file to be optimized.
newFileName
  Specifies the path name of the new, optimized file. If NULL, then a temporary file is used, and the existing file is overwritten upon successful completion.
verbosity
  Specifies a bitmask of diagnostic details the library should print to stdout during its functioning. See MP4SetVerbosity() for values.

RETURN VALUES

Upon success, true (1). Upon an error, false (0).

DESCRIPTION

MP4Optimize reads an existing mp4 file and writes a new version of the file with the two important changes:

First, the mp4 control information is moved to the beginning of the file. (Frequenty it is at the end of the file due to it being constantly modified as track samples are added to an mp4 file.) This optimization is useful in that in allows the mp4 file to be HTTP streamed.

Second, the track samples are interleaved so that the samples for a particular instant in time are colocated within the file. This eliminates disk seeks during playback of the file which results in better performance.

There are also two important side effects of MP4Optimize():

First, any free blocks within the mp4 file are eliminated.

Second, as a side effect of the sample interleaving process any media data chunks that are not actually referenced by the mp4 control structures are deleted. This is useful if you have called MP4DeleteTrack() which only deletes the control information for a track, and not the actual media data.

SEE ALSO

MP4(3)

Search for    or go to Top of page |  Section 3 |  Main Index


Cisco Systems Inc. MP4 (3) Version 0.9

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.