MythTV

Notes on my MythTV setup

Building

Suse

Prereques

yast -i subversion qt3-devel free-ttf-fonts qt3-mysql qt3-devel-tools
LAME
wget http://internap.dl.sourceforge.net/sourceforge/lame/lame-3.96.1.tar.gz
tar xzvf lame-3.96.1.tar.gz
cd lame-3.96.1
./configure
make
make install
Path

Not sure why qmake is not included in the default PATH so we need to add it. The make scripts for mythtv call qmake.

echo "export PATH=$PATH:/usr/lib/qt3/bin/  " >> /etc/profile.local

Need to log back in or source the /etc/profile.local file.

source /etc/profile.local

Download

svn co http://svn.mythtv.org/svn/branches/release-0-18-fixes/mythtv
svn co http://svn.mythtv.org/svn/branches/release-0-18-fixes/mythplugins
svn co http://svn.mythtv.org/svn/branches/release-0-18-fixes/myththemes

Build

cd mythtv
./configure
qmake mythtv.pro
make
make install

Themes

cd myththemes
./configure
qmake myththemes.pro
make
make install

PSP

In order to convert Mythtv files to run on a PSP with firmware 2.0 you need a version of ffmpeg that is dated after 9/19/2005. Currently this means you need to use cvs. Before we build ffmpeg though a few other libs need to be installed. Not all of them are required but will make a much more usefull ffmpeg tool.

x264

This lib is required in order to use video files on the psp

apt-get install nasm
svn co svn://svn.videolan.org/x264/trunk x264
cd x264
make
make install

xvid

Xvid is a mpeg4 video endcoder just like divx. It is actually a fork of the the open source version of divx.

wget http://downloads.xvid.org/downloads/xvidcore-1.1.0-beta2.tar.gz
tar xzvf xvidcore-1.1.0-beta2.tar.gz
cd xvidcore-1.1.0-beta2/build/generic
./configure
make
make isntall

ffmpeg

cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
./configure --enable-gpl --enable-xvid --enable-x264 --enable-acc
make
make install

Conversion Script

/usr/local/bin/psptrans.sh

#!/bin/sh
 
# psptrans.sh should be called like so
# psptrans.sh %DIR% %FILE% 
 
# Need to update the script to pull in program name and such but those
# darn spaces are a bitch to deal with, at least when you don't shell
# script too much.
 
# MythTV Job varables
# %FILE%
# %DIR%
# %HOSTNAME%
# %TITLE%
# %SUBTITLE%
# %DESCRIPTION%
# %CATEGORY%
# %RECGROUP%
# %CHANID%
# %STARTTIME%
# %ENDTIME%
 
# clean up any files that are over so may days old (4)
# NOTE: if customizing you will have to change this path
# NOTE: tmpwatch can be used too if its included (redhat)
/usr/bin/find /vol/data/video/psp -ctime +4 | xargs -- rm -f --
 
# Convert file 
# these options seem to do the best job.
echo "Working on: $2"
echo ""
/usr/local/bin/ffmpeg -v 0 -y -i $1/$2 -f psp  -s 320x240 -r 14.985 -b 512 -acodec aac  -ar 24000 -ab 32  /vol/data/video/psp/$2
 
# These files are actually stored in a directory where mythweb has access them to them.
# This way the small files for the psp don't over write the actually files and they 
# can be accessed from the internet with out much problems.  Of course they are mpeg4
# files and the .nuv extention does confure people.
 
/var/www/sites/dokuwiki/data/pages/people/greg/notes/mythtv.txt · Last modified: 2009/04/11 22:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki