This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10559 - lrcplayer: a plugin to view .lrc file
Attached to Project:
Rockbox
Opened by Teruaki Kawashima (teru) - Sunday, 23 August 2009, 17:13 GMT+2
Last edited by Teruaki Kawashima (teru) - Saturday, 05 June 2010, 14:08 GMT+2
Opened by Teruaki Kawashima (teru) - Sunday, 23 August 2009, 17:13 GMT+2
Last edited by Teruaki Kawashima (teru) - Saturday, 05 June 2010, 14:08 GMT+2
|
DetailsThis is previously posted to FS#7432.
This plugin displays lyrics in .lrc file synchronized with song being played. See attached lrcplayer.txt for details. chages from lrcplayer.3.patch (in FS#7432). * disable reading id3 for low mem targets. * ignore word time tags in enhanced .lrc format instead of displaying them. |
This task depends upon
Closed by Teruaki Kawashima (teru)
Saturday, 05 June 2010, 14:08 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed as r26574
Saturday, 05 June 2010, 14:08 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed as r26574
* implement displaying of enhanced .lrc format.
*update lrcplayer.txt.
Only one problem though. I use minilyrics to download the .lrc files and many of them say "no lyrics" when i try to open them with lrcplayer.
Aah, I see. The files not working are encoded in utf-16, sncrlrc would convert every file into utf8, thats why i never had a problem with the files.
If you could implement the utf-8 converter it would make this program perfect.
But I think that the scheme for lrc files is not perfect, for me at least. I added a lookup in the subfolder of the current playing file. Subfolder name is taken from the settings. Attached is the diff against 8-patch.
As for lrc-file placing scheme I see 3 options.
- The first is to store it alongside the file (it works, but not very clean for me).
- The second is to keep these files in the subfolder (as in this patch).
- And the third - is to store all lyrics in the special root folder, but in this case the lrc file should be named not after mp3 file (it can be renamed or like), but %artist% - %album% - %title%.lrc. The %title% is not enough since there may be different songs with the same title (or even different versions of the same song in different albums). These lrc files could be placed in subfolder, or just en masse in the special folder.
The third one may be the most elegant, but the second is enough to me. And I don't know rockbox internals also :)
1) Commented out viewportmanager_set_statusbar calls - it appears that the plugin works Ok without it with the new statusbar code
2) Disabling theme backdrop on the plugin start (colourful backdrop causes difficulties in reading the lyrics)
3) The changes from my previous diff
* replace viewportmanager_set_statusbar with viewportmanager_theme_enable/viewportmanager_theme_undo and comment out them as they are not in plugin api.
* add checks for lyrics files in subfolder of current audio file (suggested by Boris Nazaroff) and remove some checks.
* use plugin buffer.
Try for example the AR-150 theme.
If the backdrop causes problem, add code to remove it or add theme_enable/theme_undo to plugin_api and uncomment relevant line by yourself.
Revision is 24120.
* reorganized menu tree.
* fix bug that .lrc file may be messed messed after edited under certain condition.
*add manual.
/rockbox-v3_5_1/apps/plugins/lrcplayer.c: In function ‘load_lrc_file’:
/rockbox-v3_5_1/apps/plugins/lrcplayer.c:1026: error: too many arguments to function ‘rb->creat’
/rockbox-v3_5_1/apps/plugins/lrcplayer.c: In function ‘save_changes’:
/rockbox-v3_5_1/apps/plugins/lrcplayer.c:1975: error: too many arguments to function ‘rb->creat’
make: *** [/rockbox-v3_5_1/build/apps/plugins/lrcplayer.o] Error 1
BTW, thanks for the wonderful plugin!
[0:14.612], [1:47.121] and [5:37.809] won't be displayed unless a zero is added to the minute counter like this [00:14.612], [01:47.121] and [05:37.809].
if you want it to recognize tag like [0:14.612], i can add it but maybe take some time.
I have not seen any indication that single digits or more than two digits is an acceptable format for the time specification in an lrc file. All references I have found show the format to be [mm:ss.xx]