cdg2bin.py

Help
2006-01-21
2013-04-15
  • Peter McGuire
    Peter McGuire
    2006-01-21

    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?

     
    • brad thompson
      brad thompson
      2008-06-24

      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

       
      • Kelvin Lawson
        Kelvin Lawson
        2008-06-24

        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.