iPod Stuff
Over at ipod.mauricewalton.com, there’s some information and script examples for using DVB radio recordings with iTunes, iPods and Podcasts. This page is to support that. The site covers using the Hauppauge scheduler, MythTV, and the conversion and importing of recordings into iTunes, as well as maintaining an XML file that can be used to subscribe to your recordings through iTunes. I may tidy the code up a bit more if there’s the demand, otherwise, just use it as a starting point for your own efforts.
December 3, 2007 at 7:21 pm
I do it using poscastomatic + the script below.
ffmpeg does the all in one
dir=$1
file=$2
channame=`mysql -u mythtv -pmythtv -e “select name from channel where chanid=”$3″” -s –disable-column-names mythconverg`
title=`mysql -u mythtv -pmythtv -e “select title from recorded where basename=”\’$file\’”" -s –disable-column-names mythconverg`
description=`mysql -u mythtv -pmythtv -e “select description from recorded where basename=”\’$file\’”" -s –disable-column-names mythconverg`
starttime=$6
prefix=/home/mythtv/public_html/
mkdir -p “$prefix”"$channame”/”$4″
/usr/local/bin/ffmpeg -y -comment “$description” -author “$channame” -title “$title” -i $dir/$file -ab 160 -acodec mp3 “$prefix”"$channame”/”$4″/$file”.mp3″
cd /home/mythtv/podcastamatic1_3
cp podcastamatic.top podcastamatic.conf
echo “AudioPathServerSide \”/home/mythtv/public_html/”"$channame”"/”"$4″/\”"*.mp3″ >> podcastamatic.conf
echo “Title ” “$title” >> podcastamatic.conf
echo “Description ” “$description” >> podcastamatic.conf
echo “iTunesAuthor ” “$channame” >> podcastamatic.conf
echo http://saturn.inferiorplanet.co.uk/~mythtv/“”$channame”"/”"$4″/” > uri
sed ‘s/ /%20/g’ uri > url
url=`cat url`
echo “AudioPathWebSide “$url >> podcastamatic.conf
# HTMLServerSide /home/podcast/index.html
# Where does the generated HTML page go on the server?
#HTMLServerSide /home/mythtv/public_html/BBC Radio 4/Bespoken/index.html
echo “HTMLServerSide /home/mythtv/public_html/”"$channame”"/”"$4″/index.html >> podcastamatic.conf
# XML file name full or relative path on server side
#XMLPathServerSide /home/podcast/rss.xml
echo “XMLServerSide /home/mythtv/public_html/”"$channame”"/”"$4″/rss.xml >> podcastamatic.conf
cat podcastamatic.bot >> podcastamatic.conf
perl podcastamatic.pl