Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.
Last modified 7 years ago Last modified on 09/27/10 17:30:35

This page describes how to create a flash movie from your digitial camera video.

phTagr uses FFmpeg for converting videos to the flash format, but the upload of flash movies is recommended and saves disk space on the server side. This howto uses the commandline and could be used for Windows and Unix based operating systems.

The flash movie must fit the given video size of phTagr - otherwise phTagr scales the video down to its video size settings. By default phTagr has a video size of maximum 480 x 480.

Get FFmpeg

Windows

For Windows you can download ffmpeg from SourceForge and extract it to your movie folder.

*nix

For *nix systems fetch it from your package manager. Make sure that ffmpeg support the MP3 format which is mandatory for the audio stream of the flash file.

You can check the MP3 support by:

$ ffmpeg -h 2>&1 | grep mp3
  configuration: --enable-libmp3lame
$

Convert Your Media

ffmpeg -i FILE -s 480x360 -r 30 -b 768k -ar 22050 -ab 48k FILE.flv

This converts your video FILE to a flash video with the size of 480x360, a frame rate of 30. The video bitrate is 768 kbps, the audio sampling rate is 22050 Hz and the audio bit rate is 48.

Smaller Video

Following command creates smaller flash videos which are sufficient enough to save upload/loading time or bandwidth (and server space) without beeing too tiny.

ffmpeg -i FILE -s 320x240 -r 30 -b 256k -ar 22050 -ab 48k FILE.flv

Batch (Linux)

To convert all your AVI at once you can batch it easily.

for F in *.avi; do ffmpeg -i $F -s 480x360 -r 30 -b 768k -ar 22050 -ab 48k ${F/avi/flv}; done

Batch (Windows)

Following windows batch programm convert2flash.bat converts all videos (AVI, MPEG, MPG, MOV files) to smaller flash videos. Drag'n'drop the video files or directories over the batch file and all movies are converted to smaller flash videos.

The batch file assumes that ffmpeg.exe is located in the directory of the videos. Please download ffmpeg.exe from SourceForge and copy it to the same location as the batch file.

Video Thumbnail

See CreateVideoThumbnail

Attachments