View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 28 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jul 11, 2008 8:51 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
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?

_________________
Silverstone LC10|MSI K8N Neo4-F|1GB PC3200|Athlon 64 X2 4200+|NEC 3550A DVD-RW
750GB + 400GB w/Storage Groups|eVGA GeForce 7600 GS w/VGA out to Aquos 32" LCD |PVR-500|PVR-250|SiliconDust HDHomerun


Last edited by s1148625 on Thu Jul 24, 2008 8:58 am, edited 2 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 23, 2008 3:00 pm 
Offline
Joined: Tue Apr 11, 2006 6:31 pm
Posts: 31
Location: Austin, TX
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 23, 2008 3:02 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
Nope. I added it as well, and it didn't work for me either.

_________________
Silverstone LC10|MSI K8N Neo4-F|1GB PC3200|Athlon 64 X2 4200+|NEC 3550A DVD-RW
750GB + 400GB w/Storage Groups|eVGA GeForce 7600 GS w/VGA out to Aquos 32" LCD |PVR-500|PVR-250|SiliconDust HDHomerun


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 23, 2008 8:37 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 23, 2008 8:44 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
I don't see the second fix in that topic... am I missing it?

_________________
Silverstone LC10|MSI K8N Neo4-F|1GB PC3200|Athlon 64 X2 4200+|NEC 3550A DVD-RW
750GB + 400GB w/Storage Groups|eVGA GeForce 7600 GS w/VGA out to Aquos 32" LCD |PVR-500|PVR-250|SiliconDust HDHomerun


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 24, 2008 4:49 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
Ack, sorry, different Ubuntu forums post that I got mixed up with the one above:

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 24, 2008 8:56 am 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
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

_________________
Silverstone LC10|MSI K8N Neo4-F|1GB PC3200|Athlon 64 X2 4200+|NEC 3550A DVD-RW
750GB + 400GB w/Storage Groups|eVGA GeForce 7600 GS w/VGA out to Aquos 32" LCD |PVR-500|PVR-250|SiliconDust HDHomerun


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 26, 2008 7:21 am 
Offline
Joined: Tue Apr 11, 2006 6:31 pm
Posts: 31
Location: Austin, TX
Hey thanks. That patch worked.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 26, 2008 4:43 pm 
Offline
Joined: Fri Feb 24, 2006 4:39 pm
Posts: 30
Location: Seattle, Washington
Worked for me too...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 03, 2008 10:36 am 
Offline
Joined: Fri Jan 06, 2006 9:35 pm
Posts: 64
Location: Northern Kentucky
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)


Top
 Profile  
 
 Post subject: Working! Thanks!
PostPosted: Mon Aug 04, 2008 1:31 pm 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
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

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Top
 Profile  
 
 Post subject: Re: Working! Thanks!
PostPosted: Mon Aug 04, 2008 6:22 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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(?).


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 05, 2008 8:55 am 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
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

_________________
Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 07, 2008 11:17 pm 
Offline
Joined: Fri Jan 06, 2006 9:35 pm
Posts: 64
Location: Northern Kentucky
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 09, 2008 11:26 am 
Offline
Joined: Fri Sep 15, 2006 12:16 pm
Posts: 292
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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu