Skip to content

UraYukimitsu/Gyakuten_Radio

Repository files navigation

Gyakuten Radio

This is the code behind Gyakuten Radio.

Dependencies

This radio uses ffmpeg and imagemagick.

Initial setup

In stream.sh, edit the variables STREAM_URL and KEY near the top of the file according to what you need.

Grab the JF Dot K14 font from here, and the Igiari font here, and put them in a new folder named fonts.

If you don't appreciate my beautiful art, you're also going to want to replace courtroom.png with something else, but I'm sure you can figure out where to find it yourself.

Next, you'll want to add some character pictures of your liking in characterPics. I have included one of my own creations as an example.

Finally, add music in some subfolders. The album art should be named Folder.jpg. I have included an example of what a music subfolder looks like in TurnaboutThrowback (please come listen to it on YouTube too if you want!)

Once all that is done, run ./init.sh to generate the files playlist.txt and imgList.txt.

Running the radio

After the initial setup is done, you can run the radio simply by running ./stream_playlist.sh. Please note that it will run as a foreground task so run it inside tmux or something like that if you're doing it in a console-only environment.

If you want to force the radio to play a certain song, create a file named overrideList.txt and write the path to your music file inside it.

To skip a song, press Ctrl+C.

To stop the radio, hold Ctrl+C until it stops completely.

To add songs and/or new character pictures, just add them like you did in Initial setup and run ./init.sh again. You can even do it while the radio is running.

About

ffmpeg-powered live music YouTube radio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages