Project

General

Profile

Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin)

Added by Pascual Lucero almost 5 years ago

Hello!

I have this questions. I use the LyricWiki plugin for viewing lyrics of songs, but of course many songs have no lyrics associated in LyricsWikia. But on many files, I have created LRC files (specially for non english songs like Russian Folk Music, Eastern Music and Opera Songs) which allow me to see the lyrics in my phone (Android players like Musicolet support viewing embedded lyrics as long as the lrc file has the same name as the mp3 file).

Is there a way for modifyng the LyricWiki plugin so that in case a lrc file is present, those lyrics are shown in the window instead of the present (or not) in lyricswikia?

Thanks in advance for this wonderful player which I use in Linux Mint and Windows from a long, long time ago!


Replies (12)

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Jim Turner over 4 years ago

Can you provide a sample .lrc file for us (I've never seen one or used one)? If so, I'll look into implementing this.

Regards,

Jim

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Pascual Lucero over 4 years ago

Hello, I posted this a long time ago and I was resigned that nobody cared, so I am pleasantly surprised that this caught your attention. Thanks for answering.

LRC files are simply text files (similar to srt files in video files), but saving as .lrc, several Android players recognize them and lyrics are shown when you play those files.

I attach two files: An mp3 song and the corresponding LRC file I created.

Hopefully you can implement this. I am not an expert but I have the feeling this is simple enough to be implemented by you guys.

PS: And given that lyricswikia plugin is not working at this time (october 2019) in Audacious when retrieving online lyrics (as reported in https://www.redmine.audacious-media-player.org/issues/888 ), the option of viewing offline lyrics in the same folder is quite useful and specially if there are not online lyrics in lyrics.wikia.com page)

Thanks a lot!

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Jim Turner over 4 years ago

Thanks Pascual for the example! I've now started working on this & have the GTK version seeming to work pretty well, including the ability to save lyrics fetched from lyricwiki to a local file via the lyricwiki plugin gui. Will have to now implement the QT side as well. I'm also looking into implementing it w/CD disks as well.

I'm the creator and developer for the Fauxdacious project (https://wildstar84.wordpress.com/fauxdacious/), a fork of Audacious that also plays videos and DVDs, etc. This is where I'll be implementing this for now. When finished with this, you'll be able to get and build it from the github site (unless you are running Windows).

One thing that will be slightly different - the lyric file will be (ie. yoursongfile.mp3) yoursongfile.mp3.lrc instead of yoursongfile.lrc, and, looked for first in the same directory as the song, then, in ~/fauxdacious[_instancename]/ (the config directory), then lyricwiki will be queried (as is the case now).

Regards,

Jim

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Jim Turner over 4 years ago

I have now implemented these features! See the latest plugins commit on my github site: (https://github.com/wildstar84). Also see the updated FAQ (linked from the website in my prev. reply). I'll pbly submit this commit to the Audacious team, after it has some time to settle down (further use / testing), but I have no idea if they'll be interested in implementig it though. Anyway, you can follow the instructions on the github sight for building and testing (it's not that difficult in modern Linux/Unix and won't disturb your current Audacious installation)!

Oh, and btw, I did change the naming convention from "yoursongfile.mp3.lrc" to "yoursongfile.lrc", so, if your lyric files are already named and stored with your songs as is with your example, after installing, it should just work for you!

Enjoy!

Jim

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Pascual Lucero over 4 years ago

Hello,

Thanks for your reply. Hopefully one of the Audacious developers take interest in implementing this commit of yours for viewing local lyrics in the lyricwiki window.

But on the other hand, I tried to build your software following the instructions from your github site (I am not an expert so I appreciate you gave complete instructions on how to do it). However, when I tried to do the "make" command in fauxdacious-plugin, the terminal showed the following error

...
Entering directory ffaudio.
Successfully generated dependencies.
Successfully compiled ffaudio-core.cc (plugin).
Successfully compiled ffaudio-io.cc (plugin).
/usr/bin/ld: cannot find -lswscale
collect2: error: ld returned 1 exit status
Failed to link ffaudio.so!
../../buildsys.mk:294: recipe for target 'ffaudio.so' failed
make5: * [ffaudio.so] Error 1
../../buildsys.mk:122: recipe for target 'all' failed
make4:
[all] Error 2
../buildsys.mk:135: recipe for target 'ffaudio' failed
make3:
[ffaudio] Error 2
../buildsys.mk:122: recipe for target 'all' failed
make2:
[all] Error 2
buildsys.mk:135: recipe for target 'src' failed
make1:
[src] Error 2
buildsys.mk:122: recipe for target 'all' failed
make: *
[all] Error 2
..

Note that I installed audacious using Webupd8 PPA, not by compiling audacious from source. And I thought the problem with ffaudio.so was related to not building the latest version of ffmpeg using the source, so I did that and still the error appears.

I need your help in order to test your commit in Fauxdacious.

Thanks!

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Pascual Lucero over 4 years ago

Just in case you need this information in order to help me compile from your source, after I compiled from source FFMPEG, the following appears:

LinuxPC:~/ffmpeg/ffmpeg$ ffmpeg -version
ffmpeg version N-95389-gdd01947 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)

I used the instructions in https://linuxconfig.org/install-ffmpeg-on-ubuntu-18-04-bionic-beaver-linux to compile ffmpeg
with the only difference I added --enable-shared option when configuring because someone commented in this link: https://redmine.audacious-media-player.org/boards/1/topics/2073 that this ffaudio.so error might be due to not having --enable-shared option in configure command.

Still it never worked.

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Pascual Lucero over 4 years ago

Hello again,

Sorry, I was finally able to compile and finaly using Fauxdacious to test your commit. The idea of saving lyrics locally words very well!

On the matter of recognizing .lrc files and showing lyrics in the lyricwiki window, it works with the exception of file names that include spaces.

Thanks for the work you done!

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Jim Turner over 4 years ago

Thanks for installing AND reporting your ffmpeg issue - It looks like I left off a dependency off the list (libswscale-dev) - my bad! I've now updated the instructions to include this one!

I've made a cpl. new commits, which should fix the issue with file-names that contain spaces. Now that you have it built, it's very easy to apply the latest changes, simply go back to the github site, then to src, then lyricwiki, then lyricwiki.cc, select the [Raw] button, grab all the text, paste it into a text editor, and save it over your current lyricwiki.cc file, run make, then make install from the directory that file is in. Then repeat for lyricwiki-qt (if you've also compiled the QT version), and restart fauxdacious and you should be all set!

NOTE: For further action on this thread or other issues with this project, let's take this to email (turnerjw784 at-thingy yahoo.com) and I'll reply you there, as we pbly shouldn't be making this huge thread on my competitor's forum!! ;)

Thanks for your help with getting all this implemented. Please read the FAQ page describing all the features / diffs & let me know if you have find any more glitches as I do plan to submit a backported version of this to Audacious soon.

Jim

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Pascual Lucero over 4 years ago

Hello!

THANKS A LOT! It works wonderfully in Fauxdacious my idea of showing local lyrics that you have implemented (and you added the idea of saving locally lyrics from lyrics wiki, which is also great and didn't expected). Hopefully this commit can be implemented in Audacious!

On a closing note (in fauxdacious github I might report issues while this is done in Audacious), using the lyrics wiki plugin has been useful for me because using the "edit lyrics" button I go to the lyricwikia page and I have create lyrics for songs that didn't have one in that page.

So, I think even if local lyrics are shown in the modified plugin, the "edit lyrics" button could be habilitated (no need to grey it out). Some might think that if you have local lyrics, "edit lyrics" could be confused with with edit local lyrics, but if you are a regular user of the plugin you would understand that it would always mean go to the lyricwikia page.

Thanks a lot again!

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Jim Turner over 4 years ago

This patch has now been backported to Audacious and filed as feature request #906.

Jim

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Pieter Kroon over 3 years ago

Thanx a million, I installed 4.0.4 on Mint and I could see lyrics again, vital for good understanding of the music. And funny, you sometimes see the proper text is way different than you've sung or yelled it so many times.

Would you know the command line syntax for saving the lyrics, now on right-click, to save them on Song Change (General plugin)

Regards,
Pieter Kroon

RE: Support for LRC files for viewing in Audacious (and possible modification of LyricWiki plugin) - Added by Jim Turner over 3 years ago

@Pieter, @Pascual:

The lyricwiki plugins are now dead in the water (lyrics.fandom.com has gone titsup) for the moment on Audacious and I do not know if they plan to find a new site (genius.com perhaps - @John, Ariedne, et. al: hint hint) and fix (see rejected bug# 1031). Therefore I've fixed in my github using (yet another Perl "helper" that searches genius.com, ant 2 other sites at the moment, which I know they will not want to implement in Perl! - I got the author of the REQUIRED CPAN "Lyrics::Fetcher::*" modules to update his 10 year old module to work for the 3 sites) The advantage is that now when sites change or go titsup, the lyricwiki plugins will continue to work as long as at least one site works!

@Pieter: I've also implented a new checkbox in the plugins to automatically save/cache new lyrics to a file (by title) on song change so you won't need a command-line option to autosave your lyrics on song-change, the same way album-covers currently do!

Regards,

Jim

    (1-12/12)