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

Mailing List Archive: MythTV: Dev

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

 

 

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


teet.niin at gmail

Mar 3, 2008, 12:32 PM

Post #1 of 8 (1320 views)
Permalink
Mytharchive Burning Error (Recording includes fonts: üõöä)

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)
------------------------------------------------------------


jaakko.heikkila at gmail

Mar 22, 2008, 9:47 AM

Post #2 of 8 (1202 views)
Permalink
Re: Mytharchive Burning Error (Recording includes fonts: üõöä) [In reply to]

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

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


teet.niin at gmail

Mar 23, 2008, 1:56 AM

Post #3 of 8 (1193 views)
Permalink
Re: Mytharchive Burning Error (Recording includes fonts: üõöä) [In reply to]

Thanks for replay
Heres what i have found!
/usr/share/mythtv/archive/scripts/mythburn.py
i changed lines 5192 and 5196

#Create the DVD ISO image
if docreateiso == True or mediatype == FILE:
L5192 CreateDVDISO(title.encode("utf-8"))

#Burn the DVD ISO image
if doburn == True and mediatype != FILE:
L5196 BurnDVDISO(title.encode("utf-8"))

It helped on my case.
Ticket(from i got info for burning dvd.s):
http://svn.mythtv.org/trac/ticket/5005
Hope some devs look into it and add it into fixes or 0.21.1.
If this is really dirty hack then some better solution would be handy :)



Jaakko Heikkilä wrote:
> 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
>>




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


mythtv at dsl

Mar 23, 2008, 3:23 AM

Post #4 of 8 (1196 views)
Permalink
Re: Mytharchive Burning Error (Recording includes fonts: üõöä) [In reply to]

Teet Niin wrote:
> Thanks for replay
> Heres what i have found!
> /usr/share/mythtv/archive/scripts/mythburn.py
> i changed lines 5192 and 5196
>
> #Create the DVD ISO image
> if docreateiso == True or mediatype == FILE:
> L5192 CreateDVDISO(title.encode("utf-8"))
>
> #Burn the DVD ISO image
> if doburn == True and mediatype != FILE:
> L5196 BurnDVDISO(title.encode("utf-8"))
>
> It helped on my case.
> Ticket(from i got info for burning dvd.s):
> http://svn.mythtv.org/trac/ticket/5005
> Hope some devs look into it and add it into fixes or 0.21.1.
> If this is really dirty hack then some better solution would be handy :)
>

I did have a quick look at this a few days ago. The problem with your
fix is that it can cause other problems because most other functions
expect to be passed ascii not utf8 strings. There's also the question of
what encoding the volumeid for a dvd should be in. I did a quick search
of the growisofs man page but didn't find the answer to that.

Possible solutions:-

1. Don't bother to use the first files title for the dvd's volumeid just
have a fixed name like before. (my favorite since it's the quickest fix
;-) )

2. Convert the title to ascii and use that for the volumeid. The only
problem with this is any accented characters would be converted to the ?
character.

3. Convert the title to utf8 and fix the other functions where the title
is passed to handle the utf8 strings properly. (proper fix but requires
the most amount of work ;-( )

Thoughts?

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


jaakko.heikkila at gmail

Mar 23, 2008, 5:56 AM

Post #5 of 8 (1186 views)
Permalink
Re: Mytharchive Burning Error (Recording includes fonts: üõöä) [In reply to]

su, 2008-03-23 kello 10:23 +0000, Paul Harrison kirjoitti:
> Teet Niin wrote:
> > Thanks for replay
> > Heres what i have found!
> > /usr/share/mythtv/archive/scripts/mythburn.py
> > i changed lines 5192 and 5196
> >
> > #Create the DVD ISO image
> > if docreateiso == True or mediatype == FILE:
> > L5192 CreateDVDISO(title.encode("utf-8"))
> >
> > #Burn the DVD ISO image
> > if doburn == True and mediatype != FILE:
> > L5196 BurnDVDISO(title.encode("utf-8"))
> >
> > It helped on my case.
> > Ticket(from i got info for burning dvd.s):
> > http://svn.mythtv.org/trac/ticket/5005
> > Hope some devs look into it and add it into fixes or 0.21.1.
> > If this is really dirty hack then some better solution would be handy :)

Source for the problem is actually write function (line 242) which
generates log, not CreateDVDISO or BurnDVDISO functions themselves.

> I did have a quick look at this a few days ago. The problem with your
> fix is that it can cause other problems because most other functions
> expect to be passed ascii not utf8 strings. There's also the question of
> what encoding the volumeid for a dvd should be in. I did a quick search
> of the growisofs man page but didn't find the answer to that.

If I understood right DVD standard recommends ECMA-6 which is actually
us-ascii character set.

