You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, sorry it took so long to reply. Basically, writing cdg files is the reverse of reading them, and the format is described in detail here: http://jbum.com/cdg_revealed.html
In short, the CDG format is tied to how the actual CD works, which means 4 packets per sector and 75 sectors per second. Each packet is 24 bytes. Then whatever one writes in the packets will control what happens when someone reads the file. Because the format is very low-bandwidth, the format uses instructions on what to change rather than embedding video.
Hope this helps. Whenever I get my act together, the code in this repository should be able to both read and write CDG files. Hopefully it can be extended with an example player of sorts just to see how it works. Writing an editor for cdg files is probably much harder, but creating new files shouldn't be too hard.
@ionutcristea Turns out there is an open source CDG editor out there: http://cdgmagic.sourceforge.net/. It should be able to both read and write files. See CDG_Magic/Source/CDGMagic_GraphicsEncoder.{h,cpp}
Can you post a little example on how to write cdg files?
The text was updated successfully, but these errors were encountered: