|
Sunday, 07 November 2010 16:00 |
This script is useful for create an AVI video from a mp3 file to upload to Youtube.
A image will be placed in a black background with mp3 title in white
Author: Eduardo Mucelli R. Oliveira
Based on ideas and codes from http://ubuntuforums.org/archive/index.php/t-1244112.html and http://www.crimulus.com/2010/01/21/linux-bash-script-convert-mp3-to-avi-with-static-image-command-line
#!/bin/bash
FFMPEG=`which ffmpeg`
FPS=1 # for a youtube video from a mp3, it is enough
if [ "$FFMPEG" = "" ] ; then
echo "Please install ffmpeg.";
exit 0;
fi
if [ $# != 2 ] ; then
echo "Usage: $0 ";
exit 0;
fi
if [ ! -f $1 ] ; then
echo "Source mp3 '$2' not found.";
exit 0;
fi
if [ -f $2 ] ; then
echo "Output file '$2' exists. Overwrite? (y/n)";
read CONFIRM
if [ "$CONFIRM" == "y" ] ; then
echo "Overwriting '$2'"
else
if [ "$CONFIRM" == "Y" ] ; then
echo "Overwriting '$2'"
else
echo "Operation canceled.";
exit 0;
fi
fi
fi
TITLE=`$FFMPEG -i $1 2>&1 | grep TIT2 | cut -d: -f 2 | tr -d "'"` # get the title and remove "'" chars
IMAGE=/tmp/$RANDOM.gif
convert -size 1024x240 xc:black -fill white -draw "gravity Center text 0,0 '$TITLE'" $IMAGE # generate a black-background image with mp3 title in white
TIME=`$FFMPEG -i $1 2>&1 | grep Duration | cut -f1 -d, | cut -f2,3,4,5 -d:`
$FFMPEG -r $FPS -loop_input -i $IMAGE -i $1 -acodec copy -y -t $TIME $2
rm $IMAGE
 Read more: |
|
Wednesday, 27 October 2010 04:00 |
 | About Music Man
Take advantage of the easy way to rip, convert, burn and play with this digital music software for Mac OS X. Music Man includes all the features you need from a MP3, WMA, WAV, M4A, Ogg Vorbis Converter, Ripper, Burner, Player. Rip from Audio CD. Convert most formats - Audio CD, AIFF, MP3, unprotected WMA, WAV, AAC, M4A,M4B, MP2, midi and Ogg Vorbis formats. Burn to Audio CD, MP3 CD, DVD or to USB Flash Drive. Burn an MP3 CD and get 10 hours of music on 1 CD, 50 hours on an MP3 DVD.
Using variable burn quality, get 1 to 4 hours of busic on a 64mb USB Flash Drive. Play music files, CDs and directly from USB Flash Player. Get the features you want - easy to use, easy navigation of all disks to locate music files, store play lists to easily burn another copy of the CD, convert music to mono, make an MP3 clip. (Does not convert DRM protected music.) Also includes in ID3 tag editor, will make clip, will make iPhone Ringtone. |
Read more: |
|
|
Tuesday, 28 September 2010 07:00 |
 | About Finale Provides easy access to everything you need to compose, arrange, play, and print music. Whether you’re creating orchestra film scores or .MP3 files for your iPod, your music comes alive with Finale. |
Read more: |
|