I'm using Mp3tag's "Tools" feature to batch run FFmpeg in Windows, in order to batch extract the embedded lyrics content (USLT frame of ID3v2 tag) from MP3 files, I know with FFmpeg I can do something like:
-i "%_path%" -f ffmetadata "%_folderpath%\%_filename%.txt"
"%_path%" = full path of the MP3 file
"%_folderpath%%_filename%.txt" = path and filename of the exported txt file.
The command above extracts all the metadata from MP3 file and export them into a txt file with the following cotent for example:
;FFMETADATA1
album=name of the album
artist=name of the artist
title=name of the title
lyrics-eng=[00:01.23]line1 of lyrics
\
[00:04.56]line2 of lyrics
\
[00:07.89]line3 of lyrics
\
[01:03.12]3rd last line of lyrics
\
[02:04.34]2nd last line of lyrics
\
[03:05.67]Last line of lyrics
\
date=2020
encoder=Lavf59.23.100
(the original lyrics uses Simple LRC format with timestamps in each line, certain lines contain only the timestamp with empty lyrics)
(There might (or might not) be additional metadata (e.g. date and encoder in the example above) following the lyrics part)
As seen above, the backslash "\" (which is not present in the original lyrics) is somehow added after each line of lyrics, between CR (CarriageReturn) and LF (LineFeed) as seen in Notepad++ (the original lyrics use CRLF as EOL characters).
So how do I modify the given command line to export only the lyrics part (exluding all other metadata and the extra backslash "\"), an example of the expected text file content is shown below:
[00:01.23]line1 of lyrics
[00:04.56]line2 of lyrics
[00:07.89]line3 of lyrics
[01:03.12]3rd last line of lyrics
[02:04.34]2nd last line of lyrics
[03:05.67]Last line of lyrics
with the original EOL characters from lyrics such as CRLF