Karaoke Video Maker
Operator: Abdulla Al Fahad. How tools are built and checked
A plain .lrc file says only when each line starts, so a karaoke video has to decide how fast the highlight crosses it.
The rule here is that a line-timed wipe lasts until the next line starts but never longer than the Longest line wipe setting (6 seconds by default), and the final line, which has no successor, wipes for the Last line wipe setting (4 seconds by default). A line with word times, such as <00:06.50>Sing <00:07.00>it <00:07.40>out <00:08.00>loud, moves word by word instead.
A song, an .lrc file and a picture or a colour become a karaoke video in which the current line wipes from dim to your highlight colour, the next two lines wait dimmed below it, and an optional title card opens the video.
Key features
- Line timing or enhanced word timing, read from the same .lrc file
- Landscape (1280 x 720 or 1920 x 1080), square or vertical frames, with your own colours and a darkened background picture
- A preview you can scrub and play with the song, and a title card of 1 to 15 seconds
How LRC timing becomes the highlight wipe
The reader accepts [mm:ss.xx] time tags, several to a line for repeated choruses, enhanced <mm:ss.xx> word tags, [ti:] and [ar:] tags, and an [offset:] tag, which is applied and removed. Lines without a time tag are skipped and counted. A file may hold up to 500 lines and 1 MB, and binary files are refused. The background is a JPEG, PNG or WebP of up to 25 MB, scaled to cover the frame and darkened by 0 to 85%. The video lasts the title card plus the song plus half a second, up to 15 minutes, at 30 frames a second as MP4 or WebM, with the song as its soundtrack at 128 kbit/s.
How it works
Every timed line gets a wipe end. With word times it is the last word's time plus 0.09 s for each letter of that word, at least 0.3 s. With line timing it is the next line's start or the start plus the longest wipe, whichever is sooner; for the last line, which has no next line, the start plus the Last line wipe stands in for the next start, and the longest wipe still caps it. A word without a time inside a timed line is spaced 0.4 s after the last timed word, or evenly between the two timed words around it.
At each frame the highlighted distance along the line follows from the time: between two word times it crosses that word's width linearly, and under line timing it moves at a steady speed. The line is wrapped to 86% of the frame width. The dimmed text is drawn first and the highlight is clipped to the travelled width over it, row by row, so a line of two rows fills its first row and then its second.
Typical uses
- A language class singing a 3:20 nursery song: a vertical 1080 x 1920 frame for phones, text at 9% of the short side and no title card.
- A birthday video from a 2:45 song: landscape 1920 x 1080 with the party photo darkened by 55% and a 5-second title card.
Building one
- Drop the song, then drop an .lrc file or paste the lyrics with their time tags.
- Choose the frame, colours, text size and an optional background picture.
- Fill in the title and artist for a title card, or leave them empty for none.
- Scrub or play the preview, then press Render karaoke video.
Example
An .lrc file with title and artist tags, a 4 s title card, and the default Longest line wipe (6 s) and Last line wipe (4 s)
[ti:Demo]
[ar:Band]
[00:05.00]Twinkle twinkle little star
[00:10.00]<00:10.00>How <00:10.50>I <00:11.00>wonder <00:12.00>what you are
[00:20.00]Up above the world so high
[00:30.00]Like a diamondWhen each line's highlight moves
Line 1: wipes 5.0 s to 10.0 s (until the next line)
Line 2: word by word; 'what' at 12.0 s, 'you' at 12.4 s, 'are' at 12.8 s, done at 13.1 s
Line 3: wipes 20.0 s to 26.0 s (the 6 s limit, though the next line is at 30.0 s)
Line 4: wipes 30.0 s to 34.0 s (the last line has no next line, so the 4 s Last line wipe applies)
With the card, the song starts at 4.0 s of the video, so line 1 begins at 9.0 sTips for best results
- Keep lines under about 40 characters; a longer line wraps to a second row, which the wipe fills after the first.
- Raise the longest line wipe for slow ballads, where a line can last 8 s, and lower it for fast songs so the wipe finishes before the next line. Set the last line wipe to match how long the closing line is actually held.
- Darken a bright photo to 55% or more: the dimmed text is white at 55% opacity for the current line and 40% for the others, and it washes out on light areas.
Things to check before you rely on it
Rendering is real time, so the render takes as long as the video.
Text is drawn in the system's sans-serif font, so the look differs a little between Windows, macOS and Linux, and a script your system has no font for will show as boxes.
Common errors and how to fix them
- "song.lrc" has no time tags such as [01:23.45]
- The file is plain lyrics. Time them first, for example by tapping along in LRC Lyrics Editor, then load the result.
- This track is 17:40 long. The video can last up to 15 minutes
- Cut the song down with Audio Cutter first, since the whole track plays in real time during the render.
- "photo.heic" could not be opened as a picture
- Convert it to a JPG, PNG or WebP first; most browsers cannot decode HEIC.
- The browser blocked audio playback
- That is the preview's player; click Play again after interacting with the page.
Best practices
- Fix the timing in an LRC editor first; the video cannot be better synchronised than the file it is built from.
- Put the title and artist in the file's [ti:] and [ar:] tags, and they fill the title card for you.
- Check the first and last lines in the preview before rendering: the first shows any offset, and the last shows whether the wipe length fits.
Line timing against word timing
A plain LRC line stamps only where the line starts, so the wipe has to guess its speed, and a line sung faster or slower than that speed finishes early or late. Enhanced LRC adds a time before each word, and the highlight then crosses each word exactly between its time and the next one's. If only some words have times, the others are filled in around them, so a partly timed file still renders; mark every word for the closest match.
Frequently asked questions
Can I use an .srt file instead?
Not directly. This page reads LRC, and an SRT cue's start time can be written as a [mm:ss.xx] tag in front of its text to make a line-timed file.
Why does the highlight sometimes finish before the singer does?
Under line timing the wipe moves at a steady speed from the line's start. A line sung more slowly than that runs on after the wipe is full; word times remove the guesswork.
How good is the audio in the video?
The song is re-encoded by the browser's recorder at 128 kbit/s, so it is a second generation of any lossy source.