Saturday, September 24, 2005

Upgrade mythtv in hopes of fixing lost audio

# yum install subversion

[root@myth mythtv]# svn co http://svn.mythtv.org/svn/branches/release-0-18-fixes/mythtv

"Checked out revision 7307."

Configure options:

[root@myth mythtv]# ./configure --help

Usage: configure [options]
Options: [defaults in brackets after descriptions]

Standard options:
--help print this message
--compile-type=CTYPE one of release, profile, debug [release]
--prefix=PREFIX install in PREFIX [/usr/local]
--disable-ccache disable compiler cache (ccache)
--disable-distcc disable distributed compilation (distcc)
Advanced compile options (experts only):
--extra-cflags=ECFLAGS add ECFLAGS to list of flags for C compile
--extra-cxxflags=ECXFLAGS add ECXXFLAGS to list of flags for C++ compile
--cpu=CPU only use instructions available on CPU [i686]
--tune=CPU tune instruction usage for a particular CPU [gene
ric]
--arch=CPU equivalent to "--cpu=CPU --tune=CPU"
--enable-proc-opt enable processor specific compilation
--disable-mmx disable mmx usage
--disable-altivec disable AltiVec usage
Advanced features (experts only):
--disable-audio-oss disable OSS audio support
--disable-audio-alsa disable ALSA audio support
--disable-audio-arts disable aRts audio support
--disable-audio-jack disable JACK audio support
--disable-lirc disable lirc support (Infrared Remotes)
--disable-joystick-menu disable joystick menu
--disable-firewire disable support for FireWire cable boxes
--disable-ivtv disable ivtv support (PVR-250, PVR-350)
--enable-dvb enable DVB support (must supply header directory)
--dvb-path=HDRLOC location of directory containing
'linux/dvb/frontend.h', not the
directory with frontend.h [/usr/src/linux-2.6.11-1.14_FC3/include]
--enable-dvb-eit enable DVB EIT support (--enable-dvb is required)
--disable-x11 disable X11 support
--disable-xrandr disable X11 resolution switching
--disable-xv disable XVideo (X11 video output accel.)
--enable-xvmc enable XvMC (Linux/BSD MPEG accel.)
--disable-xvmc-vld disable XvMC-VLD (VIA Epia MPEG accel.)
--enable-opengl-vsync enable OpenGL vsync method
--enable-directfb enable DirectFB (Linux non-X11 video)
--enable-directx enable DirectX (Microsoft video)
[root@myth mythtv]#


Run configure:

[root@myth mythtv]# ./configure --disable-lirc --disable-joystick-menu
# Basic Settings
Compile type release
Compiler cache no
DistCC no
Install prefix /usr/local
CPU x86 (athlon)
Big Endian no
MMX enabled yes
Vector Builtins no

# Input Support
Joystick menu no
lirc support no
ivtv support yes
FireWire support no
DVB support no [/usr/src/linux-2.6.11-1.14_FC3/include]

# Sound Output Support
OSS support yes
ALSA support yes
aRts support no
JACK support no

# Video Output Support
x11 support yes
xrandr support yes
xv support yes
XvMC support no
XvMC VLD support no
OpenGL vsync no
DirectFB no

Creating config.mak and config.h
[root@myth mythtv]#


***NOTE! I forgot to compile with DVB support (see below).

Run qmake and make:
$ qmake mythtv.pro
[make clean, if necessary to clear previous compile]
$ make

Install:
su
make install

nohup mythbackend > /tmp/mythbackend.log 2>&1 &

---

tail -f mythbackend.log
2005-09-24 17:59:40.468 New DB connection, total: 1
Starting up as the master server.
2005-09-24 17:59:40.569 New DB connection, total: 2
2005-09-24 17:59:40.646 ERROR: DVB Card configured on 0, but MythTV was not compiled
with DVB support. Please, recompile MythTV with DVB support
or remove the card from configuration and restart MythTV.
2005-09-24 17:59:40.649 ERROR: DVB Card configured on 1, but MythTV was not compiled
with DVB support. Please, recompile MythTV with DVB support
or remove the card from configuration and restart MythTV.
2005-09-24 17:59:40.650 New DB scheduler connection
2005-09-24 17:59:40.680 mythbackend version: 0.18.1.20050523-1 www.mythtv.org
2005-09-24 17:59:40.680 Enabled verbose msgs : important general
2005-09-24 17:59:42.663 Reschedule requested for id -1.
2005-09-24 17:59:43.600 Scheduled 145 items in 0.9 = 0.42 match + 0.52 place
2005-09-24 17:59:43.623 Recording starts soon, AUTO-Startup assumed
2005-09-24 17:59:43.626 Started recording "NBC Nightly News" on channel: 1039 on cardid:
1, sourceid 1
2005-09-24 17:59:50.683 New DB connection, total: 3
2005-09-24 18:00:02.682 Started recording "CBS Evening News" on channel: 1034 on cardid:
2, sourceid 1



---
Recompile with DVB support:

make clean

[root@myth mythtv]# ./configure --disable-lirc --disable-joystick-menu --enable-dvb
DVB location does not contain linux/dvb/frontend.h [/usr/src/linux-2.6.11-1.14_FC3/include]

Find frontend.h:
[root@myth tmp]# find /usr -name "frontend.*" -print
/usr/include/linux/dvb/frontend.h
[root@myth tmp]#

Configure again:

