View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Dec 29, 2005 11:27 pm 
Offline
Joined: Tue Jul 27, 2004 10:31 pm
Posts: 16
If I run nuvexport --transcode and I pick a file to convert. It dumpes me out with:
'x' outside of string in unpack at /usr/local/share/nuvexport/mythtv/nuvinfo.pm line 34, <STDIN> line 3.

I think it has to do with my myconverg database not being correct. All the recorded programs play fine and everything works except transcoding.

I compiled ffmped and transcode no problems. But when I run transcode, it dumps me out.

Is there a way to check the mysql database to see if it is in the correct "format" that is needed... I went from R16 to R26.

Any help would be appreciated.


Top
 Profile  
 
PostPosted: Mon Jan 23, 2006 12:10 pm 
Offline
Joined: Thu Dec 01, 2005 4:51 am
Posts: 6
i too had the same error.

i found that, for an unknown reason, have an empty "basename" column in my "recorded" table of my "mythconverg" db.

you'll see what i mean:
Code:
# mysql mythconverg
mysql> SELECT title,basename FROM recorded;


and nuvexport incorrectly thinks that its basename file search has succeeded and sets $file to NULL and crashes when it tries to do anything with a filename called ""

so instead of populating the basename field in mysql i simply commented out that section and nuvexport happily works with its "# Older mythtv; scan for files" section

so edit /usr/local/share/nuvexport/mythtv/recordings.pm
and comment out line 64 through 75 and line 94

it should now look like this
Code:
#        my $rows;
#        $sh = $dbh->prepare('SELECT *, basename FROM recorded');
#        if ($sh) {
#            $rows = $sh->execute();
#        }
#        if (defined $rows) {
#            while ($file = $sh->fetchrow_hashref()) {
#                push @files, $file;
#            }
#        }
#    # Older mythtv; scan for files
#       else {
            $sh->finish if ($sh);
            $sh = $dbh->prepare('SELECT * FROM recorded WHERE chanid=? AND starttime=?');
        # Grab all of the video filenames
            opendir(DIR, $video_dir) or die "Can't open $video_dir:  $!\n\n";
            foreach $file (grep /\.nuv$/, readdir(DIR)) {
                next if ($file =~ /^ringbuf/);
            # Extract the file info
                my ($chanid, $starttime) = $file =~/^(\d+)_(\d{14})_/i;
            # Search the database
                $sh->execute($chanid, $starttime);
                my $ref = $sh->fetchrow_hashref();
                next unless ($ref);
            # Add the basename, and add the file to the list
                $ref->{'basename'} = $file;
                push @files, $ref;
            }
            closedir DIR;

#       }


and now im transcoding with nuvexport, yay!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 21 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu