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

nuvexport problem... please help
http://forum.linhes.org/viewtopic.php?f=6&t=7607
Page 1 of 1

Author:  kb9mwo [ Thu Dec 29, 2005 11:27 pm ]
Post subject:  nuvexport problem... please help

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.

Author:  eellektron [ Mon Jan 23, 2006 12:10 pm ]
Post subject:  SOLVED: nuvexport problem... please help

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!

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