Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

mythburn.py fail

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


quielb at ecst

Jul 21, 2008, 10:34 AM

Post #1 of 4 (303 views)
Permalink
mythburn.py fail

mythburn.py version: .0.1.20080628-1-fixes

I'm trying to create a DVD with a few video files. I pre-encoded them
to DVD format using mencoder w/ the following options:

of=mpeg=1
mpegopts=format=dvd
srate=48000
ofps=24000/1001
ovc=lavc=1
oac=lavc=1
lavcopts=vcodec=mpeg2video:vrc_buf_size=1825:keyint=18:vrc_maxrate=9800:vbitrate=3250:aspect=16/9:acodec=ac3:abitrate=192
vf=scale=720:480,harddup
af=lavcresample=48000


I then go through the myhtarchive screens add the files and use the
don't re-encode option.

mythburn.py gives me the following output:

2008-07-21 01:09:15 mythburn.py (0.1.20080629-1-fixes) starting up...
2008-07-21 01:09:15 Found 4 CPUs
2008-07-21 01:09:15 Obtaining MythTV settings from MySQL database for
hostname myth-mbe.local
2008-07-21 01:09:15 temppath: /mythtv/temp/work
2008-07-21 01:09:15 logpath: /mythtv/temp/logs
2008-07-21 01:09:15 Setting process priority to 10
2008-07-21 01:09:15 Processing Mythburn job number 1.
2008-07-21 01:09:15 Options - mediatype = 0, doburn = 1, createiso = 0,
erasedvdrw = 0
2008-07-21 01:09:15 savefilename = ''
2008-07-21 01:09:15 Looking for:
/usr/share/mythtv/mytharchive/themes/Compact/theme.xml
2008-07-21 01:09:15 Loading font 0, /usr/share/mythtv/FreeSans.ttf size 19
2008-07-21 01:09:15 Loading font 1, /usr/share/mythtv/FreeSans.ttf size 15
2008-07-21 01:09:15 Loading font 2, /usr/share/mythtv/FreeSans.ttf size 13
2008-07-21 01:09:15 wantIntro: 1, wantMainMenu: 1, wantChapterMenu:0,
wantDetailsPage: 0
2008-07-21 01:09:15 Final DVD Video format will be ntsc
2008-07-21 01:09:15 There are 5 files to process
2008-07-21 01:09:15 Pre-processing video 1:
'/mythtv/videos/TV/Battlestar Galactica/S03/BSG-S03E01.mpeg'
2008-07-21 01:09:15 BSG-S03E01
2008-07-21 01:09:15
------------------------------------------------------------
Traceback (most recent call last):
File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5427,
in main
processJob(job)
File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5129,
in processJob
preProcessFile(node,folder,filecount)
File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1792,
in preProcessFile
getFileInformation(file, folder)
File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1652,
in getFileInformation
desc = unicode(record[2], "UTF-8")
TypeError: coercing to Unicode: need string or buffer, NoneType found
2008-07-21 01:09:15
------------------------------------------------------------


Any suggestions?


_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mythtv at dsl

Jul 23, 2008, 10:36 AM

Post #2 of 4 (253 views)
Permalink
Re: mythburn.py fail [In reply to]

Barry Quiel wrote:
> mythburn.py version: .0.1.20080628-1-fixes
>
> I'm trying to create a DVD with a few video files. I pre-encoded them
> to DVD format using mencoder w/ the following options:
>
> of=mpeg=1
> mpegopts=format=dvd
> srate=48000
> ofps=24000/1001
> ovc=lavc=1
> oac=lavc=1
> lavcopts=vcodec=mpeg2video:vrc_buf_size=1825:keyint=18:vrc_maxrate=9800:vbitrate=3250:aspect=16/9:acodec=ac3:abitrate=192
> vf=scale=720:480,harddup
> af=lavcresample=48000
>
>
> I then go through the myhtarchive screens add the files and use the
> don't re-encode option.
>
> mythburn.py gives me the following output:
>
> 2008-07-21 01:09:15 mythburn.py (0.1.20080629-1-fixes) starting up...
> 2008-07-21 01:09:15 Found 4 CPUs
> 2008-07-21 01:09:15 Obtaining MythTV settings from MySQL database for
> hostname myth-mbe.local
> 2008-07-21 01:09:15 temppath: /mythtv/temp/work
> 2008-07-21 01:09:15 logpath: /mythtv/temp/logs
> 2008-07-21 01:09:15 Setting process priority to 10
> 2008-07-21 01:09:15 Processing Mythburn job number 1.
> 2008-07-21 01:09:15 Options - mediatype = 0, doburn = 1, createiso = 0,
> erasedvdrw = 0
> 2008-07-21 01:09:15 savefilename = ''
> 2008-07-21 01:09:15 Looking for:
> /usr/share/mythtv/mytharchive/themes/Compact/theme.xml
> 2008-07-21 01:09:15 Loading font 0, /usr/share/mythtv/FreeSans.ttf size 19
> 2008-07-21 01:09:15 Loading font 1, /usr/share/mythtv/FreeSans.ttf size 15
> 2008-07-21 01:09:15 Loading font 2, /usr/share/mythtv/FreeSans.ttf size 13
> 2008-07-21 01:09:15 wantIntro: 1, wantMainMenu: 1, wantChapterMenu:0,
> wantDetailsPage: 0
> 2008-07-21 01:09:15 Final DVD Video format will be ntsc
> 2008-07-21 01:09:15 There are 5 files to process
> 2008-07-21 01:09:15 Pre-processing video 1:
> '/mythtv/videos/TV/Battlestar Galactica/S03/BSG-S03E01.mpeg'
> 2008-07-21 01:09:15 BSG-S03E01
> 2008-07-21 01:09:15
> ------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5427,
> in main
> processJob(job)
> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5129,
> in processJob
> preProcessFile(node,folder,filecount)
> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1792,
> in preProcessFile
> getFileInformation(file, folder)
> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1652,
> in getFileInformation
> desc = unicode(record[2], "UTF-8")
> TypeError: coercing to Unicode: need string or buffer, NoneType found
> 2008-07-21 01:09:15
> ------------------------------------------------------------
>
>
> Any suggestions?
>
>
>
>

Its choking on the information from the DB for that file.

Does the plot for that video contain any funny characters?

Could you run this query in MySql and report the results.

select title, director, plot, rating, inetref, year,
userrating, length, coverfile from videometadata
where filename= '/mythtv/videos/TV/Battlestar
Galactica/S03/BSG-S03E01.mpeg';

That should all be on one line.

Paul H.


_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


quielb at ecst

Jul 23, 2008, 3:15 PM

Post #3 of 4 (250 views)
Permalink
Re: mythburn.py fail [In reply to]

