Converter settings

From DreamHost

Jump to: navigation, search
The instructions provided in this article or section are considered advanced.

You are expected to be knowledgeable in the UNIX shell.
Support for these instructions is not available from DreamHost tech support.
Server changes may cause this to break. Be prepared to troubleshoot this yourself if this happens.
We seriously aren't kidding about this. Read the blinky part again.

Here are the command-line settings used by our Flash Media Player conversion tool (Flash Media):

Command line

Bold words must be replaced with values specific to your file.

# Snapshot frame generation
nice /usr/local/dh/bin/ffmpeg \
   -i INPUT.AVI \
   -s WIDTHxHEIGHT \
   -vcodec image2 -vframes 1 -ss SNAPSHOT-TIME \
   OUTPUT.JPEG

# Video encoding
nice /usr/local/dh/bin/ffmpeg \
   -i INPUT.AVI \
   -s WIDTHxHEIGHT \
   -acodec libmp3lame -ab 96k -ar 44100 \
   -vcodec libx264 -vpre x264.presets -crf 30 \
   -f flv OUTPUT.FLV

x264.presets

This file must be placed temporarily in the same directory as the video.

coder=1
flags=+loop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=hex
subq=7
me_range=16
g=250
keyint_min=25
sc_threshold=40
i_qfactor=0.71
b_strategy=1
qcomp=0.6
qmin=10
qmax=51
qdiff=4
bf=3
refs=3
directpred=1
trellis=1
flags2=+mixed_refs+wpred+dct8x8+fastpskip
Personal tools