2009
06.06

Podcast Encoding Script

This script is what I use to encode Ten Buck Review.  To use it you need to add eyeD3 and mplayer to your system to use it.  Hope you find it usefull.

#
#!/bin/bash
#
# Read in the variable values used in tag information but do not check for errors. Just put it in the tag.
#
# If you typo too bad. If you find you want error checking I’ll add it but bash’s comparison operators are
clunky and it’s late. Need to be more awake for that.

echo ” Prompting for tag information now… ”
read -p “<input file – use the full name of the file> ” INPUT
#read -p “<output format> ” FORMAT
read -p “<output file> ” OUTPUT
read -p “<episode number> ” NUMBER
read -p “<date> ” DATE
read -p “<episode title> ” TITLE
read -p “<year> ” YEAR
read -p ‘<artist> ‘ ARTIST
read -p ‘<album> ‘ ALBUM
#HOST=’example.com’
read -p “<comment>” COMMENT
read -p “<image file name>” IMAGE
#DIR=’public_html/audio’
echo “making files with your tags. If you typoed it’s too late now.”

mplayer $INPUT -vc null -vo null -af volnorm -ao pcm:file=temp.wav

lame temp.wav -b 128 -m s -h -p –strictly-enforce-ISO $OUTPUT$NUMBER.mp3

oggenc temp.wav -q3 –title “$TITLE” –date “$YEAR” –artist “$ARTIST” –album “$ALBUM” –genre “Podcast” –tracknum “$NUMBER” –output=$OUTPUT$NUMBER.ogg

eyeD3 -a “$ARTIST” -A “$ALBUM” -t “$TITLE” -n $NUMBER -G Podcast -Y “$YEAR” –comment=::”$COMMENT” –add-image=$IMAGE:PUBLISHER_LOGO $OUTPUT$NUMBER.mp3

#mplayer tllts_298-05-13-09.wav -vc null -vo null -af volnorm -ao pcm:file=”tllts_298-05-13-09.out.wav

No Comment.

Add Your Comment