[mythtv-users] Problems with nuvexport and single episode shows

Dale Pontius DEPontius at edgehp.net
Fri Mar 19 01:45:05 UTC 2010


On 03/18/10 20:43, Gavin Hurlbut wrote:
> no no... on http://svn.mythtv.org/trac
> 
> Oy.
> 
Good thing I hadn't gotten to it, yet.

I spent time last night trying to get this to a simple, reproducible
scenario.  I can't, at least not completely.  I have a few clues, but
I'm beginning to think that I still have crud laying around in my
database, which was a "partially corrupt" upgrade from 0.21 to 0.22.
I'll try to lay this out, to see if it looks like a real problem.

I now believe that the problem is not whether there was one or more
episodes of a given show, but whether the show I want to export was
recorded before or after migrating to 0.22.  The listing that follows
came from running "nuvexport-xvid --transcode", selecting "Faces of
America With Henry Louis Gates Jr", with the first episode recorded
under 0.21 and the second episode recorded under 0.22.
-------------------------------------------------
You have chosen to export 2 episodes:

  1. Faces of America With Henry Louis Gates Jr.:
     Becoming American (Wed Feb 17 09:00 PM) 720x480 MPEG2 (4:3)
     Stephen Colbert's Irish great-great-grandfather escapes poverty; Mario
     Batali's great-grandfather struggles in Montana; Queen Noor or Jordan's
     great-grandfather settles in New York.
  2. Faces of America With Henry Louis Gates Jr.:
     Know Thyself (Wed Mar  3 09:00 PM) 720x480 MPEG2 (4:3)
     Exploring distant relatives and the shared ancestral connections of
     Elizabeth Alexander, Meryl Streep, Mike Nicholas, Yo-Yo Ma and Eva
Longoria
     Parker.

* Separate multiple episodes with spaces, or ranges with '-'

  c. Continue
  n. Choose another show
  q. Quit

Choose a function, or episode(s) to remove:  c
Where would you like to export the files to? [.]
Enable Myth cutlist? [Yes]
Enable noise reduction (slower, but better results)? [Yes]
Enable deinterlacing? [Yes]
Crop broadcast overscan border (0-5%) ? [1.5]
Audio bitrate? [128]
Variable bitrate video? [Yes]
Multi-pass (slower, but better quality)? [Yes]
Video bitrate? [768]
Default resolution based on requested dimensions.
Width? [640]
Height? [480]

--------------------------------
To encode:  Faces of America With Henry Louis Gates Jr.:  Becoming American
Use the following commands:
First pass...


system call:
mkdir -m 0755 /tmp/fifodir_9042/

forking:
/usr/bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '0' -c
'1006' -s '2010-02-17T20:00:00' -f "/tmp/fifodir_9042/" --honorcutlist 2>&1

forking:
/usr/bin/nice -n19 transcode --log_no_color  --progress_meter 2
--progress_rate 16 --import_asr 2 --export_asr 2 --export_fps 29.970,4
-Z 640x480 -k -i /tmp/fifodir_9042/vidout -p /tmp/fifodir_9042/audout -H
0 -x raw -g 720x480 -f 29.970,4 -n 0x1
-e 48000,16,2
-j 6,10,6,10 -J smartyuv -J yuvdenoise=mode=2  -y xvid,null  -N 0x55 -b
128,0,2,0 -R 1,/tmp/xvid.9042.log -w 768  -o /dev/null 2>&1
Final pass...

system call:
mkdir -m 0755 /tmp/fifodir_9042/

forking:
/usr/bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '0' -c
'1006' -s '2010-02-17T20:00:00' -f "/tmp/fifodir_9042/" --honorcutlist 2>&1

forking:
/usr/bin/nice -n19 transcode --log_no_color  --progress_meter 2
--progress_rate 16 --import_asr 2 --export_asr 2 --export_fps 29.970,4
-Z 640x480 -k -i /tmp/fifodir_9042/vidout -p /tmp/fifodir_9042/audout -H
0 -x raw -g 720x480 -f 29.970,4 -n 0x1
-e 48000,16,2
-j 6,10,6,10 -J smartyuv -J yuvdenoise=mode=2  -y xvid  -N 0x55 -b
128,0,2,0 -R 2,/tmp/xvid.9042.log -w 768  -o
'./Faces_of_America_With_Henry_Louis_Gates_Jr._-_Becoming_American.2.avi' 2>&1

--------------------------------
To encode:  Faces of America With Henry Louis Gates Jr.:  Know Thyself
Use the following commands:
First pass...
Use of uninitialized value in join or string at
/usr/share/nuvexport/export/transcode.pm line 251, <STDIN> line 14.
Use of uninitialized value in join or string at
/usr/share/nuvexport/export/transcode.pm line 251, <STDIN> line 14.
Use of uninitialized value in join or string at
/usr/share/nuvexport/export/transcode.pm line 251, <STDIN> line 14.

system call:
mkdir -m 0755 /tmp/fifodir_9042/

forking:
/usr/bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '0' -c
'1006' -s '2010-03-03T20:00:00' -f "/tmp/fifodir_9042/" --honorcutlist 2>&1

forking:
/usr/bin/nice -n19 transcode --log_no_color  --progress_meter 2
--progress_rate 16 --import_asr 2 --export_asr 2 --export_fps 29.970,4
-Z 640x480 -k -i /tmp/fifodir_9042/vidout -p /tmp/fifodir_9042/audout -H
0 -x raw -g 720x480 -f 29.970,4 -n 0x1
-e ,,
-j 6,10,6,10 -J smartyuv -J yuvdenoise=mode=2  -y xvid,null  -N 0x55 -b
128,0,2,0 -R 1,/tmp/xvid.9042.log -w 768  -o /dev/null 2>&1
Final pass...
Use of uninitialized value in join or string at
/usr/share/nuvexport/export/transcode.pm line 251, <STDIN> line 14.
Use of uninitialized value in join or string at
/usr/share/nuvexport/export/transcode.pm line 251, <STDIN> line 14.
Use of uninitialized value in join or string at
/usr/share/nuvexport/export/transcode.pm line 251, <STDIN> line 14.

system call:
mkdir -m 0755 /tmp/fifodir_9042/

forking:
/usr/bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '0' -c
'1006' -s '2010-03-03T20:00:00' -f "/tmp/fifodir_9042/" --honorcutlist 2>&1

forking:
/usr/bin/nice -n19 transcode --log_no_color  --progress_meter 2
--progress_rate 16 --import_asr 2 --export_asr 2 --export_fps 29.970,4
-Z 640x480 -k -i /tmp/fifodir_9042/vidout -p /tmp/fifodir_9042/audout -H
0 -x raw -g 720x480 -f 29.970,4 -n 0x1
-e ,,
-j 6,10,6,10 -J smartyuv -J yuvdenoise=mode=2  -y xvid  -N 0x55 -b
128,0,2,0 -R 2,/tmp/xvid.9042.log -w 768  -o
'./Faces_of_America_With_Henry_Louis_Gates_Jr._-_Know_Thyself.avi' 2>&1

Cleaning up temp files.


Please see the following article for what to do with this information:

    http://www.mythtv.org/wiki/index.php/Nuvexport#Debug_Mode

--------------------------------
My apologies for the wrapping.  The key that I've identified as the
problem are those error messages on the second export, "Use of
uninitialized value in join or string at
/usr/share/nuvexport/export/transcode.pm line 251, <STDIN> line 14."  If
I tear this apart a little further, reading the source, I find the
option flag section on the "transcode" command, "-e ,,".  If I look at
the other export, the one that was recorded under 0.21, that same option
flag is, "-e 48000,16,2".  It appears to me that the 3 error messages
are an attempt to pick the audio information out of the episode
structure, only for some reason it's not there.  Three pieces, three
error messages, three missing numbers after the "-e" separated by 2 commas.

Next why... I haven't the foggiest.  I pulled out database dumps from
before the migration, and the database dump from the other night.  I
located all references to "Faces of America" and teased them out, one to
a line - for those tables where I had all 4 recorded episodes listed.
Other than the times, subtitles, descriptions, and such obvious fields,
they're identical.  I don't expect to find "48000" in 2 episodes and
some blank in the other 2, but I would have expected to find some sort
of pointer that was different, and the audio properties would have been
at the end of that pointer.  But they're not different.  Well, digging
into the "recordedprogram" table I see that the 0.21 recordings were
from listingsource 0 and the 0.22 recordings were from listingsource 2,
but that probably comes from having to redefine tuners, listings, and
sources after the partial database recovery.  At the moment, I don't see
anything that would refer to the audio sampling rate.  I remember
hard-setting the audio sampling rate to 48000 several years ago with my
old capture card, in order to get rid of AC97 sampling artifacts.  I'm
sure that setting was dumped with the partial restore, but I would have
expected some other default to have been in its place.

Again, I can submit a problem, but I have a feeling that this is all a
bit nebulous, and again my particular problem.  Of course I still need
to fix it, somehow.  Right now I think I just keep to keep perusing the
database dumps until find something, but I'm certainly open to suggestions.

Thanks,
Dale Pontius


More information about the mythtv-users mailing list