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  -  MP4ENCODE (1)

NAME

mp4encode - encode raw audio/video into an mp4 file

CONTENTS

SYNTAX

mp4encode [options] <filename.avi> [<filename.mp4>]

DESCRIPTION

This script takes an avi file with raw audio and video, and produces an encoded mp4 file. Note: a common mistake is to attempt to encode an avi that doesn’t contain the raw data but already encoded media.

The raw audio in the avi file should be PCM format, 16 bits/sample, little-endian, 2 channels, 44100 samples/sec.

The raw video in the avi file should be YUV12 format, aka YV12. (FYI: This is a planar format sampled at 4:2:0). Any frame size and frame rate are acceptable.

There are two choices for the video encoder, one from the OpenDivx project, and another from the ISO MPEG reference software. The OpenDivx encoder is much faster, and is the default. The ISO encoder can be selected via the "-I" option.

There are also two choices for audio encoder, one for the MP3 format, and another for the AAC format. The MP3 format is much used in the Divx world, the AAC format is used in the MPEG-4 world. The AAC encoder is used by default. The MP3 encoder can be selected via the "-M" option.

OPTIONS

-w <uint>
  The input video frame width in pixels, default value is 320
-h <uint>
  The input video frame height in pixels, default value is 240
-r <uint>
  The video frame rate in frames per second, default value is 24
-V <uint>
  The desired video bitrate in Kbps, default value is 500
-A <uint>
  The desired audio bitrate in Kbps, default value is 96
-R The video input is in RGB24 format, convert it to YUV12 so that it can be encoded.
-a <float>
  The desired aspect ratio, default value is 1.33 (4:3). Typically letterbox is 2.35.
-I Use the ISO MPEG-4 video encoder instead of the OpenDivX encoder
-M Use the MP3 audio encoder instead of the AAC encoder
-d Debug mode, leave intermediate files.

EXAMPLES

To create a 320x240, 24 fps, 500 Kbps Divx video, and 96 Kbps AAC audio:
        mp4encode foo.avi (output is in foo.mp4)

To create a 640x480, 30 fps, 1000 Kbps ISO video, and 128 Kbps MP3 audio:
        mp4encode -w 640 -h 480 -r 30 -I -V 1000 -M -A 128 foo.avi foo.mp4

AUTHORS

David Mackie <dmackie@cisco.com>
Bill May <wmay@cisco.com>

SEE ALSO

gmp4player(1) mpeg4ip/doc/encoding/encoding.htm

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


Cisco Systems Inc. MP4ENCODE (1) 0.9

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