PDA

View Full Version : MythTivo now available



cwingert
04-09-2003, 02:04 PM
MythTivo is essentially a plugin for the MythTV architecture that is
capable of playback of TiVo streams located on a remote TiVo.
A TiVo ethernet card is required.

mythtivo-1.2.tar.gz
Is the plugin that retrieves and displays the Now Showing list. Please
check mythtivo-settings.txt for the various options.

I also have modified mplayer to playback TiVo streams natively both
stored locally and on a remote TiVo.

MPlayer-20030408-tivo-0.1.tar.gz

Note : I plan on submitting these patches to mainstream mplayer next week.

Download at :
http://tivo-mplayer.sf.net

ScreenShots :
http://tivo-mplayer.sourceforge.net/mythtivo-mainmenu.png
http://tivo-mplayer.sourceforge.net/mythtivo-tivoselect.png
http://tivo-mplayer.sourceforge.net/mythtivo-showlist.png

cwingert
04-09-2003, 02:20 PM
NA

A.C.
04-09-2003, 03:22 PM
I just compiled and ran it on my PIII 600 laptop with your sample Freshgear TY (I'm at work). It worked well. I has to use the -ao switch for my audio to come up. I CAN'T wait to go home and try this out!!!! Thanks a ton. I'd love to see a Windows version.

cwingert
04-09-2003, 03:24 PM
Windows works fairly well. See the Cygwin Build.



Originally posted by A.C.
I just compiled and ran it on my PIII 600 laptop with your sample Freshgear TY (I'm at work). It worked well. I has to use the -ao switch for my audio to come up. I CAN'T wait to go home and try this out!!!! Thanks a ton. I'd love to see a Windows version.

cwingert
04-09-2003, 03:49 PM
-

JJBliss
04-09-2003, 10:27 PM
Anyone have pre-compiled Windows executables for Mplayer?

sirfergy
04-18-2003, 09:13 PM
Edit! I finally just went w/ the source install of mythtv and mythtivo compiled just fine.

sw25481
07-06-2003, 05:27 PM
I've just tried compiling mythtivo on a Hush PC, (Via C3 cpu, epia mother board) on Redhat 9 with all the updates and Mythtv 0.10 and I am having trouble. Could anybody help start me off debugging this. I have changed pentiumpro to i586 in the make file. Here is the final error, I have included a complete output as an attachment.

Thank you in advance for any help

Scott

g++ -c -pipe -Wall -W -O3 -march=i586 -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -finline-functions -D_REENTRANT -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.1/mkspecs/default -I. -I/usr/local/include -I/usr/lib/qt-3.1/include -o main.o main.cpp
In file included from main.cpp:19:
databasebox.h:17: parse error before `{' token
databasebox.h:18: virtual outside class declaration
databasebox.h:18: non-member function `const char* className()' cannot have `
const' method qualifier
databasebox.h:18: virtual outside class declaration
databasebox.h:18: virtual outside class declaration
databasebox.h:18: virtual outside class declaration
databasebox.h:18: virtual outside class declaration
databasebox.h: In function `QObject* qObject()':
databasebox.h:18: invalid use of `this' in non-member function
databasebox.h: At global scope:
databasebox.h:18: parse error before `private'
databasebox.h:27: parse error before `private'
databasebox.h:40: parse error before `}' token
main.cpp: In function `void startDatabaseTree(QSqlDatabase*,
QValueList<Metadata>*)':
main.cpp:36: variable `DatabaseBox dbbox' has initializer but incomplete type
main.cpp: In function `int main(int, char**)':
main.cpp:63: no matching function for call to `MythContext::MythContext()'
/usr/local/include/mythtv/mythcontext.h:61: candidates are:
MythContext::MythContext(const MythContext&)
/usr/local/include/mythtv/mythcontext.h:64:
MythContext::MythContext(const QString&, bool = true)
showlist.h: At top level:
databasebox.h:18: warning: `bool qt_static_property(QObject*, int, int,
QVariant*)' declared `static' but never defined
databasebox.h:18: warning: `QMetaObject* staticMetaObject()' declared `static'
but never defined
databasebox.h:18: warning: `QString tr(const char*, const char*)' declared
`static' but never defined
databasebox.h:18: warning: `QString trUtf8(const char*, const char*)' declared
`static' but never defined
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/Software/Linux/Downloads/mythtv/Mythtv-0.10/mythtivo/mythtivo'
make: *** [sub-mythtivo] Error 2

cwingert
09-12-2003, 02:51 PM
I updated MythTiVo for the new plugin architecture.

http://tivo-mplayer.sourceforge.net/mythtivo.html

Chainsaw76
01-07-2004, 06:31 PM
Epia 9000m C3 Red hat 9. MythTV latest (as of 1/7/04) up and running.

Anyone have any ideas?

When I try to make Mythtivo I get the same errors:

make[1]: Entering directory `/home/jason/dloads/mythtivo/mythtivo'
g++ -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.1/mkspecs/default -I. -I/usr/local/include -I/usr/lib/qt-3.1/include -o main.o main.cpp
In file included from main.cpp:18:
databasebox.h:9:32: mythtv/mythwidgets.h: No such file or directory
databasebox.h:10:32: mythtv/mythdialogs.h: No such file or directory
In file included from main.cpp:18:
databasebox.h:19: parse error before `{' token
databasebox.h:20: virtual outside class declaration
databasebox.h:20: non-member function `const char* className()' cannot have `
const' method qualifier
databasebox.h:20: virtual outside class declaration
databasebox.h:20: virtual outside class declaration
databasebox.h:20: virtual outside class declaration
databasebox.h:20: virtual outside class declaration
databasebox.h: In function `QObject* qObject()':
databasebox.h:20: invalid use of `this' in non-member function
databasebox.h: At global scope:
databasebox.h:20: parse error before `private'
databasebox.h:32: parse error before `{' token
databasebox.h:33: virtual outside class declaration
databasebox.h:33: non-member function `const char* className()' cannot have `
const' method qualifier
databasebox.h:33: virtual outside class declaration
databasebox.h:33: virtual outside class declaration
databasebox.h:33: virtual outside class declaration
databasebox.h:33: virtual outside class declaration
databasebox.h: In function `QObject* qObject()':
databasebox.h:33: redefinition of `QObject* qObject()'
databasebox.h:20: `QObject* qObject()' previously defined here
databasebox.h:33: redefinition of `QObject* qObject()'
databasebox.h:20: `QObject* qObject()' previously defined here
databasebox.h:33: invalid use of `this' in non-member function
databasebox.h: At global scope:
databasebox.h:33: default argument given for parameter 2 of `QString tr(const
char*, const char* = 0)'
databasebox.h:20: after previous specification in `QString tr(const char*,
const char* = 0)'
databasebox.h:33: default argument given for parameter 2 of `QString
trUtf8(const char*, const char* = 0)'
databasebox.h:20: after previous specification in `QString trUtf8(const char*,
const char* = 0)'
databasebox.h:33: parse error before `private'
databasebox.h:42: parse error before `protected'
databasebox.h:58: parse error before `}' token
main.cpp:20:31: mythtv/themedmenu.h: No such file or directory
main.cpp:21:32: mythtv/mythcontext.h: No such file or directory
main.cpp:22:32: mythtv/mythdialogs.h: No such file or directory
main.cpp:23:31: mythtv/mythplugin.h: No such file or directory
main.cpp: In function `int mythplugin_init(const char*)':
main.cpp:34: `gContext' undeclared (first use this function)
main.cpp:34: (Each undeclared identifier is reported only once for each
function it appears in.)
main.cpp:35: `MYTH_BINARY_VERSION' undeclared (first use this function)
main.cpp: At global scope:
main.cpp:40: type specifier omitted for parameter `MythMainWindow'
main.cpp:40: parse error before `*' token
main.cpp: In function `void startDatabaseTree(QSqlDatabase*,
QValueList<Metadata>*)':
main.cpp:88: variable `DatabaseBox dbbox' has initializer but incomplete type
main.cpp: At global scope:
main.cpp:96: type specifier omitted for parameter `MythMainWindow'
main.cpp:96: parse error before `*' token
databasebox.h:33: warning: `bool qt_static_property(QObject*, int, int,
QVariant*)' declared `static' but never defined
databasebox.h:33: warning: `QMetaObject* staticMetaObject()' declared `static'
but never defined
databasebox.h:33: warning: `QString tr(const char*, const char*)' declared
`static' but never defined
databasebox.h:33: warning: `QString trUtf8(const char*, const char*)' declared
`static' but never defined
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/jason/dloads/mythtivo/mythtivo'
make: *** [sub-mythtivo] Error 2

donmc
01-07-2004, 06:51 PM
ScreenShots :
http://tivo-mplayer.sourceforge.net/mythtivo-mainmenu.png
http://tivo-mplayer.sourceforge.net/mythtivo-tivoselect.png
http://tivo-mplayer.sourceforge.net/mythtivo-showlist.png

Should be:
http://tivo-mplayer.sourceforge.net/screenshots/mythtivo-mainmenu.png
http://tivo-mplayer.sourceforge.net/screenshots/mythtivo-tivoselect.png
http://tivo-mplayer.sourceforge.net/screenshots/mythtivo-showlist.png

Vegas
04-20-2005, 07:40 PM
Finally got this to build and run with my Mythtv box and Tivo's. Heres how I got it going.

First a little backround about my systems.
Mythtv box: Celeron 2.6Ghz 512 ram 540 gig drive space, running Fedora Core 3 and Mythtv ver .17
Tivos: 3 HDVR2's running 4.01 and 6.2

********************************
Mythtivo compile and install

Download mythtivo-1.5.tar.gz to some dir then
cd /some/dir
tar xzvf mythtivo-1.5.tar.gz

This will unpack the source into mythtivo. Now per the readme all you should have to do is cd into the mythtivo dir and type make. However when I do this all it does is create an empty dir called mythvideo and give the following error:

Error processing project file: /home/mythtv/mythtivo/mythvideo/mythvideo.pro
make: *** [mythvideo/Makefile] Error 2

So, here is how I got this to build and install.

1. In the mythtivo dir delete Makefile and mythtivo.pro. These two files are not needed. There is another mythtivo.pro in the mythtivo/mythtivo dir, we will be using that one for the build and it will create a new Makefile.

2. We need to make some edits to the file /mythtivo/settings.pro.
Near the top find the line:
PREFIX = /usr/local
This needs to point to your installation of mythtv. If yours is in /usr/local/share/mythtv and /usr/local/lib/mythtv then leave this line as is.
My installation is in /usr/share/mythtv and /usr/lib/mythtv so I had to change this line to:
PREFIX = /usr

3. Also update march on these two lines. (This may not be necessary, mine compiled ok with pentiumpro) but I changed it to i586 anyway.


release {
QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentiumpro -fomit-frame-pointer
QMAKE_CFLAGS_RELEASE = -O3 -march=pentiumpro -fomit-frame-pointer
}

After the changes you should have:


release {
QMAKE_CXXFLAGS_RELEASE = -O3 -march=i586 -fomit-frame-pointer
QMAKE_CFLAGS_RELEASE = -O3 -march=i586 -fomit-frame-pointer
}

4. cd into the mythtivo/mythtivo dir and open showlist.cpp in your favorite editor.
Your going to need to change the path to tivo's nowshowing list. I don't remember at what software version this changed but I'm running 4.01 and 6.2 and mythtivo could not get the list.
Go to lines 63 and 65 you should find the following:


if ( mfs_resolve( "/Recording/NowShowingByTitle" ) != 0 )
{
path = "/Recording/NowShowingByTitle";
}

Change these lines to:


if ( mfs_resolve( "/Recording/NowShowingByClassic" ) != 0 )
{
path = "/Recording/NowShowingByClassic";
}

5. Edit mythtivo/mythtivo/mythtivo-settings.txt per the readme to set the names and ip addresses of your tivos.
I also commented out the following line:

#default_helper=mplayer -vm -quiet -fs -sb 393216 -aop list=volnorm %s

and replaced it with:


default_helper=vlc --intf=lirc -f -vstream-cache=16384 %s vlc:quit

because I am using vlc in place of mplayer to stream from the tivos.

Save the file and your ready to build.

6. cd to mythtivo/mythtivo

Type:

qmake mythtivo.pro
make

su
(enter password)

make install

mythtivo should compile and install.

7. You have to add some code to your mythtv theme and mainmenu files. The details are in the readme. After that just restart mythfrontend and Tivo should appear in the main menu.

Mythtv/Mythtivo combined with vlc has replaced my need for MRV. I've been running this for a couple of days and have had no problems. Looks like I'll be updating all my Tivos to 6.2
(For more info on Tivo enabled vlc see this thread: http://www.dealdatabase.com/forum/showthread.php?t=42332 )

Hope this helps someone

Vegas

loafy
08-22-2005, 11:03 PM
Vegas,

great detail on how to compile this interesting plug-in for MythTV. I'm still a noob on this - installing KnoppMyth 2 days ago with no real probs but really struggled with this feature.

Following your instructions, I was able to compile, install and see the Tivo icon in Myth. However when I go there, and hit return to get the listing from my Tivo - Myth hangs and then finally the front end crashes. I'm using the right IP address and I've confirmed I'm able to see tivo listings via a web browser. My Tivo is running 7.1 and when I use the browser set for https, I have to use "tivo" as a username and my MAK for the password.

Is there something more that needs to be done to access the tivo via this plug-in? I don't see where to provide my MAK key anywhere.

BTW - thanks for taking the time to document what you did - I was about to give up on this.

thanks!

Vegas
08-28-2005, 10:33 AM
Vegas,

Following your instructions, I was able to compile, install and see the Tivo icon in Myth. However when I go there, and hit return to get the listing from my Tivo - Myth hangs and then finally the front end crashes. I'm using the right IP address and I've confirmed I'm able to see tivo listings via a web browser. My Tivo is running 7.1 and when I use the browser set for https, I have to use "tivo" as a username and my MAK for the password.

Is there something more that needs to be done to access the tivo via this plug-in? I don't see where to provide my MAK key anywhere.



Did you make the change shown in step 4 of my post? Also check for typos.
You don't mention what hacks you have running but vserver is required on the tivo side.
For the streaming to work you will also need to have encryption turned off.
There should be no need to supply your MAK key.

Vegas

loafy
09-01-2005, 05:38 PM
Vegas -

thanks for the response. I did make the modification as directed in step 4 however I didn't realize that I need to run vserver on my tivo. My tivo is currently still vanilla and not hacked in any way.

I'll look into doing a vserver hack and disable encryption and see what comes up.

thanks again!

fltcaptriker
12-12-2005, 01:38 AM
This is probably a stupid question and Im going to keep searching for the answer while I wait to see if someone answers it. I am trying to configure MythTV I am in gentoo and just did a 'emerge mythtv' to get it installed however as I go through the documentation on installing it it wants you to setup tv tuner cards and such which if you are using it as a PVR as one might assume would be helpful however I just wanted to use it for MythTiVo so is there some magic way to get it working without going through and setting up a TV tuner?

-Matt

LoOoD
10-24-2006, 12:23 AM
Anyone have this working w/ mythtv .20?

stealthdave
10-25-2006, 07:19 PM
Anyone have this working w/ mythtv .20?

I'm still trying to upgrade to 0.20 on my Gentoo Mythbox, but 0.19 compiled just fine, so I'm sure that 0.20 will work as well. If you don't want to compile a special mplayer, you can use the patch that I posted elsewhere to use mfs_ftp instead of vserver for getting the feed into mplayer (search the forums, it's around somewhere).

UPDATE - Yes, MythTivo does compile and run just fine on 0.20. I had to define __NR__llseek in util.c in order to get it to compile, but I don't know if that was because of my Gentoo environment or what. Regardless, it runs just fine. If it doesn't compile and you get an error message about __NR_llseek, try adding these lines to util.c:


#ifndef __NR__llseek
#define __NR__llseek 140
#endif

snake98
12-05-2006, 04:18 PM
I'm using ubuntu and myth .20, but I get an error when compling
Error processing project file: /home/myth/Desktop/mythtivo/mythvideo/mythvideo.pro

Could you point me in the right direction I installed mythvideo but have not tested it yet, but I did install mythvideo which was already compiled.

usa11usa
01-04-2007, 03:52 PM
ok I have tried and tried but no luck, i download then run the tar command like it said. but when i run the make command from the mythtivo dir i get this error.

[root@amontpellier-257-1-113-6 mythtivo]# make
make: *** No rule to make target `/mkspecs/linux-g++/qmake.conf', needed by `Makefile'. Stop.

can someone tell me what i'm doing wrong. tried it on rh9 fc4 fc5 get the same thing

usa11usa
01-04-2007, 07:51 PM
well i can run make now but get the following list of errors. any one have any idea

[root@amontpellier-257-1-113-6 mythtivo]# make
cd mythtivo && qmake -o Makefile
cd mythtivo && make -f Makefile
make[1]: Entering directory `/home/mythtv/mythtivo/mythtivo'
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o bitmap.o bitmap.c
bitmap.c: In function ‘bitmap_set’:
bitmap.c:31: warning: comparison between signed and unsigned
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3

usa11usa
01-04-2007, 07:52 PM
/mkspecs/default -I. -I/usr/local/include -I/include -o crc.o crc.c
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o export.o export.c
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o io.o io.c
io.c: In function ‘vserver_read_sectors’:
io.c:93: warning: comparison between signed and unsigned
io.c: In function ‘mfs_read_sectors’:
io.c:167: warning: comparison between signed and unsigned
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o mfs.o mfs.c
mfs.c: In function ‘mfs_load_inode’:
mfs.c:181: warning: comparison between signed and unsigned
mfs.c:194: warning: comparison between signed and unsigned
mfs.c:196: warning: comparison between signed and unsigned
mfs.c: In function ‘mfs_fsid_info’:
mfs.c:266: warning: comparison between signed and unsigned
mfs.c: In function ‘mfs_fsid_pread’:
mfs.c:317: warning: comparison between signed and unsigned
mfs.c:321: warning: comparison between signed and unsigned
mfs.c:323: warning: comparison between signed and unsigned
mfs.c: In function ‘mfs_dir’:
mfs.c:394: warning: pointer targets in initialization differ in signedness
mfs.c:401: warning: pointer targets in initialization differ in signedness
mfs.c:402: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
mfs.c:402: warning: pointer targets in passing argument 1 of ‘__strdup’ differ in signedness
mfs.c:428: warning: pointer targets in passing argument 2 of ‘mfs_dir’ differ in signedness
mfs.c: In function ‘mfs_resolve’:
mfs.c:496: warning: comparison between signed and unsigned
mfs.c:499: warning: comparison between signed and unsigned
mfs.c: In function ‘mfs_all_inodes’:
mfs.c:532: warning: comparison between signed and unsigned
mfs.c: In function ‘bitmap_fn’:
mfs.c:568: warning: comparison between signed and unsigned
mfs.c: In function ‘mfs_read_chunk’:
mfs.c:669: warning: comparison between signed and unsigned
mfs.c:673: warning: comparison between signed and unsigned
mfs.c:673: warning: comparison between signed and unsigned
mfs.c: In function ‘mfs_get_attribute’:
mfs.c:722: warning: pointer targets in assignment differ in signedness
mfs.c:723: warning: pointer targets in assignment differ in signedness
mfs.c:759: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
mfs.c:759: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness
mfs.c:760: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
mfs.c:769: warning: pointer targets in assignment differ in signedness
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o object.o object.c
object.c: In function ‘parse_attr’:
object.c:9: warning: unused parameter ‘obj_type’
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o partition.o partition.c
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o query.o query.c
query.c: In function ‘callback’:
query.c:43: warning: comparison between signed and unsigned
query.c: In function ‘query_part’:
query.c:39: warning: unused parameter ‘fsid’
query.c: At top level:
query.c:28: warning: ‘memdup’ defined but not used
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o schema.o schema.c
schema.c: In function ‘preload_schema’:
schema.c:85: warning: comparison between signed and unsigned
schema.c:43: warning: unused parameter ‘fname’
schema.c: In function ‘load_schema’:
schema.c:151: warning: unused parameter ‘fsid’
schema.c:167: warning: unused parameter ‘fsid’
schema.c: In function ‘dump_schema’:
schema.c:246: warning: unused parameter ‘f’
gcc -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o util.o util.c
g++ -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include -I/include -o main.o main.cpp
main.cpp:1:18: error: qdir.h: No such file or directory
main.cpp:5:26: error: qapplication.h: No such file or directory
main.cpp:6:26: error: qsqldatabase.h: No such file or directory
main.cpp:8:29: error: qsocketnotifier.h: No such file or directory
In file included from main.cpp:17:
metadata.h:4:21: error: qstring.h: No such file or directory
In file included from main.cpp:18:
databasebox.h:4:21: error: qwidget.h: No such file or directory
databasebox.h:5:21: error: qdialog.h: No such file or directory
databasebox.h:6:25: error: qstringlist.h: No such file or directory
databasebox.h:9:32: error: mythtv/mythwidgets.h: No such file or directory
databasebox.h:10:32: error: mythtv/mythdialogs.h: No such file or directory
main.cpp:20:31: error: mythtv/themedmenu.h: No such file or directory
main.cpp:21:32: error: mythtv/mythcontext.h: No such file or directory
main.cpp:23:31: error: mythtv/mythplugin.h: No such file or directory
metadata.h:13: error: expected `)' before ‘ldate’
metadata.h:59: error: ‘QString’ does not name a type
metadata.h:60: error: expected ‘,’ or ‘...’ before ‘&’ token
metadata.h:60: error: ISO C++ forbids declaration of ‘QString’ with no type
metadata.h:62: error: ‘QString’ does not name a type

usa11usa
01-04-2007, 07:52 PM
metadata.h:63: error: expected ‘,’ or ‘...’ before ‘&’ token
metadata.h:63: error: ISO C++ forbids declaration of ‘QString’ with no type
metadata.h:65: error: ‘QString’ does not name a type
metadata.h:66: error: expected ‘,’ or ‘...’ before ‘&’ token
metadata.h:66: error: ISO C++ forbids declaration of ‘QString’ with no type
metadata.h:68: error: ‘QString’ does not name a type
metadata.h:69: error: expected ‘,’ or ‘...’ before ‘&’ token
metadata.h:69: error: ISO C++ forbids declaration of ‘QString’ with no type
metadata.h:71: error: ‘QString’ does not name a type
metadata.h:72: error: expected ‘,’ or ‘...’ before ‘&’ token
metadata.h:72: error: ISO C++ forbids declaration of ‘QString’ with no type
metadata.h:74: error: ‘QString’ does not name a type
metadata.h:75: error: expected ‘,’ or ‘...’ before ‘&’ token
metadata.h:75: error: ISO C++ forbids declaration of ‘QString’ with no type
metadata.h:97: error: ‘QString’ does not name a type
metadata.h:98: error: ‘QString’ does not name a type
metadata.h:99: error: ‘QString’ does not name a type
metadata.h:100: error: ‘QString’ does not name a type
metadata.h:101: error: ‘QString’ does not name a type
metadata.h:102: error: ‘QString’ does not name a type
metadata.h: In copy constructor ‘Metadata::Metadata(const Metadata&)’:
metadata.h:43: error: ‘date’ was not declared in this scope
metadata.h:43: error: ‘const class Metadata’ has no member named ‘date’
metadata.h:44: error: ‘const class Metadata’ has no member named ‘time’
metadata.h:45: error: ‘title’ was not declared in this scope
metadata.h:45: error: ‘const class Metadata’ has no member named ‘title’
metadata.h:46: error: ‘episode’ was not declared in this scope
metadata.h:46: error: ‘const class Metadata’ has no member named ‘episode’
metadata.h:47: error: ‘callsign’ was not declared in this scope
metadata.h:47: error: ‘const class Metadata’ has no member named ‘callsign’
metadata.h:48: error: ‘tivo’ was not declared in this scope
metadata.h:48: error: ‘const class Metadata’ has no member named ‘tivo’
metadata.h: In member function ‘void Metadata::setDate(int)’:
metadata.h:60: error: ‘date’ was not declared in this scope
metadata.h:60: error: ‘ldate’ was not declared in this scope
metadata.h: At global scope:
metadata.h:60: warning: unused parameter ‘QString’
metadata.h: In member function ‘void Metadata::setTime(int)’:
metadata.h:63: error: ‘ltime’ was not declared in this scope
metadata.h: At global scope:
metadata.h:63: warning: unused parameter ‘QString’
metadata.h: In member function ‘void Metadata::setTitle(int)’:
metadata.h:66: error: ‘title’ was not declared in this scope
metadata.h:66: error: ‘ltitle’ was not declared in this scope
metadata.h: At global scope:
metadata.h:66: warning: unused parameter ‘QString’
metadata.h: In member function ‘void Metadata::setEpisode(int)’:
metadata.h:69: error: ‘episode’ was not declared in this scope
metadata.h:69: error: ‘lepisode’ was not declared in this scope
metadata.h: At global scope:
metadata.h:69: warning: unused parameter ‘QString’
metadata.h: In member function ‘void Metadata::setCallsign(int)’:
metadata.h:72: error: ‘callsign’ was not declared in this scope
metadata.h:72: error: ‘lcallsign’ was not declared in this scope
metadata.h: At global scope:
metadata.h:72: warning: unused parameter ‘QString’
metadata.h: In member function ‘void Metadata::setTivo(int)’:
metadata.h:75: error: ‘tivo’ was not declared in this scope
metadata.h:75: error: ‘ltivo’ was not declared in this scope
metadata.h: At global scope:
metadata.h:75: warning: unused parameter ‘QString’
databasebox.h:19: error: expected class-name before ‘{’ token
databasebox.h:20: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
databasebox.h:22: error: expected ‘;’ before ‘public’
databasebox.h:27: error: expected `;' before ‘protected’
databasebox.h:27: error: expected `:' before ‘slots’
databasebox.h:28: error: expected primary-expression before ‘void’
databasebox.h:28: error: ISO C++ forbids declaration of ‘slots’ with no type
databasebox.h:28: error: expected ‘;’ before ‘void’
databasebox.h:32: error: expected class-name before ‘{’ token
databasebox.h:33: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
databasebox.h:34: error: expected ‘;’ before ‘public’
databasebox.h:38: error: expected `:' before ‘slots’
databasebox.h:39: error: expected primary-expression before ‘void’
databasebox.h:39: error: ISO C++ forbids declaration of ‘slots’ with no type
databasebox.h:39: error: expected ‘;’ before ‘void’
databasebox.h:42: error: expected `:' before ‘slots’
databasebox.h:43: error: expected primary-expression before ‘void’
databasebox.h:43: error: ISO C++ forbids declaration of ‘slots’ with no type
databasebox.h:43: error: expected ‘;’ before ‘void’
databasebox.h:47: error: ‘QValueList’ has not been declared
databasebox.h:47: error: expected ‘,’ or ‘...’ before ‘<’ token
databasebox.h:49: error: ‘QPixmap’ does not name a type
databasebox.h:55: error: ISO C++ forbids declaration of ‘QValueList’ with no type
databasebox.h:55: error: expected ‘;’ before ‘<’ token
showlist.h:7: error: extra qualification ‘Showlist::’ on member ‘Showlist’
showlist.h:8: error: ‘QString’ has not been declared
showlist.h:8: error: ‘QString’ has not been declared
showlist.h:8: error: extra qualification ‘Showlist::’ on member ‘AddTiVo’
showlist.h:9: error: ISO C++ forbids declaration of ‘QValueList’ with no type
showlist.h:9: error: expected ‘;’ before ‘<’ token
showlist.h:14: error: extra qualification ‘Showlist::’ on member ‘CheckFile’
showlist.h:14: error: expected ‘;’ before ‘(’ token
showlist.h:15: error: ISO C++ forbids declaration of ‘QValueList’ with no type
showlist.h:15: error: expected ‘;’ before ‘<’ token
main.cpp: In function ‘int mythplugin_init(const char*)’:
main.cpp:34: error: ‘gContext’ was not declared in this scope
main.cpp:35: error: ‘MYTH_BINARY_VERSION’ was not declared in this scope
main.cpp: At global scope:
main.cpp:40: error: ‘MythMainWindow’ has not been declared
main.cpp: In function ‘int mythplugin_run()’:
main.cpp:54: error: incomplete type ‘QSqlDatabase’ used in nested name specifier
main.cpp:54: error: ‘gContext’ was not declared in this scope
main.cpp: At global scope:
main.cpp:86: error: ‘QValueList’ has not been declared
main.cpp:86: error: expected ‘,’ or ‘...’ before ‘<’ token
main.cpp: In function ‘void startDatabaseTree(QSqlDatabase*, int)’:
main.cpp:88: error: ‘showlist’ was not declared in this scope
main.cpp:88: error: ‘gContext’ was not declared in this scope
main.cpp:90: error: ‘qApp’ was not declared in this scope
main.cpp:92: error: ‘class DatabaseBox’ has no member named ‘exec’
main.cpp: At global scope:
main.cpp:96: error: ‘MythMainWindow’ has not been declared
main.cpp: In function ‘int mythtivo_main(QSqlDatabase*, int*, const char*)’:
main.cpp:103: error: ‘gContext’ was not declared in this scope
main.cpp:105: error: ‘QString’ was not declared in this scope
main.cpp:105: error: expected `;' before ‘whichTivo’
main.cpp:106: error: expected `;' before ‘tivoParms’
main.cpp:107: error: expected `;' before ‘tivoName’
main.cpp:108: error: expected `;' before ‘tivoIpaddress’
main.cpp:109: error: expected `;' before ‘tmp’
main.cpp:112: error: expected `;' before ‘nada’
main.cpp:116: error: ‘QValueList’ was not declared in this scope
main.cpp:116: error: expected primary-expression before ‘>’ token
main.cpp:116: error: ‘tivolist’ was not declared in this scope
main.cpp:117: error: expected primary-expression before ‘>’ token
main.cpp:117: error: ‘showlist’ was not declared in this scope
main.cpp:127: error: ‘whichTivo’ was not declared in this scope
main.cpp:128: error: ‘tivoParms’ was not declared in this scope
main.cpp:136: error: ‘tivoName’ was not declared in this scope
main.cpp:137: error: ‘tmp’ was not declared in this scope
main.cpp:138: error: ‘tivoIpaddress’ was not declared in this scope
main.cpp:144: error: ‘class Showlist’ has no member named ‘GetNowShowingList’
main.cpp:151: error: ‘whichTivo’ was not declared in this scope
main.cpp:152: error: ‘tivoParms’ was not declared in this scope
main.cpp:159: error: ‘tivoName’ was not declared in this scope
main.cpp:160: error: ‘tmp’ was not declared in this scope
main.cpp:161: error: ‘tivoIpaddress’ was not declared in this scope
main.cpp:165: error: ‘nada’ was not declared in this scope
main.cpp: At global scope:
main.cpp:97: warning: unused parameter ‘parent’
main.cpp:97: warning: unused parameter ‘name’
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/mythtv/mythtivo/mythtivo'
make: *** [sub-mythtivo] Error 2

snake98
01-09-2007, 07:25 PM
I'm using ubuntu and myth .20, but I get an error when compling
Error processing project file: /home/myth/Desktop/mythtivo/mythvideo/mythvideo.pro

Could you point me in the right direction I installed mythvideo but have not tested it yet, but I did install mythvideo which was already compiled.

Okay I got it qmake working following Vegas Instructions, but now I'm getting
main.cpp:20:31 erro: mythtv/themedmenu.h: No such file or direcotry

and exits on
make: *** [main.o] error 1

Any ideas, I have unbunt 6.10 and mythtivo 20 that I compiled myself

snake98
01-09-2007, 07:52 PM
Okay I got it qmake working following Vegas Instructions, but now I'm getting
main.cpp:20:31 erro: mythtv/themedmenu.h: No such file or direcotry

and exits on
make: *** [main.o] error 1

Any ideas, I have unbunt 6.10 and mythtivo 20 that I compiled myself

Okay I got those errors fixed make making linked files to mythtv directory, now this is the error I get

mythtv@mythtv-desktop:~/download/mythtivo/mythtivo$ make
g++ -c -pipe -Wall -W -O3 -march=i586 -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr/local\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/local/include -I/usr/include/qt3 -o main.o main.cpp
/usr/include/qt3/qsqldatabase.h:63: warning: ‘class QSqlDriverCreatorBase’ has virtual functions but non-virtual destructor
showlist.h:7: error: extra qualification ‘Showlist::’ on member ‘Showlist’
showlist.h:8: error: extra qualification ‘Showlist::’ on member ‘AddTiVo’
showlist.h:9: error: extra qualification ‘Showlist::’ on member ‘GetNowShowingList’
showlist.h:14: error: extra qualification ‘Showlist::’ on member ‘CheckFile’
main.cpp:97: warning: unused parameter ‘parent’
main.cpp:97: warning: unused parameter ‘name’
make: *** [main.o] Error 1

Thanks for for any info

snake98
01-09-2007, 08:09 PM
Okay I got those errors fixed make making linked files to mythtv directory, no this is the error I get

showlist.h:7: error: extra qualification ‘Showlist::’ on member ‘Showlist’
showlist.h:8: error: extra qualification ‘Showlist::’ on member ‘AddTiVo’
showlist.h:9: error: extra qualification ‘Showlist::’ on member ‘GetNowShowingList’
showlist.h:14: error: extra qualification ‘Showlist::’ on member ‘CheckFile’
main.cpp:97: warning: unused parameter ‘parent’
main.cpp:97: warning: unused parameter ‘name’
make: *** [main.o] Error 1

Thanks for for any info

Fixed this by editing the showlist.h file, here is what mine looks like

#ifndef SHOWLIST_H_
#define SHOWLIST_H_

class Showlist
{
public:
Showlist() {}
void AddTiVo( QString &name, QString &ipaddress );
QValueList<Metadata> GetNowShowingList()
{
return nowshowinglist;
};
private:
Metadata * CheckFile(QString &filename);
QValueList<Metadata> nowshowinglist;
};

#endif

snake98
01-09-2007, 09:21 PM
I got it compiled and installed, edit the mythtivo-settings, and can see the list when I click tivo. But when I click on either one myth exits out any ideas?

snake98
01-10-2007, 07:50 PM
I got it compiled and installed, edit the mythtivo-settings, and can see the list when I click tivo. But when I click on either one myth exits out any ideas?


I got it list the shows(vserver wasn't running), and mplayer works to watch a video, but when I click on a show to watch nothing happens, when hit space bar it turns red, but nothing happens anybody got any ideas?

snake98
01-11-2007, 08:43 PM
I got it list the shows(vserver wasn't running), and mplayer works to watch a video, but when I click on a show to watch nothing happens, when hit space bar it turns red, but nothing happens anybody got any ideas?

Okay I got it going, next time I need to read the insruction I had to get mplayer working with vstream support. and on Unbuntu 6.10 I had to add -ac ffmp3 and change -aop to -af and it work.

usa11usa
01-12-2007, 08:06 PM
well i got home one day last week and found my mythtv server in an odd state.come to find out the cpu fan just stopped and burned the cpu out. so i'm out to get a new system this weekend and give it a try one more time.

usa11usa
01-19-2007, 10:54 AM
Ok i did get this to compile and install. also made the changes to the menus in mythtv.

there just seems to be on problem when i go to the mythtivo. i see the tivos in the list but when clicked mythtv just shuts down. not just mythtivo it is mythtv that shuts down.

has anyone seen this or can you point me in the correct path on what to look for to fix it. i have searched but can not seem to find any help.

thanks

snake98
01-22-2007, 07:40 PM
Ok i did get this to compile and install. also made the changes to the menus in mythtv.

there just seems to be on problem when i go to the mythtivo. i see the tivos in the list but when clicked mythtv just shuts down. not just mythtivo it is mythtv that shuts down.

has anyone seen this or can you point me in the correct path on what to look for to fix it. i have searched but can not seem to find any help.

thanks

usa11usa,
Yes I had this problem, the wrong codec where install, run mythfrondent from a terminal, go to mythtivo run and let is crash out, then in ther terminal it will say what went wrong. My suggestion is to get mplayer working first before trying to get mythtivo working, since mplayer is a critical component.

usa11usa
01-23-2007, 11:33 AM
Ok I did that and fixed a few settings and cleaned up a few errors. But here is the error i'm getting when i try to play the movie. vserver is running on the tivo and mfs_ftp is running but dont think the mfs_ftp is needed but anyway. when i try to run it this is the last few errors i'm getting.

i'm going to look into it. but any help would be greate.. thanks for all the help so far.

nd:mplayer -vm -quiet -fs -sb 393216 -af list=volnorm tivo://90.0.0.201/1915978
MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1


93 audio & 211 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not open config files /root/.lircrc and /etc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
You will not be able to use your remote control.

Playing tivo://90.0.0.201/1915978.
File not found: '90.0.0.201/1915978'
Failed to open tivo://90.0.0.201/1915978.
No bind found for key 'c'.
No bind found for key 'l'.

snake98
01-25-2007, 12:27 PM
93 audio & 211 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not open config files /root/.lircrc and /etc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
You will not be able to use your remote control.


You can ignor those error unless you have joystick or a remote, I havn't set my up yet and I get those



Playing tivo://90.0.0.201/1915978.
File not found: '90.0.0.201/1915978'
Failed to open tivo://90.0.0.201/1915978.
No bind found for key 'c'.
No bind found for key 'l'.



Try running mplayer in the terminal (outside of myth)

type
mplayer tivo://90.0.0.201/1915978

And see if it plays, the 1915978 is just the show id number.

Also I believe I droped "-af list-volnorm" it caused me problems, and for right now drop -vm -quiet and -fs and see if it works

ringo
10-31-2007, 11:32 PM
Has there been any update of mythtivo to run on the latest version of mythtivo 20.2?

Thanks
-Ringo

snake98
11-28-2007, 07:13 PM
Has there been any update of mythtivo to run on the latest version of mythtivo 20.2?

Thanks
-Ringo

I believe the program has been abandoned by the developer, I wrote the changes to make it work with 19. What error messages are you getting I might be able to fix it.

jmw86069
06-01-2008, 03:38 PM
Okay, I've searched far and wide and declare defeat... I'm trying to compile mythtivo for mythtv 0.21, and it isn't working. I'm running Mythbuntu Hardy 8.04.

I followed the steps above, having to install enough packages to meet the various prerequisites; created a symbolic link in /usr/include/mythtv/mythtv which points to libmythui; modified the files as indicated, etc etc.

Anyway, when I run 'make' here is the error:


g++ -c -pipe -Wall -W -O3 -march=i586 -fomit-frame-pointer -D_REENTRANT -fPIC -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include -I/usr/local/include -I/usr/include/qt3 -I/usr/include/mythtv -I/usr/include/qt3 -o main.o main.cpp
main.cpp: In function 'int mythtivo_main(QSqlDatabase*, MythMainWindow*, const char*)':
main.cpp:104: error: 'class MythContext' has no member named 'LoadSettingsFiles'


It looks like the LoadSettingsFiles method is designed to load the mythtivo-settings.txt file, but that method is normally used for the mysql.txt settings. The method was made private, apparently inaccessible to mythtivo. I guess I could hard-code the settings using LoadSettings() methods one-by-one, but was wondering if someone had a better idea?

Has anyone gotten mythtivo to work for MythTv 0.21? Any insights into LoadSettingsFile()?

Thank you in advance!

watmi07
02-02-2009, 12:59 PM
jmw86069

Sorry for the really late reply.
You probably already have it working by now.
I just migrated my 0.20 to 0.21 (WAF was high)
I too followed all the great help in this thread and got stuck same as you.
What I did was comment out
// gContext->LoadSettingsFiles( "mythtivo-settings.txt" );
in main.cpp and used sql to insert these into the settings table:
insert into settings values ('default_helper','mplayer -vm -quiet -fs -sb 393216 -aop list=volnorm %s',NULL);
insert into settings values ('tivo1','Family Room ; 127.0.0.1',NULL);
insert into settings values ('showmaxrating','6',NULL);
insert into settings values ('CombineNowShowing','no',NULL);

Hope this helps someone.