Converter settings

From DreamHost
Revision as of 10:05, 1 November 2011 by Andrew F (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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/bin/ffmpeg \
   -i INPUT.AVI \
   -s WIDTHxHEIGHT \
   -f image2 -vframes 1 -ss SNAPSHOT-TIME \
   OUTPUT.JPEG

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