divxenc(1)

NAME
divxenc - the interactive shell script ripper

SYNOPSIS
divxenc [-1p|-2p|-3p|-fq|-b|-sc|-scan|-iso|-bpp|-bpb|-v|--help] [-p <preset>]

DESCRIPTION
divxenc is an advanced and powerful interactive menu-driven shell script which uses the encoding utility MEncoder from the MPlayer project. The script can be used to encode either DVDs or regular video files to the MPEG-4 SP/ASP video format.

REQUIREMENTS
- MEnocder >= 1.0rc2
- lsdvd
- LAME (for MP3 audio encoding)
- FAAC (for AAC audio encoding)
- dvdxchap from ogmtools (for DVD chapters export)
- neroAacEnc (for AAC+ encoding)
- oggenc (for Vorbis encoding)
- mkvmerge from mkvtoolnix (for AVI -> MKV container conversion)
- MP4Box from gpac (for AVI -> MP4 container conversion)
- ogmmerge from ogmtools (for AVI -> OGM container conversion)

FEATURES
- Support for 1-pass, 2-pass, 3-pass and fixed-quant encoding modes
- Support for 8 different video quality presets
- Support for DVDs and video files
- Support for dumping the DVD content to an ISO image to disk
- Support for displaying/exporting extensive DVD information
- Support for video files with more than one audio and video stream
- Support for auto detecting the longest DVD title
- Support for encoding from a different DVD angle
- Support for auto detecting available DVD chapters
- Support for auto detecting available DVD subtitles
- Support for hard coding external subtitles when encoding video files
- Support for auto detecting DVD/video file cropping values
- Support for adaptive auto detection of the source resolution
- Support for bypassing scaling if user keeps the original source resolution
- Support for frame rate conversion
- Support for setting the encoder priority level ("nice" values)
- Support for automatic brightness/contrast control
- Support for interlaced encoding
- Support for interlacing of progressive content
- Support for deinterlacing DVDs/video files with a user selectable deinterlacing filter
- Support for Inverse Telecine/Pullup/Hard Telecine/3:2 Pulldown for NTSC content
- Support for denoising DVDs/video files with a user tunable denoise filter
- Support for adding noise to the encoding
- Support for deblocking/deringing of video files with a user tunable deblocking filter
- Support for user tunable (un)sharp mask/gaussian blur
- Support for automatic video bitrate calculation
- Support for inspecting the desired options before encoding
- Support for exporting the used options for debugging purposes
- Support for loading a options file generated by this script
- Support for 11 different software scalers
- Support for setting the output frame rate value
- Support for auto detecting available DVD/video file audio channels
- Support for various audio codecs [MP2/MP3/AC3/AAC/AAC+/VORBIS/WMA/FLAC/PCM/ADPCM]
- Support for audio resampling
- Support for audio volume normalization [MP2/AC3/AAC/AAC+/VORBIS/WMA/FLAC/PCM/ADPCM only]
- Support for setting the audio volume gain [MP2/AC3/AAC/AAC+/VORBIS/WMA/FLAC/PCM/ADPCM only]
- Support for audio input gain [MP3 only]
- Support for using more than 2 audio channels [AC3/AAC/VORBIS/FLAC/PCM only]
- Support for AC3 Dynamic Range Compression [AC3 only]
- Support for converting the final AVI to the Matroska container
- Support for converting the final AVI to the MP4 container
- Support for converting the final AVI to the OGM container
- Support for splitting the final encode

PARAMETERS

-1p Encode the DVD or video file in 1-pass mode

-2p Encode the DVD or video file in 2-pass mode

-3p Encode the DVD or video file in 3-pass mode

-fq Encode the DVD or video file in fixed-quant mode (constant quality)

-b /path/to/file/batchfile
    Load a batch file generated by this script. This option can be useful for testing or debugging the MEncoder parameters and for batch encoding.

-sc Perform a sanity check. This will check for the programs which are required for the correct operation of this script and it will print the status in a list. It will also display which audio codecs are supported by MEncoder.

-scan
    Scan the DVD disc/video file and display extensive information about it. With this option, one can display or export the information to a file on disk in text, perl, python, ruby or xml format - only for DVD scans

-iso
    Create an ISO image out of the DVD content and store it to disk.

-bpp
    This is a informative option which lets you calculate the Bits Per Pixel (bpp) values for various resolutions. The bpp value represents how much bits each pixel gets. The higher the bpp value is, the more distinct colors the pixels will have which leads to a higher overall picture quality. Note that these values are not absolute! For video content with a lot of black in it, a bpp value of 0.14 may look very good. Video content with a lot of high motion scenes may still look bad with a bpp value of 0.20, so this really depends on the content you are willing to encode and the resolution you choose when scaling down.

-bpb
    This option is similar to the -bpp one, except it calculates the Bits Per Block (bpb) values for various resolutions. The bpb value expresses how many bits each 16x16 macroblock gets. Good bpb values are between 37-52. As is the case with Bits Per Pixel, the bpb values are not absolute and depend on the video content you are willing to encode and the resolution you choose when scaling down.

<passmode> -p <preset>
    Use a predefined DivX quality preset, where <passmode> is the desired encoding mode (-1p or -2p or -fq) and <preset> is the desired quality preset to use (see below).
    You can choose from 8 different presets:

    nq --> Normal Quality (NQ) preset
        hq --> High Quality (HQ) preset
        vhq -> Very High Quality (VHQ) preset (recommended)
        ehq -> Extreme High Quality (EHQ) preset (recommended)
        uhq -> Ultra High Quality (UHQ) preset (recommended)
        ihq -> Insane High Quality (IHQ) preset
        hwp -> Stand-alone HW compatible (HWP) preset
        ps3 -> Sony PS3 compatible (PS3) preset

    Example of presets usage: divxenc -2p -p vhq
        The above example will encode the DVD or input video file in 2-pass mode using the Very High Quality (VHQ) preset

--help
    Display built-in help of the divxenc script and exit

-v  Display version of the divxenc script and exit

SEE ALSO
mencoder(1), lsdvd(1), dvdxchap(1), lame(1), avisplit(1), transcode(1), mkvmerge(1), mp4box(1)

AUTHORS
divxenc was written by Grozdan Nikolov <neutrino8@gmail.com>

This manual page was written by the author of divxenc (see above)

BUG REPORTS
Please send all bug reports and/or questions/suggestions to <neutrino8@gmail.com>