I have unpacked cdgtools with all required dependencies listed on the cdgtools site including python. When I try to create a cdg file using cdg2bin.py, I get:
bash: cdg2bin.py: command not found
Can you please help?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
try something like
python /home/me/cdgtools/cdg2bin.py -r *.cdg
if cdg2bin is not in your path you need give it a path
you also need to invoke python, which hopefully is in your path
hope this helps.
i use this bash script called karaburn
#!/bin/bash
#
# karaburn.py
# - choose the tracks you want to burn and number them in the order you want them
# i put the cdgtools code in a folder under bin. bin is in my path
# to run karaburn, just cd to the dir where the tracks are and type karaburn
#
# http://www.kibosh.org/cdgtools/
# takes all the cdg and matching mp3 files in a dir and puts them in a file for cdrdao to write
python /home/brad/bin/cdgtools/cdg2bin.py -r *.cdg
#
# http://cdrdao.sourceforge.net/
# cdrdao uses the cdg.bin, .toc and .txt files produced by cdg2bin
# you might need a different cdrdao driver
# specify the the proper --device for your machine
sudo cdrdao write --driver generic-mmc-raw --device /dev/cdrw cdg.toc
# i use sudo because cdrdao complains about the real time scheduler without it
the only problem is I have not successfully written a karaoke disc. it plays as an audio cd but the cdg info is scrambled.
for what it is worth, I wrote this script to rip karaoke cd's. the files can be played in pykaraoke:
#!/bin/bash
#
# kararip
# rips a karaoke cd to mp3 and cdg files. These will play with pykaraoke
# create a directory to hold the tracks and cd in to it.
# i put the cdgtools code in a folder under bin. bin is in my path
# then just type in kararip
# http://cdrdao.sourceforge.net/
# reads karaoke discs into a big file for cdgrip to turn into mp3 and cdg files
cdrdao read-cd --driver generic-mmc-raw --device /dev/cdrw --read-subchan rw_raw mycd.toc
# you might need a different cdrdao driver
# specify the the proper --device for your machine
Thanks for the scripts. For issues with cdg2bin you might get some luck if you write on the pykaraoke-discuss mailing list - I think the author of cdg2bin is more likely to see messages on there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have unpacked cdgtools with all required dependencies listed on the cdgtools site including python. When I try to create a cdg file using cdg2bin.py, I get:
bash: cdg2bin.py: command not found
Can you please help?
try something like
python /home/me/cdgtools/cdg2bin.py -r *.cdg
if cdg2bin is not in your path you need give it a path
you also need to invoke python, which hopefully is in your path
hope this helps.
i use this bash script called karaburn
#!/bin/bash
#
# karaburn.py
# - choose the tracks you want to burn and number them in the order you want them
# i put the cdgtools code in a folder under bin. bin is in my path
# to run karaburn, just cd to the dir where the tracks are and type karaburn
#
# http://www.kibosh.org/cdgtools/
# takes all the cdg and matching mp3 files in a dir and puts them in a file for cdrdao to write
python /home/brad/bin/cdgtools/cdg2bin.py -r *.cdg
#
# http://cdrdao.sourceforge.net/
# cdrdao uses the cdg.bin, .toc and .txt files produced by cdg2bin
# you might need a different cdrdao driver
# specify the the proper --device for your machine
sudo cdrdao write --driver generic-mmc-raw --device /dev/cdrw cdg.toc
# i use sudo because cdrdao complains about the real time scheduler without it
the only problem is I have not successfully written a karaoke disc. it plays as an audio cd but the cdg info is scrambled.
for what it is worth, I wrote this script to rip karaoke cd's. the files can be played in pykaraoke:
#!/bin/bash
#
# kararip
# rips a karaoke cd to mp3 and cdg files. These will play with pykaraoke
# create a directory to hold the tracks and cd in to it.
# i put the cdgtools code in a folder under bin. bin is in my path
# then just type in kararip
# http://cdrdao.sourceforge.net/
# reads karaoke discs into a big file for cdgrip to turn into mp3 and cdg files
cdrdao read-cd --driver generic-mmc-raw --device /dev/cdrw --read-subchan rw_raw mycd.toc
# you might need a different cdrdao driver
# specify the the proper --device for your machine
# http://www.kibosh.org/cdgtools/
# creates the tracks
python /home/brad/bin/cdgtools/cdgrip.py --delete-bin-toc --with-cddb mycd.toc
If i can figure it out, I am trying to make the cdg2bin.py work.
enjoy
bt
Thanks for the scripts. For issues with cdg2bin you might get some luck if you write on the pykaraoke-discuss mailing list - I think the author of cdg2bin is more likely to see messages on there.