[mythtv] [RFC] MythMusic: use libcdio to play & rip CDs (Win32 & MacOSX too)

Jonathan Martens jonathan at snetram.nl
Wed Dec 1 12:15:36 UTC 2010


On 1-12-2010 1:02, Jonathan Martens wrote:
> On 30-11-2010 23:00, Lawrence Rust wrote:
>>> There are some issues with compiling libcio on windows:
>>>
>>> 1. libcdio needs iconv but ./configure under MinGW fails to detect iconv
>>
>> Yes, found that and fixed it by adding --disable-joliet to ./configue
>> (see bottom of my original post).
>
> Have not tried that (yet).

I have applied all you patches (and removed some interfering changes in 
my local tree) and I am able to build mythmusic with support for ripping.

To start ripping I have had to manually update the database as some 
settings (regarding the drive) would not stick through the frontend 
interface resulting in errors like this:

2010-12-01 12:51:08.921 XMLParseBase, Error: Duplicate name: 'banner' in 
parent
'ripstatus'
                         Location: 
D:/mythtv/build/share/mythtv/themes/default/mu
sic-ui.xml @ 1061
                         Name: 'banner'  Type: 'textarea'
++ WARN: could not open input stream...
2010-12-01 12:51:09.093 Error: getSectorCount('Z:\',track=1) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.109 Error: getSectorCount('Z:\',track=2) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.109 Error: getSectorCount('Z:\',track=3) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.109 Error: getSectorCount('Z:\',track=4) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.125 Error: getSectorCount('Z:\',track=5) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.125 Error: getSectorCount('Z:\',track=6) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.140 Error: getSectorCount('Z:\',track=7) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.140 Error: getSectorCount('Z:\',track=8) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.140 Error: getSectorCount('Z:\',track=9) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.156 Error: getSectorCount('Z:\',track=10) failed at 
cdda_ide
ntify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.156 Error: getSectorCount('Z:\',track=11) failed at 
cdda_ide
ntify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.171 Error: getSectorCount('Z:\',track=12) failed at 
cdda_ide
ntify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.171 Error: getSectorCount('Z:\',track=13) failed at 
cdda_ide
ntify()
++ WARN: could not open input stream...
2010-12-01 12:51:09.312 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 1) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:09.546 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 2) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:09.609 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 3) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:09.703 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 4) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:09.796 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 5) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:09.890 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 6) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:09.968 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 7) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:10.046 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 8) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:10.125 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 9) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:10.218 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 10) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:10.296 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 11) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:10.375 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 12) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:51:10.437 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 13) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
2010-12-01 12:51:10.468 MythMainWindow::attach old: none, new: progress, 
thread:
  2916
2010-12-01 12:52:15.390 XMLParseBase, Error: Unknown widget type.
                         Location: C:/Documents and 
Settings/Administrator/.mytht
v/themes/Mythbuntu/menu-ui.xml @ 850
                         Name: ''        Type: 'gradient'
2010-12-01 12:52:56.203 MythMainWindow::attach old: none, new: 
Configuration Dia
log, thread: 2916
QObject::startTimer: QTimer can only be used with threads started with 
QThread
2010-12-01 12:53:17.593 MythMainWindow::attach old: none, new: progress, 
thread:
  2916
2010-12-01 12:53:17.671 MythMainWindow::attach old: MythBusyDialog, new: 
, threa
d: 2916
2010-12-01 12:53:30.843 XMLParseBase, Error: Duplicate name: 'banner' in 
parent
'ripstatus'
                         Location: 
D:/mythtv/build/share/mythtv/themes/default/mu
sic-ui.xml @ 1061
                         Name: 'banner'  Type: 'textarea'
++ WARN: could not open input stream...
2010-12-01 12:53:30.953 Error: getSectorCount('Z:\',track=1) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:30.953 Error: getSectorCount('Z:\',track=2) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:30.953 Error: getSectorCount('Z:\',track=3) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:30.968 Error: getSectorCount('Z:\',track=4) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:30.968 Error: getSectorCount('Z:\',track=5) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:30.984 Error: getSectorCount('Z:\',track=6) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:30.984 Error: getSectorCount('Z:\',track=7) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:30.984 Error: getSectorCount('Z:\',track=8) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:31.000 Error: getSectorCount('Z:\',track=9) failed at 
cdda_iden
tify()
++ WARN: could not open input stream...
2010-12-01 12:53:31.000 Error: getSectorCount('Z:\',track=10) failed at 
cdda_ide
ntify()
++ WARN: could not open input stream...
2010-12-01 12:53:31.000 Error: getSectorCount('Z:\',track=11) failed at 
cdda_ide
ntify()
++ WARN: could not open input stream...
2010-12-01 12:53:31.015 Error: getSectorCount('Z:\',track=12) failed at 
cdda_ide
ntify()
++ WARN: could not open input stream...
2010-12-01 12:53:31.015 Error: getSectorCount('Z:\',track=13) failed at 
cdda_ide
ntify()
++ WARN: could not open input stream...
2010-12-01 12:53:31.078 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 1) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.187 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 2) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.281 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 3) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.343 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 4) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.421 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 5) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.515 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 6) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.578 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 7) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.671 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 8) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.750 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 9) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.828 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 10) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.906 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 11) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:31.968 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 12) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
++ WARN: could not open input stream...
2010-12-01 12:53:32.062 Error: cdda_identify failed for device 'Z:\', 
CDRipperTh
read::ripTrack(tracknum = 13) exiting.
TagLib: Ogg::PageHeader::read() -- error reading page header
TagLib: broken ogg file
2010-12-01 12:53:32.093 MythMainWindow::attach old: none, new: progress, 
thread:
  2916

I need to debug this some more, but my first attempts in looking up a CD 
and ripping it after the manual intervention (setting the drive letter 
from 'default' to 'z:') in the database seems to work.

> Attached is a (manually modified) diff of th ewin32-packager.pl scripts.
> Since I have lots more of local changes/additions in win32-packager.pl
> the line numbers are possible way off, likely only to apply very fuzzy.

Attached is my latest minimal modification to the win32-packager.pl 
script, still need to run it top down from a clean start to see how it 
works, as well as needing to properly write out the patch to a file.
For now I manually created the patch by downloading it from your 
suggested link.
Due to more local changes to the win32-packager.pl script line numbers 
might be off and some fuzziness is needed to apply the patch.

Kind regards,

Jonathan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win32-packager.pl-v2.patch
URL: <http://mythtv.org/pipermail/mythtv-dev/attachments/20101201/54b3747c/attachment.txt>


More information about the mythtv-dev mailing list