I noticed a fixes/35 commit dated the 1st March this year for mytharchive, Commit 70cb82b.
I was under the impression that mytharchive was no longer maintained?
Since a new install of Ubuntu 24.04/Mythbuntu V35 with a restored database I have been unable get mytharchive to work, creating a DVD or ISO. mythburn.log shows "AttributeError: 'ImageDraw' object has no attribute 'textsize'" this is because 'textsize is deprecated.
Previous versions of MythTV/mytharchive I have been able to get working by finding fixes on forum searches and poke and hope.
Does anyone archive recordings creating DVD/ISO using mytharchive or some other tools external to MythTV?
Thanks.
Last edited by Steve Goodey on Thu Apr 17, 2025 9:52 pm, edited 2 times in total.
Reason:Corrected Ubuntu version.
Pretty sure last time I burned a DVD I just used k3b to create the image and burn.
Or maybe it was nuvexport.
Oh, and handbrake to transcode. You can use a GUI to set up all your options and maybe transcode a recording or two, or use the CLI with those settings if you're doing a batch. And it'll use more than one core for a single transcode (I use taskset to restrict it because it'll use all available cores) - I don't know how to do that with ffmpeg.
if drawer.textlength(' '.join(thistext),font.getFont()) > containerWidth:
Take care on the indentation and insert spaces correctly.
Could you please check this ?
Thank you,
Roland
P.S: This error only pops up in python pillow > 10.0, which is in Ubuntu Noble (24.04).
Are you really observing this on Ubuntu 22.04 as stated above?
if drawer.textlength(' '.join(thistext),font.getFont()) > containerWidth:
fixed it... until the next error
File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 283, in drawText
textwidth, textheight = self.font.getsize(text)
^^^^^^^^^^^^^^^^^
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
Doing a search in mythburn.py shows a load of 'getsize' used and, sure enough, 'getsize' has also been deprecated.
So that's a lot of work for me who's not a coder
It seems a workaround is
pip uninstall pillow
pip install Pillow==9.5.0
I haven't tried this. Thanks very much for your suggested fix. Time to move on.