LinHES Forums
http://forums.linhes.org/

myth2ipod nuvexport problem on R5.5 [SOLVED]
http://forums.linhes.org/viewtopic.php?f=6&t=18518
Page 1 of 2

Author:  s1148625 [ Fri Jul 11, 2008 8:51 pm ]
Post subject:  myth2ipod nuvexport problem on R5.5 [SOLVED]

I'm trying to get the encode to iPod option to work, and it's giving me a nuvexport error.

Relevant section from mythbackend.log is below:

Code:
2008-07-11 22:34:46.841 JobQueue: Started "Encode for iPod" for "Jeopardy!" recorded from channel 1008 at Fri Jul 11 19:30:00 2008
Starting nuvexport...
Generating cutlist
/usr/bin/mythcommflag --chanid 1008 --starttime 20080711193000 --gencutlist
2008-07-11 22:34:47.406 Using runtime prefix = /usr
2008-07-11 22:34:47.408 Empty LocalHostName.
2008-07-11 22:34:47.428 New DB connection, total: 1
2008-07-11 22:34:47.436 Closing DB connection named 'DBManager0'
2008-07-11 22:34:47.439 New DB connection, total: 2
/usr/local/bin/nuvexport --chanid=1008 --start=20080711193000 --mode=iPod --nice=19 --cutlist --nodenoise --nodeinterlace --nomultipass --filename=1008_20080711193000.temp --path=/myth/ipodfeed/
failed termcap lookup on linux at /usr/local/share/nuvexport/nuv_export/shared_utils.pm line 61
Compilation failed in require at /usr/local/bin/nuvexport line 45.
BEGIN failed--compilation aborted at /usr/local/bin/nuvexport line 45.

Cleaning up temp files.
Nuvexport encoding seems to have failed
/usr/local/bin/MP4Box -add /myth/ipodfeed 1008_20080711193000.temp.mp4 /myth/ipodfeed/1008_20080711193000.ipod.mp4 (Feature Not Supported)Unknown input file type
Error importing /myth/ipodfeed/1008_20080711193000.temp.mp4: Feature Not Supported
MP4Box cleanup seems to have failed
Nuvexport completed, starting xml generation...
"Jeopardy_--20080711" has been added to the feed.
XML file created for "Jeopardy_--20080711" : Yipeee
Cleaning up temporary files
rm -f /myth/ipodfeed/1008_20080711193000.temp.mp4
Generating cutlist
/usr/bin/mythcommflag --chanid 1008 --starttime 20080711193000 --clearcutlist
2008-07-11 22:34:48.196 Using runtime prefix = /usr
2008-07-11 22:34:48.207 Empty LocalHostName.
2008-07-11 22:34:48.227 New DB connection, total: 1
2008-07-11 22:34:48.233 Closing DB connection named 'DBManager0'
2008-07-11 22:34:48.243 New DB connection, total: 2
2008-07-11 22:34:48.248 Cutlist set to:
Jeopardy! is ready for your ipod
2008-07-11 22:34:48.264 JobQueue: Finished "Encode for iPod" for "Jeopardy!" recorded from channel 1008 at Fri Jul 11 19:30:00 2008.


A search revealed this post (#6) which suggests that adding the following lines to /etc/init.d/mythtv-backend solves the problem.


Code:
TERM=vt100
export TERM


These instructions are for Ubuntu. Is it likely that this will fix my problem in KnoppMyth as well?

Author:  diblasio [ Wed Jul 23, 2008 3:00 pm ]
Post subject: 

I tried adding
Code:
TERM=vt100
export TERM
to my /etc/init.d/mythtv-backend, and it didn't fix nuvexport for me. For what it's worth. Did anyone ever figure out how to fix it?

Author:  s1148625 [ Wed Jul 23, 2008 3:02 pm ]
Post subject: 

Nope. I added it as well, and it didn't work for me either.

Author:  ceenvee703 [ Wed Jul 23, 2008 8:37 pm ]
Post subject: 

There is a second fix described about three messages past the one linked to above, which lists a patch to apply to shared_utils.pm. Anyone tried that?

Author:  s1148625 [ Wed Jul 23, 2008 8:44 pm ]
Post subject: 

I don't see the second fix in that topic... am I missing it?

Author:  ceenvee703 [ Thu Jul 24, 2008 4:49 am ]
Post subject: 

Ack, sorry, different Ubuntu forums post that I got mixed up with the one above:

http://ubuntuforums.org/showpost.php?p= ... tcount=118

Author:  s1148625 [ Thu Jul 24, 2008 8:56 am ]
Post subject: 

That did it! I'll paste the patch here as well, for posterity's sake:

Save the following patch to /usr/local/share/nuvexport/termcap.patch

Code:
--- nuv_export.orig/shared_utils.pm     2007-12-17 01:39:41.000000000 -0800
+++ nuv_export/shared_utils.pm  2007-12-17 01:26:45.000000000 -0800
@@ -50,15 +50,16 @@
     }

 # Set up the terminal commands we need to send a clear-screen character
-    use Term::Cap;
-    my $OSPEED = 9600;
-    eval {
-        require POSIX;
-        my $termios = POSIX::Termios->new();
-        $termios->getattr;
-        $OSPEED = $termios->getospeed;
-    };
-    our $terminal = Term::Cap->Tgetent({OSPEED=>$OSPEED});
+ #    use Term::Cap;
+ #    my $OSPEED = 9600;
+ #    eval {
+ #        require POSIX;
+ #        my $termios = POSIX::Termios->new();
+ #        $termios->getattr;
+ #        $OSPEED = $termios->getospeed;
+ #    };
+ #    our $terminal = Term::Cap->Tgetent({OSPEED=>$OSPEED});
+    our $clearscreen = `clear`;

 # Gather info about how many cpu's this machine has
     if (-e '/proc/cpuinfo') {
@@ -99,7 +100,8 @@

 # Clear the screen
     sub clear {
-        print $DEBUG ? "\n" : $terminal->Tputs('cl');
+        print $DEBUG ? "\n" : $clearscreen;
+#        print $DEBUG ? "\n" : $terminal->Tputs('cl');
     }

 # Byte swap a 32-bit number from little-endian to big-endian


then run:

Code:
patch -p0 <termcap.patch

Author:  diblasio [ Sat Jul 26, 2008 7:21 am ]
Post subject: 

Hey thanks. That patch worked.

Author:  yababom [ Sat Jul 26, 2008 4:43 pm ]
Post subject: 

Worked for me too...

Author:  jorin [ Sun Aug 03, 2008 10:36 am ]
Post subject: 

I'm not sure I followed the directions properly.

I created a file in webmin called termcap.patch and saved it to /usr/local/share/nuvexport from a terminal I changed to that directory and typed the command patch -p0 <termcap.patch. It ran but says the following

Quote:
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 105 with fuzz 1 (offset 5 lines).


My mythbackend.log was getting the same error that you have been getting. Now I see this in the log

Quote:
2008-08-03 01:29:17.049 JobQueue: Started "Encode for iPod" for "Saturday Night Live" recorded from channel 1051 at Sun Aug 3 00:32:00 2008
Starting nuvexport...
Generating cutlist
/usr/bin/mythcommflag --chanid 1051 --starttime 20080803003200 --gencutlist
2008-08-03 01:29:17.664 Using runtime prefix = /usr
2008-08-03 01:29:17.666 Empty LocalHostName.
2008-08-03 01:29:17.687 New DB connection, total: 1
2008-08-03 01:29:17.694 Closing DB connection named 'DBManager0'
2008-08-03 01:29:17.714 New DB connection, total: 2
/usr/local/bin/nuvexport --chanid=1051 --start=20080803003200 --mode=iPod --nice=19 --cutlist --nodenoise --nodeinterlace --nomultipass --mp4_codec=h264 --width 640 --height 480 --v_bitrate 1500 --filename=1051_20080803003200.temp --path=/myth/ipodfeed/
2008-08-03 01:29:18.542 MainServer::HandleAnnounce Monitor
2008-08-03 01:29:18.544 adding: dumbo as a client (events: 0)
Loading MythTV recording info.

0%
20%
40%
60%
80%
Default resolution based on requested dimensions.

Now encoding: Saturday Night Live: Untitled
Encode started: Sun Aug 3 01:29:21 2008
Use of uninitialized value in pattern match (m//) at /usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 196.
Use of uninitialized value in pattern match (m//) at /usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 196.
2008-08-03 01:29:21.655 MainServer::HandleAnnounce Monitor
2008-08-03 01:29:21.658 adding: dumbo as a client (events: 0)
2008-08-03 01:29:21.659 MainServer::HandleAnnounce Monitor
2008-08-03 01:29:21.660 adding: dumbo as a client (events: 1)
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.

processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
ffmpeg finished.

processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)


It then goes on to say that ffmpeg died early and then cleans up.

This box was recently upgraded to R5.5 from R5F27. The hardware has partially changed but the upgrade seemed to go without a problem.

Intel D865PERL motherboard
Onboard sound
Onboard networking
Nvidia 5200FX
WD 250GB
PCHDtv3000 HD Tuner (OTA)

Author:  mythman13 [ Mon Aug 04, 2008 1:31 pm ]
Post subject:  Working! Thanks!

Great! Thanks for this I think iPod converter is working now - I was just about to post about this and fortunately found this post. One question - what is nuvexport? Because I thought it was something to do with .nuv files, something mine are not encoded as (.mpg) I was about to ignore this post but good job I had not!

One other thing - I did as s1148625 suggested but got the error:
Code:
patching file nuv_export/shared_utils.pm
Hunk #1 FAILED at 50.
Hunk #2 FAILED at 100.
2 out of 2 hunks FAILED -- saving rejects to file nuv_export/shared_utils.pm.rej


So I copied the code from the original patch website and applied again and it worked fine:
Code:
patching file nuv_export/shared_utils.pm
Hunk #2 succeeded at 105 (offset 5 lines).


Not sure why it didn't work the first time but my recommendation is that if you get an error just try copying in the patch again (from the other source if necessary).

Thanks again for this,

Mythman

Author:  tjc [ Mon Aug 04, 2008 6:22 pm ]
Post subject:  Re: Working! Thanks!

mythman13 wrote:
One question - what is nuvexport? Because I thought it was something to do with .nuv files, something mine are not encoded as (.mpg)

It's a somewhat misnamed utility that exports recordings from your MythTV database to various other formats, possibly transcoding them in the process. The name dates back to a time when MythTV used the NUV format exclusively(?).

Author:  mythman13 [ Tue Aug 05, 2008 8:55 am ]
Post subject: 

Thanks for that tjc.

Sorry is this is off topic, but does anyone know how to change the bitrate settings and the like as it seems to reencode at over 1.5MB a minute which I'm finding is a bit excessive for my little portable screen. (I've taken a look at /usr/bin/localmyth2ipod but can't find any bitrate or size settings.

Thanks, Mythman

Author:  jorin [ Sun Sep 07, 2008 11:17 pm ]
Post subject: 

jorin wrote:
I'm not sure I followed the directions properly.

I created a file in webmin called termcap.patch and saved it to /usr/local/share/nuvexport from a terminal I changed to that directory and typed the command patch -p0 <termcap.patch. It ran but says the following

Quote:
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 105 with fuzz 1 (offset 5 lines).


My mythbackend.log was getting the same error that you have been getting. Now I see this in the log

Quote:
2008-08-03 01:29:17.049 JobQueue: Started "Encode for iPod" for "Saturday Night Live" recorded from channel 1051 at Sun Aug 3 00:32:00 2008
Starting nuvexport...
Generating cutlist
/usr/bin/mythcommflag --chanid 1051 --starttime 20080803003200 --gencutlist
2008-08-03 01:29:17.664 Using runtime prefix = /usr
2008-08-03 01:29:17.666 Empty LocalHostName.
2008-08-03 01:29:17.687 New DB connection, total: 1
2008-08-03 01:29:17.694 Closing DB connection named 'DBManager0'
2008-08-03 01:29:17.714 New DB connection, total: 2
/usr/local/bin/nuvexport --chanid=1051 --start=20080803003200 --mode=iPod --nice=19 --cutlist --nodenoise --nodeinterlace --nomultipass --mp4_codec=h264 --width 640 --height 480 --v_bitrate 1500 --filename=1051_20080803003200.temp --path=/myth/ipodfeed/
2008-08-03 01:29:18.542 MainServer::HandleAnnounce Monitor
2008-08-03 01:29:18.544 adding: dumbo as a client (events: 0)
Loading MythTV recording info.

0%
20%
40%
60%
80%
Default resolution based on requested dimensions.

Now encoding: Saturday Night Live: Untitled
Encode started: Sun Aug 3 01:29:21 2008
Use of uninitialized value in pattern match (m//) at /usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 196.
Use of uninitialized value in pattern match (m//) at /usr/local/share/nuvexport/export/ffmpeg/MP4.pm line 196.
2008-08-03 01:29:21.655 MainServer::HandleAnnounce Monitor
2008-08-03 01:29:21.658 adding: dumbo as a client (events: 0)
2008-08-03 01:29:21.659 MainServer::HandleAnnounce Monitor
2008-08-03 01:29:21.660 adding: dumbo as a client (events: 1)
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.

processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
ffmpeg finished.

processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)
processed: 0 of 34948 frames at 0 fps (~%, eta: unknown)


It then goes on to say that ffmpeg died early and then cleans up.

This box was recently upgraded to R5.5 from R5F27. The hardware has partially changed but the upgrade seemed to go without a problem.

Intel D865PERL motherboard
Onboard sound
Onboard networking
Nvidia 5200FX
WD 250GB
PCHDtv3000 HD Tuner (OTA)


Well I just reinstalled from scratch. I swapped out the video card that was causing problems.

I must be missing something in the steps above because I keep getting the same result as before.

What am I missing........? I'm about to go back to R5F27.

Author:  cliffsjunk [ Tue Sep 09, 2008 11:26 am ]
Post subject: 

Before you go back to R5F27 you might try getting the SVN
ffmpeg and building it as described in this post:
http://knoppmyth.net/phpBB2/viewtopic.php?t=18547

It is actually fairly painless.

Look for the post by cliffsjunk on Fri Aug 22, 2008 9:34 am.
It is currently the second from the end.

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/