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
Attachments
-
convert2flash.bat
(2.1 KB) -
added by sebastian 9 years ago.
Convert your movies to smaller flash videos