Re: [Pykaraoke-discuss] cdgtools - static
Hey Kelvin, > You could ascertain whether it was the MP3 encode by fiddling with the > cdgrip() function in cdgrip.py. It saves a raw WAV file, then encodes to > MP3. If you're comfortable modifying the Python code then you could try > omitting the MP3 encode step to see whether the raw WAV works (you can > play WAV files in PyKaraoke but obviously they take up a good deal more > room). If endianness is to blame, you can also pass different parameters > to lame to swap endianness. I kinda thought it might be this easy, but I hadn't had a chance to look at the code yet. Just did so and after fiddling with a few lame options, I found that --big-endian did indeed fix the problem. BTW, it's not WAVs that are stored temporarily, but rather raw PCM data, so I think that's what gives lame a hard time since it can't auto-detect. I wonder what cdparanoia uses to autodetect the endianness (and any number of other parameters)...? Anyway, I'll take this moment to humbly submit two feature requests for cdgtools: 1. Encode real WAVs by default and optionally encode MP3s. I personally prefer not to use MP3 at all, both due to patent reasons and because OGG is just better. A switch to encode OGGs would be great as well. 2. Add an option to cdgrip to allow one to pass switches/options to the underlying encoding programs. It would let people like me get around any endian or signed issues that crop up. Thanks again for all of the hard work! tim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] cdgtools - static
Hi Tim, You could ascertain whether it was the MP3 encode by fiddling with the cdgrip() function in cdgrip.py. It saves a raw WAV file, then encodes to MP3. If you're comfortable modifying the Python code then you could try omitting the MP3 encode step to see whether the raw WAV works (you can play WAV files in PyKaraoke but obviously they take up a good deal more room). If endianness is to blame, you can also pass different parameters to lame to swap endianness. Cheers, Kelvin. >> I think it is possible to use cdparanoia for making the >> mp3 files. Maybe the cdg and the mp3 files are out >> of sync, but I don't expect there will be any troubles. > > Yup, this actually worked pretty well. I just used cdparanoia to rip > the audio to .wav and now it sounds great and is in sync, as far as I > can tell. My wife is much happier. =) > > I wonder if there's some endian issue that cdrdao had that cdparanoia > picked up on. Seems to be a likely explanation given the fact that the > broken MP3 tracks would actually start the audio (static) at the correct > time. > > Anyway, I'm up and running. Thanks again, > tim > > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > ___ > Pykaraoke-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss > -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] cdgtools - static
> I think it is possible to use cdparanoia for making the > mp3 files. Maybe the cdg and the mp3 files are out > of sync, but I don't expect there will be any troubles. Yup, this actually worked pretty well. I just used cdparanoia to rip the audio to .wav and now it sounds great and is in sync, as far as I can tell. My wife is much happier. =) I wonder if there's some endian issue that cdrdao had that cdparanoia picked up on. Seems to be a likely explanation given the fact that the broken MP3 tracks would actually start the audio (static) at the correct time. Anyway, I'm up and running. Thanks again, tim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] cdgtools - static
I think it is possible to use cdparanoia for making the mp3 files. Maybe the cdg and the mp3 files are out of sync, but I don't expect there will be any troubles. give it a try, floris Tim schreef: > Floris, > > >> I don't know how to rip a karaoke cd, but maybe I can >> help you a little bit to understand some things. >> >> When you use cdg files you need two files. One sound file >> like "some_song.mp3" and a lyric-file like "some_song.cdg" >> pycdg will look for a pair of files with the same name but >> one has the cdg extension and the other the mp3 (or an >> other sound format) >> >> The cdg file contains just the lyrics and is only a few Mb large >> > > Ah, ok, thanks for the tip. I was thinking initially that the graphics > were somehow embedded in these file formats and that the .cdg files were > raw audio + graphics. > > So it sounds like the mp3 encoding is broken. Is there a way to just > have cdgrip encode to a .wav file instead of encoding to mp3? I don't > really care which format it is... honestly all I want to do is play the > darn CD. Can I just use cdparanoia to rip the audio tracks like a > normal CD and then use the .cdg files I already have (which seem to > work)? > > thanks! > tim > -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] cdgtools - static
Floris, > I don't know how to rip a karaoke cd, but maybe I can > help you a little bit to understand some things. > > When you use cdg files you need two files. One sound file > like "some_song.mp3" and a lyric-file like "some_song.cdg" > pycdg will look for a pair of files with the same name but > one has the cdg extension and the other the mp3 (or an > other sound format) > > The cdg file contains just the lyrics and is only a few Mb large Ah, ok, thanks for the tip. I was thinking initially that the graphics were somehow embedded in these file formats and that the .cdg files were raw audio + graphics. So it sounds like the mp3 encoding is broken. Is there a way to just have cdgrip encode to a .wav file instead of encoding to mp3? I don't really care which format it is... honestly all I want to do is play the darn CD. Can I just use cdparanoia to rip the audio tracks like a normal CD and then use the .cdg files I already have (which seem to work)? thanks! tim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
Re: [Pykaraoke-discuss] cdgtools - static
I don't know how to rip a karaoke cd, but maybe I can help you a little bit to understand some things. When you use cdg files you need two files. One sound file like "some_song.mp3" and a lyric-file like "some_song.cdg" pycdg will look for a pair of files with the same name but one has the cdg extension and the other the mp3 (or an other sound format) The cdg file contains just the lyrics and is only a few Mb large Tim schreef: > Hello valiant PyKaraoke developers, > > I just bought my wife her first karaoke CD which has 6 tracks with > vocals and the same 6 tracks without vocals. The specific CD is #40024 > from Chartbuster. I followed the instructions listed here: > http://www.kibosh.org/cdgtools/usage.php > > to rip and encode the tracks, which I guess is required to play it. > Everything seemed to work, in that I didn't get any real warnings or > errors during the rip/encode. However, playing the tracks is another > story... > > When I play the produced mp3 files (with pympg), I get an all-black > window and static in the audio. That's it. However, when I play the > .cdg files (with pycdg), the video comes up just fine, but the audio > remains all static. The static starts at approximately the time when > you'd expect the music to start. > > I've tried performing the rip two different ways with cdrdao: > > $ cdrdao read-cd --driver generic-mmc-raw --device /dev/hdc --read-subchan > rw_raw mycd.toc > > $ cdrdao read-cd --driver generic-mmc-raw --device /dev/hdc --read-subchan > rw_raw --no-mode2-mixed mycd.toc > > (Note that the `--read-subchan rw' option does not work with the drive I > have.) > > Another curious data point... the .cdg files are actually smaller than > the .mp3 files. I would have expected the opposite. Is the audio track > not even making it into the .cdg? > > I've run out of ideas... can anyone supply me with more? > > thanks, > tim > > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > ___ > Pykaraoke-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss > -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Pykaraoke-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pykaraoke-discuss
