Converter settings

From DreamHost
Jump to: navigation, search
WARNING: POSSIBLE OUTDATED INFORMATION!
DreamHost does not directly support any of the features described on this page and is not responsible for keeping this content updated or accurate. Use at your own risk!
There may be additional information on the talk page.
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 performed by DreamHost may break your modifications. You, as the user, are responsible for troubleshooting and resolving issues with your customizations.

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