September 14, 2009 Archives

2009-09-14 00:02:10

A work in progress

Here is the draft wrapper Bash script that is being worked up to make video posts easier:
#!/bin/bash
#
# Blip Prep -- Tool to prepare video files for upload to blip.tv for distribution
#
# Usage: blipprep.sh [source filename] [name pattern for output files to bear with their differing extensions]
#
# Dependency: ffmpeg. Such can be secured at http://ffmpeg.org/download.html. It may be best to build a
# current version from SVN.
#

echo "Go get some coffee as this is going to take quite a while"

# Let's make the Flash Video File

ffmpeg -i $1 -acodec mp3 -ar 22050 -ab 32 -f flv -s 320x240 $2.flv

# Let's make the file for iPods

ffmpeg -i $1 -f mp4 -vcodec mpeg4 -maxrate 1000k -b 700k -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec libfaac -ab 192k -s 320x240 -aspect 4:3 $2.m4v

# Let's make the MP3 audio version

ffmpeg -i $1 -vn -acodec mp3 -ar 44100 -ab 128k -ac 2 $2.mp3

# Let's make the low-bandwidth MP3 audio version

ffmpeg -i $1 -vn -acodec mp3 -ar 11025 -ab 16k -ac 1 $2-lowbandwidth.mp3

# Let's make the Ogg Vorbis audio version

ffmpeg -i $1 -vn -acodec vorbis -ar 44100 -ab 128k -ac 2 $2.ogg

Posted by Stephen Michael Kellat | Permanent Link