> Possible solutions:-
>
> 1. Don't bother to use the first files title for the dvd's volumeid just
> have a fixed name like before. (my favorite since it's the quickest fix
> ;-) )
>
> 2. Convert the title to ascii and use that for the volumeid. The only
> problem with this is any accented characters would be converted to the ?
> character.
>
> 3. Convert the title to utf8 and fix the other functions where the title
> is passed to handle the utf8 strings properly. (proper fix but requires
> the most amount of work ;-( )
>
> Thoughts?

Maybe this fourth option is best(?):
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871
Convert unicode characters to closest ascii equivalents.

But if have to choose from these three options, I would go with #2.
After all title encoding is not very important issue. Title of the dvd
is hardly never used. Most important thing is that DVD authoring process
is error free.

--
- Jaska

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


derliebegott at gmail

Mar 24, 2008, 10:45 AM

Post #6 of 8 (1185 views)
Permalink
Re: Mytharchive Burning Error (Recording includes fonts: üõöä) [In reply to]

2008/3/23, Jaakko Heikkilä <jaakko.heikkila[at]gmail.com>:
> su, 2008-03-23 kello 10:23 +0000, Paul Harrison kirjoitti:
>
> > Teet Niin wrote:
> > > Thanks for replay
> > > Heres what i have found!
> > > /usr/share/mythtv/archive/scripts/mythburn.py
> > > i changed lines 5192 and 5196
> > >
> > > #Create the DVD ISO image
> > > if docreateiso == True or mediatype == FILE:
> > > L5192 CreateDVDISO(title.encode("utf-8"))
> > >
> > > #Burn the DVD ISO image
> > > if doburn == True and mediatype != FILE:
> > > L5196 BurnDVDISO(title.encode("utf-8"))
> > >
> > > It helped on my case.
> > > Ticket(from i got info for burning dvd.s):
> > > http://svn.mythtv.org/trac/ticket/5005
> > > Hope some devs look into it and add it into fixes or 0.21.1.
> > > If this is really dirty hack then some better solution would be handy :)
>
>
> Source for the problem is actually write function (line 242) which
> generates log, not CreateDVDISO or BurnDVDISO functions themselves.
>
>
> > I did have a quick look at this a few days ago. The problem with your
> > fix is that it can cause other problems because most other functions
> > expect to be passed ascii not utf8 strings. There's also the question of
> > what encoding the volumeid for a dvd should be in. I did a quick search
> > of the growisofs man page but didn't find the answer to that.
>
>
> If I understood right DVD standard recommends ECMA-6 which is actually
> us-ascii character set.
>
>
> > Possible solutions:-
> >
> > 1. Don't bother to use the first files title for the dvd's volumeid just
> > have a fixed name like before. (my favorite since it's the quickest fix
> > ;-) )
> >
> > 2. Convert the title to ascii and use that for the volumeid. The only
> > problem with this is any accented characters would be converted to the ?
> > character.
> >
> > 3. Convert the title to utf8 and fix the other functions where the title
> > is passed to handle the utf8 strings properly. (proper fix but requires
> > the most amount of work ;-( )
> >
> > Thoughts?
>
>
> Maybe this fourth option is best(?):
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871
> Convert unicode characters to closest ascii equivalents.
>
> But if have to choose from these three options, I would go with #2.
> After all title encoding is not very important issue. Title of the dvd
> is hardly never used. Most important thing is that DVD authoring process
> is error free.
>
>
> --
> - Jaska



Sorry for off topic, but I just remembered that I also saw one bug in
MythArchive yesterday. I am using maybe 5 weeks old SVN version and
this bug is maybe already repaired.

When you try to burn files (not recordings or videos from mythvideo),
it will fail when the files have "space" in it the name (two or more
words). I think that mkisofs gives an error. There are probably quotes
missing somewhere, because it is not able to find a file.

I can test it today again if you want and if this is not repaired.

Sorry for off topic one more time.
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


teet.niin at gmail

Mar 25, 2008, 5:08 AM

Post #7 of 8 (1169 views)
Permalink
Re: Mytharchive Burning Error (Recording includes fonts: üõöä) [In reply to]

It seems this problem has been fixed:
http://svn.mythtv.org/trac/changeset/16783
I will test it later on tonight, lets hope this is solution for many
european countries :).


mythtv at dsl

Mar 25, 2008, 5:08 AM

Post #8 of 8 (1171 views)
Permalink
Re: Mytharchive Burning Error (Recording includes fonts: üõöä) [In reply to]

Jaakko Heikkilä wrote:
> su, 2008-03-23 kello 10:23 +0000, Paul Harrison kirjoitti:
>
>> I did have a quick look at this a few days ago. The problem with your
>> fix is that it can cause other problems because most other functions
>> expect to be passed ascii not utf8 strings. There's also the question of
>> what encoding the volumeid for a dvd should be in. I did a quick search
>> of the growisofs man page but didn't find the answer to that.
>>
>
> If I understood right DVD standard recommends ECMA-6 which is actually
> us-ascii character set.
>
>

That's what I suspected. Best to convert to plain ascii I think.

>> Possible solutions:-
>>
>> 1. Don't bother to use the first files title for the dvd's volumeid just
>> have a fixed name like before. (my favorite since it's the quickest fix
>> ;-) )
>>
>> 2. Convert the title to ascii and use that for the volumeid. The only
>> problem with this is any accented characters would be converted to the ?
>> character.
>>
>> 3. Convert the title to utf8 and fix the other functions where the title
>> is passed to handle the utf8 strings properly. (proper fix but requires
>> the most amount of work ;-( )
>>
>> Thoughts?
>>
>
> Maybe this fourth option is best(?):
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871
>

Thanks for this link some very useful information here.

> Convert unicode characters to closest ascii equivalents.
>
> But if have to choose from these three options, I would go with #2.
> After all title encoding is not very important issue. Title of the dvd
> is hardly never used. Most important thing is that DVD authoring process
> is error free.
>
>
OK - I went with option 4 - Convert unicode characters to closest ascii
equivalents :-)

I used the simplest method from the link you provided :-
title = unicodedata.normalize('NFKD', title).encode('ASCII', 'ignore')

Seemed to work OK with the few test cases I tried with it.

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

MythTV dev 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.