First create a midi file with lyrics using nted as explained in the documentation. Make sure the midi score doesn't start with rests as this causes music/video synchronisation issues. Export the nted score you have created in midi format.
Download and unpack this script into your folder which contains the pykaraoke scripts and make the script executable. Run the script with the first argument as the midi file and the second argument as the soundfont e.g.:
karaoke /midi_files/my_midi_file.mid /my_soundfonts/soundfont.SF2
The script produces a standard video in mp4 format. You can also run the nted midi file directly using a progam such as kmid but the music won't be synchronised accurately with the lyrics in my experience and the output is not so easily shared as an mp4 video.
The script assumes:
- python 2, mjpegtools, mplayer, ffmpeg and fluidsynth are installed
- you are running the script from the same folder into which you have downloaded the pykaraoke scripts (pykaraoke also has its own dependencies)
- a soundfont is available on your system (such as FluidR3_GM.sf2)
Any further information needed, please leave a comment.
No comments:
Post a Comment