[mythtv] Mytharchive Burning Error (Recording includes fonts: üõöä)

Jaakko Heikkilä jaakko.heikkila at gmail.com
Sat Mar 22 16:47:15 UTC 2008


Hi,

I struggled quite a while with same problem. Finally find out how
mythburn discovers this 'ascii' encoding although my system is
configured as UTF-8.

What you should do is to check site.py file which is a site specific
configuration file for Python. In my system it can be found from:
/usr/lib/python2.5/site.py

Search for following lines in the file:

def setencoding():
    """Set the string encoding used by the Unicode implementation.  The
    default is 'ascii', but if you're willing to experiment, you can
    change this."""
    encoding = "ascii" # Default value set by _PyUnicode_Init()
    if 0:
        # Enable to support locale aware default string encodings.
        import locale
        loc = locale.getdefaultlocale()
        ....

So it seems that by default encoding really IS 'ascii'. I changed that
first if-statement to "1". Now Python uses default system locale and at
least for me that solved the problem.

If some Python guru (I am not) has some better solution, let me know.


ma, 2008-03-03 kello 22:32 +0200, Teet Niin kirjoitti:
> Hello
> 
>  I'm having problem with mytharchive.
> It works just fine with shows which doesn't include üõöä fonts.
> unfortunately my native language does have these letter quite oftenly.
> Is there any workaround for this?
> I'm using latest svn mythtv
> MythTV Version   : 16332
> MythTV Branch    : trunk
> Library API      : 0.21.20080224-1
> Network Protocol : 40
> Options compiled in:
>  linux release using_alsa using_jack using_backend using_dvb
> using_firewire using_frontend using_iptv using_ivtv
> using_joystick_menu using_lirc using_opengl_vsync using_opengl_video
> using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_opengl
> using_bindings_perl using_bindings_python using_opengl
> using_ffmpeg_threads using_libavc_5_3 using_live using_xvmc_pbuffer
> System runs on gentoo linux.
> Kernel: 2.6.24-gentoo-r1
> 
> Here are the logs after trying to create iso and burn DVD-R.
> 
> My latest log(i tried to create ISO) 
> 2008-03-01 22:05:07
> ************************************************************* 
> 2008-03-01 22:05:07 Finished processing
> file /storage/TV/Recordings/2002_20080301163000.mpg 
> 2008-03-01 22:05:07
> ************************************************************* 
> 2008-03-01 22:05:07 Creating DVD XML file for dvd author (No Menus) 
> 2008-03-01 22:05:07 Adding item 1 
> 2008-03-01 22:05:07 aspect ratio is: 1.33333 
> 2008-03-01 22:05:07 Fixed length chapters:
> 00:00:00,00:05:00,00:10:00,00:15:00,00:20:00,00:25:00,00:30:00 
> 2008-03-01 22:05:07 Total size of video files, before multiplexing, is
> 1064 Mbytes, audio is 63 MBytes, menus are 0 MBytes. 
> 2008-03-01 22:05:07 Video will fit onto DVD. 3269.88 MBytes of space
> remaining on recordable DVD. 
> 2008-03-01 22:05:07 Multiplexing MPEG stream
> to /storage/Archive/tmp/work/1/final.mpg 
> 2008-03-01 22:05:07 Adding sync offset of 14ms 
> 2008-03-01 22:05:07 Available streams - video and one audio stream 
> 2008-03-01 22:05:07 Multiplex started PID=15539 
> 2008-03-01 22:05:07 Starting dvdauthor 
> 2008-03-01 22:07:14 Finished dvdauthor 
> 2008-03-01 22:07:14 Creating ISO image 
> 2008-03-01 22:07:14
> ************************************************************ 
> 2008-03-01 22:07:14 ERROR: Failed while running mkisofs. 
> 2008-03-01 22:07:14
> ************************************************************ 
> 2008-03-01 22:07:14 
> 2008-03-01 22:07:14 Terminated 
> 
> When i tried to burn disc: 
> STAT: fixed 2 VOBUS 
> STAT: fixing VOBU at 2MB (17/3738, 0%)^STAT: fixing VOBU at 4MB
> (33/3738, 0%)^STAT: fixing VOBU at 7MB (49/3738, 1%)^STAT: fixing VOBU
> at 9MB (65/3738, 1%)^STAT: fixing VOBU 
> INFO: dvdauthor creating table of contents 
> INFO: Scanning /storage/Archive/tmp/work/dvd/VIDEO_TS/VTS_01_0.IFO 
> INFO: Creating menu for TOC 
> 
> STAT: Processing /usr/share/mythtv/mytharchive/intro/pal_blank.mpg... 
> 
> INFO: Video pts = 0.184 .. 1.184 
> INFO: Audio[0] pts = 0.184 .. 1.176 
> STAT: VOBU 2 at 0MB, 2 PGCS^ 
> INFO: Generating VMGM with the following video attributes: 
> INFO: MPEG version: mpeg2 
> INFO: TV standard: pal 
> INFO: Aspect ratio: 4:3 
> INFO: Resolution: 720x576 
> INFO: Audio ch 0 format: ac3/2ch, 48khz drc 
> 
> STAT: fixed 2 VOBUS 
> Finished dvdauthor 
> Burning ISO image to /dev/dvd 
> ------------------------------------------------------------ 
> Traceback (most recent call last): 
> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5400,
> in main 
> processJob(job) 
> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5196,
> in processJob 
> BurnDVDISO(title) 
> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 2587,
> in BurnDVDISO 
> write(command) 
> File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 242, in
> write 
> sys.stdout.write(text + "\n") 
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 60-61: ordinal not in range(128) 
> ------------------------------------------------------------ 
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
-- 
- Jaska



More information about the mythtv-dev mailing list