> Barry Quiel wrote:
>> mythburn.py version: .0.1.20080628-1-fixes
>>
>> I'm trying to create a DVD with a few video files. I pre-encoded them
>> to DVD format using mencoder w/ the following options:
>>
>> of=mpeg=1
>> mpegopts=format=dvd
>> srate=48000
>> ofps=24000/1001
>> ovc=lavc=1
>> oac=lavc=1
>> lavcopts=vcodec=mpeg2video:vrc_buf_size=1825:keyint=18:vrc_maxrate=9800:vbitrate=3250:aspect=16/9:acodec=ac3:abitrate=192
>> vf=scale=720:480,harddup
>> af=lavcresample=48000
>>
>>
>> I then go through the myhtarchive screens add the files and use the
>> don't re-encode option.
>>
>> mythburn.py gives me the following output:
>>
>> 2008-07-21 01:09:15 mythburn.py (0.1.20080629-1-fixes) starting up...
>> 2008-07-21 01:09:15 Found 4 CPUs
>> 2008-07-21 01:09:15 Obtaining MythTV settings from MySQL database for
>> hostname myth-mbe.local
>> 2008-07-21 01:09:15 temppath: /mythtv/temp/work
>> 2008-07-21 01:09:15 logpath: /mythtv/temp/logs
>> 2008-07-21 01:09:15 Setting process priority to 10
>> 2008-07-21 01:09:15 Processing Mythburn job number 1.
>> 2008-07-21 01:09:15 Options - mediatype = 0, doburn = 1, createiso = 0,
>> erasedvdrw = 0
>> 2008-07-21 01:09:15 savefilename = ''
>> 2008-07-21 01:09:15 Looking for:
>> /usr/share/mythtv/mytharchive/themes/Compact/theme.xml
>> 2008-07-21 01:09:15 Loading font 0, /usr/share/mythtv/FreeSans.ttf size 19
>> 2008-07-21 01:09:15 Loading font 1, /usr/share/mythtv/FreeSans.ttf size 15
>> 2008-07-21 01:09:15 Loading font 2, /usr/share/mythtv/FreeSans.ttf size 13
>> 2008-07-21 01:09:15 wantIntro: 1, wantMainMenu: 1, wantChapterMenu:0,
>> wantDetailsPage: 0
>> 2008-07-21 01:09:15 Final DVD Video format will be ntsc
>> 2008-07-21 01:09:15 There are 5 files to process
>> 2008-07-21 01:09:15 Pre-processing video 1:
>> '/mythtv/videos/TV/Battlestar Galactica/S03/BSG-S03E01.mpeg'
>> 2008-07-21 01:09:15 BSG-S03E01
>> 2008-07-21 01:09:15
>> ------------------------------------------------------------
>> Traceback (most recent call last):
>> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5427,
>> in main
>> processJob(job)
>> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5129,
>> in processJob
>> preProcessFile(node,folder,filecount)
>> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1792,
>> in preProcessFile
>> getFileInformation(file, folder)
>> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1652,
>> in getFileInformation
>> desc = unicode(record[2], "UTF-8")
>> TypeError: coercing to Unicode: need string or buffer, NoneType found
>> 2008-07-21 01:09:15
>> ------------------------------------------------------------
>>
>>
>> Any suggestions?
>>
>>
>>
>>
>
> Its choking on the information from the DB for that file.
>
> Does the plot for that video contain any funny characters?
>
> Could you run this query in MySql and report the results.
>
> select title, director, plot, rating, inetref, year,
> userrating, length, coverfile from videometadata
> where filename= '/mythtv/videos/TV/Battlestar
> Galactica/S03/BSG-S03E01.mpeg';
>
> That should all be on one line.
>
> Paul H.
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users[at]mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

It returned basically nothing. The only data is there looks like the
absolute minimum for an entry in that table. They were added to the
collection using "scan collection" from mythweb.

|title|director|plot|rating|inetref|year|userrating|length|coverfile



|BSG-S03E01| | NULL | | | 0 | 0 | 0| |

I trimmed the whitespace, non-printable characters won't copy and paste
anyway.


_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mythtv at dsl

Jul 26, 2008, 10:49 AM

Post #4 of 4 (211 views)
Permalink
Re: mythburn.py fail [In reply to]

Barry Quiel wrote:
>> Barry Quiel wrote:
>>
>> Its choking on the information from the DB for that file.
>>
>> Does the plot for that video contain any funny characters?
>>
>> Could you run this query in MySql and report the results.
>>
>> select title, director, plot, rating, inetref, year,
>> userrating, length, coverfile from videometadata
>> where filename= '/mythtv/videos/TV/Battlestar
>> Galactica/S03/BSG-S03E01.mpeg';
>>
>> That should all be on one line.
>>
>> Paul H.
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users[at]mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>
> It returned basically nothing. The only data is there looks like the
> absolute minimum for an entry in that table. They were added to the
> collection using "scan collection" from mythweb.
>
> |title|director|plot|rating|inetref|year|userrating|length|coverfile
>
>
>
> |BSG-S03E01| | NULL | | | 0 | 0 | 0| |
>
> I trimmed the whitespace, non-printable characters won't copy and paste
> anyway.
>
>
>
>

It seems MythVideo and MythWeb disagree on what value should be inserted
into the DB for a blank plot.

Anyway MythArchive can now cope with both methods.

You can either update to latest svn from trunk or the fixes branch or
alternatively you could change the NULL values that MythWeb inserted for
the plot field to 'None' or even an empty field just as long as it isn't
NULL.

Paul H.

_______________________________________________
mythtv-users mailing list
mythtv-users[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.