[root@myth mythtv]# ./configure --disable-lirc --disable-joystick-menu --enable-dvb --dvb-path=/usr/include
# Basic Settings
Compile type release
Compiler cache no
DistCC no
Install prefix /usr/local
CPU x86 (athlon)
Big Endian no
MMX enabled yes
Vector Builtins no

# Input Support
Joystick menu no
lirc support no
ivtv support yes
FireWire support no
DVB support yes [/usr/include]

# Sound Output Support
OSS support yes
ALSA support yes
aRts support no
JACK support no

# Video Output Support
x11 support yes
xrandr support yes
xv support yes
XvMC support no
XvMC VLD support no
OpenGL vsync no
DirectFB no

Creating config.mak and config.h

---
How did I get the dvb .h files? file timestamps are:

[root@myth dvb]# ls -l
total 52
-rw-r--r-- 1 root root 4605 May 18 11:28 audio.h
-rw-r--r-- 1 root root 3150 May 18 11:28 ca.h
-rw-r--r-- 1 root root 4227 May 18 11:28 dmx.h
-rw-r--r-- 1 root root 7194 May 18 11:28 frontend.h
-rw-r--r-- 1 root root 1598 May 18 11:28 net.h
-rw-r--r-- 1 root root 5937 May 18 11:28 osd.h
-rw-r--r-- 1 root root 1017 May 18 11:28 version.h
-rw-r--r-- 1 root root 6855 May 18 11:28 video.h

From http://www.linuxtv.org :
"The LinuxTV project develops and maintains the DVB driver subsystem which is included in the Linux 2.6.x kernel."

Ah ha, May 18th was kernel upgrade to 2.6.11 so got .h files when that happened.

---
make clean
qmake mythtv.pro
make
make install


nohup mythbackend > /tmp/mythbackend.log 2>&1 &

2005-09-24 18:56:07.925 New DB connection, total: 1
Starting up as the master server.
2005-09-24 18:56:07.937 New DB connection, total: 2
2005-09-24 18:56:07.944 DVB#0 DVB SI Table Parser Started
2005-09-24 18:56:07.945 DVB#0 Using DVB card 0, with frontend pcHDTV HD3000 HDTV.
2005-09-24 18:56:07.947 New DB connection, total: 3
2005-09-24 18:56:09.204 DVB#0 DVB signal cf9c | snr f927 | ber 0 | unc 0
2005-09-24 18:56:09.205 DVB#0 Status: LOCK.
2005-09-24 18:56:09.205 DVB#0 Multiplex Locked
2005-09-24 18:56:10.301 DVB#0 Successfully tuned to channel 11_1.
2005-09-24 18:56:10.308 DVB#1 DVB SI Table Parser Started
2005-09-24 18:56:10.308 DVB#1 Using DVB card 1, with frontend pcHDTV HD3000 HDTV.
2005-09-24 18:56:10.593 DVB#1 DVB signal 3999 | snr dedb | ber 0 | unc 0
2005-09-24 18:56:10.593 DVB#1 Status: LOCK.
2005-09-24 18:56:10.593 DVB#1 Multiplex Locked
2005-09-24 18:56:11.602 DVB#1 Successfully tuned to channel 11_1.
2005-09-24 18:56:11.606 New DB scheduler connection
2005-09-24 18:56:11.611 mythbackend version: 0.18.1.20050523-1 www.mythtv.org
2005-09-24 18:56:11.611 Enabled verbose msgs : important general
2005-09-24 18:56:13.612 Reschedule requested for id -1.
2005-09-24 18:56:13.999 Scheduled 142 items in 0.4 = 0.06 match + 0.33 place
2005-09-24 18:56:14.002 Recording starts soon, AUTO-Startup assumed
2005-09-24 18:56:14.005 Started recording "CBS 5 Eyewitness News at 6:30PM" on channel: 1
034 on cardid: 1, sourceid 1
2005-09-24 18:56:14.754 DVB#0 DVB signal b0e4 | snr f809 | ber 0 | unc 0
2005-09-24 18:56:14.755 DVB#0 Status: LOCK.
2005-09-24 18:56:14.755 DVB#0 Multiplex Locked
2005-09-24 18:56:15.745 DVB#0 Successfully tuned to channel 5_1.
2005-09-24 18:56:15.816 Changing from None to RecordingOnly
2005-09-24 18:56:15.865 DVB#0 Recorder: Card opened successfully (using PS mode).
2005-09-24 18:56:15.874 DVB#0 Data read from DMX - This is for debugging with transform.c
2005-09-24 19:00:00.002 Finished recording CBS 5 Eyewitness News at 6:30PM on channel: 10
34
2005-09-24 19:00:00.053 Changing from RecordingOnly to None
2005-09-24 19:00:00.062 Closing DVB recorder
2005-09-24 19:00:02.529 Started recording "The King of Queens" on channel: 1034 on cardid
: 1, sourceid 1
2005-09-24 19:00:02.680 Changing from None to RecordingOnly
2005-09-24 19:00:02.698 DVB#0 Recorder: Card opened successfully (using PS mode).
2005-09-24 19:00:02.703 DVB#0 Data read from DMX - This is for debugging with transform.c
2005-09-24 19:00:03.531 Reschedule requested for id 0.
2005-09-24 19:00:03.902 Scheduled 142 items in 0.4 = 0.00 match + 0.37 place

0 Comments:

Post a Comment

<< Home