Running Foobar in Linux, Alien Cats crossbreeding with Penguins |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
Running Foobar in Linux, Alien Cats crossbreeding with Penguins |
May 17 2007, 13:38
Post
#1
|
|
![]() Group: Members Posts: 1535 Joined: 8-May 06 Member No.: 30546 |
I have had several people ask me about making foobar work under linux. There are several threads mentioning it is possible however it is hard to find much detail about it. I have foobar running rather stable on my linux box and have created this thread in an attempt to provide a central place for questions and answers for running foobar under linux. Peter has indicated he will not develop a linux version of foobar so I thought it would be proper to keep these sorts of questions out of the main threads. I intend to update this post and polish these instructions as discussion reveals more information. I have pieced this together from various other sources and applied them to my own configuration. If you have a better approach to running foobar under linux please share with the rest of us.
* Wujek_Bogdan has provided instructions in Polish, you can find them here. Installation I. Wine - You will need a working linux box with wine. Under Ubuntu you can use the command: QUOTE sudo apt-get install wine - If you intend to use multilingual support, I suggest winelocale.- This tutorial assumes you have a wine drive z: mapped to your filesystem root "/" directory. This is the default setup with most wine installs. - Be sure to configure wine as a Windows XP or newer machine, foobar does not support older OSs such as Win95 or Win2k. Also be sure to install windows fonts so everything looks pretty. To do this with winetricks: QUOTE sh winetricks winxp allfonts - To correct audio stuttering problems during CPU spikes, set wine audio acceleration to "Emulation" instead of "Full". From the Wine Application DB entry for foobar2000:QUOTE The beta version of foobar2000 uses Directsound by default, which can cause some problems when playing music. In order to get the program to play music properly, you must set the Hardware Acceleration to emulate Directsound. Go to a terimal and type in "winecfg". A window will open with options for you to modify. Click on the Audio tab, and then look for "Hardware Acceleration". It is currently on "Full". Click on it, and you will have a list of options. Click on "Emulation", and then click on "Apply". foobar2000 should now be able to play music. Note that this will make foobar2000 version 0.8.3 give out an error when you try to play an audio file. Just change it back to "Full" in winecfg when you're done using foobar2000 version 0.9 beta. II. Foobar2000 * If you have an existing copy of foobar, copy your old foobar2000 folder to ~/.foobar2000 and skip this section. - Download the foobar installer from the main foobar homepage. - Run the foobar installer with wine: QUOTE wine foobar2000_0.9.6.3.exe - Use the "Portable installation" Type to avoid mucking about with user profiles.- Install to the location z:\home\YOURNAME\.foobar2000\ which translates through wine as ~/.foobar2000
- Let's build a shell script to execute foobar like a normal Linux program QUOTE gksudo gedit /usr/bin/foobar2000 CODE #!/bin/sh * If you are using winelocale, replace "wine" with "wineloc -l ja_JP" or something similar for your region.cd ~/.foobar2000/ if [ "$1" != "" ]; then filename=`echo z:$1 | sed 's/\\//\\\\/g'` wine foobar2000.exe "$filename" & else wine foobar2000.exe & fi - Close gedit and save the file. - Make the file executable with the following command: QUOTE sudo chmod +x /usr/bin/foobar2000 IV. Application Package - Pick an icon for foobar, I rather like this one by Byan. Save it as /usr/share/icons/foobar2000.png - Let's build a .desktop application package so we can launch foobar from the gnome main menu QUOTE gksudo gedit /usr/share/applications/foobar2000.desktop CODE [Desktop Entry] - Close gedit and save the file.Type=Application Name=foobar2000 GenericName=Plays Music Version=1.0 Encoding=UTF-8 Terminal=false Exec=/usr/bin/foobar2000 Comment=Plays Music Icon=foobar2000.png Categories=GNOME;GTK;AudioVideo;Audio;Player; Components Not all components work well with wine, here is a list of some components with special requirements:
By default, wine should allow foobar to map multimedia keys if they are not already mapped by something else however these bindings will not be global (you cannot change songs when using a different program). To globally control foobar with your multimedia keys you may want to read through this post over on the ubuntu forums. To summarize: - Press Alt+F2 to open a Run Configuration window. - Enter "gconf-editor" in the box and either press <Enter> or click [Run] - This should open the Gnome Configuration Editor. - In the left pane navigate to /apps/metacity/keybinding_commands and define the following keys: CODE command_1 - wine ~/.foobar2000/foobar2000.exe /playpause - In the left pane navigate to /apps/metacity/global_keybindings and define the following keys:command_2 - wine ~/.foobar2000/foobar2000.exe /stop command_3 - wine ~/.foobar2000/foobar2000.exe /next command_4 - wine ~/.foobar2000/foobar2000.exe /prev CODE run_command_1 - XF86AudioPause run_command_2 - XF86AudioStop run_command_3 - XF86AudioNext run_command_4 - XF86AudioPrev Announcing Now Playing Information: Many people like to announce what they are currently playing in foobar to other programs such as IRC or an Instant Meesenger. Most of the popular solutions do not translate well outside of wine. However I discovered foo_np_simple which basically dumps titleformatted text into an external plain text file that can then be processed by your external program (cat ~/.foobar2000/now_playing.txt). I have considered trying to mirror a nowplaying info file from another player such as quodlibet and then create an xchat perl script to parse the information nicely but I think that goes beyond the scope of this topic. Other Comments: - Wine tray icons are a bit buggy with both gnome and kde, To Avoid problems you may want to prevent foobar from minimizing to it in your Columns/Panels config. - These instructions are written for a gnome environment. For KDE users replace "gksudo" with "kdesu" and "gedit" with "kate". This post has been edited by Yotsuya: Mar 20 2009, 01:22 -------------------- http://www.ubuntu.com
|
|
|
|
![]() |
May 18 2007, 17:43
Post
#2
|
|
![]() Group: Members Posts: 99 Joined: 18-April 03 From: Germany Member No.: 6047 |
Do newer Wine versions fix the problem, that playback of audio starts to stutter when the CPU load caused by other applications is increased ? That problem has made foobar unusable for me, at least the playback functions - I only use it to replaygain and move files around with the masstagger.
|
|
|
|
May 18 2007, 21:25
Post
#3
|
|
|
Group: Developer Posts: 1080 Joined: 13-November 05 Member No.: 25748 |
Do newer Wine versions fix the problem, that playback of audio starts to stutter when the CPU load caused by other applications is increased ? That problem has made foobar unusable for me, at least the playback functions - I only use it to replaygain and move files around with the masstagger. When I tried a few month ago , the problem you describe (audio stuttering on CPU load) made it unusable for me,even if the rest was working. It's also annoying foo_ui_columns do not work due to a bug / unimplemented stuff in wine. This should be fixed in wine and to my knowledge it's not, even If i've seen (but not tested) an older pacth which was more a workaround than a real fix. Next i'm going to try with wine configured to use JACK for audio to see if i can fix the stuttering. If anybody have foo_ui_column running, I'd like to know This post has been edited by bubbleguuum: May 18 2007, 21:26 |
|
|
|
Yotsuya Running Foobar in Linux May 17 2007, 13:38
pepoluan Nice should be in the wiki May 18 2007, 06:14
Spirit_of_the_ocean It seems you can read my thoughts Thanks for thi... May 18 2007, 13:45
aliendesaster I'll try it when I'm home. How is performa... May 18 2007, 16:57
bubbleguuum More good news:
Starting with wine 0.9.36 (possib... May 19 2007, 19:30
Rasi nice... although i love MPD+Client, i really miss ... May 19 2007, 18:00
MC Escher What kind of hardware acceleration do you use in W... May 19 2007, 22:19
bubbleguuum QUOTE (MC Escher @ May 19 2007, 23:19) Wh... May 19 2007, 23:11
Yotsuya I am running wine 0.9.37 and also experience sound... May 20 2007, 13:19
MC Escher QUOTE (bubbleguuum @ May 19 2007, 14:11) ... May 20 2007, 17:32
arT2 hi there,
great tut
at the moment the only thing... May 27 2007, 11:11
bubbleguuum QUOTE (arT2 @ May 27 2007, 12:11) hi ther... May 27 2007, 12:41
arT2 cool, thank you for this nice piece of information... May 27 2007, 13:57
Wujek_Bogdan Foobar works nice (even with ColumnsUI), but soun... May 28 2007, 23:39
btag Very nice guide. Now I can finally run foobar as a... May 30 2007, 02:49
bubbleguuum QUOTE (btag @ May 30 2007, 03:49) Very ni... May 31 2007, 21:11
Wujek_Bogdan THX. I'll check it. i also tried running fooba... May 30 2007, 14:17
pinknyunyu Hi Old to foobar2000 but new to linux (ubuntu)--j... May 31 2007, 15:09
bubbleguuum QUOTE (pinknyunyu @ May 31 2007, 16:09) H... May 31 2007, 18:45
pinknyunyu Also, are there any linux players that display alb... May 31 2007, 16:30
Yotsuya pinknyunyu: Both AmaroK and Quodlibet will display... May 31 2007, 17:09
pinknyunyu Thanks! I'll check them out. And thanks ... May 31 2007, 17:30
Wujek_Bogdan i was also searching this option. i found only tha... Jun 1 2007, 13:34
Spirit_of_the_ocean Maybe he talks about O.8 there is in preferences a... Jun 2 2007, 14:32
Wujek_Bogdan if you want to run application with custom priorit... Jun 2 2007, 18:09
Spirit_of_the_ocean I use 0.83 for playing it works really good. I thi... Jun 3 2007, 20:52
Wujek_Bogdan take a look HERE
it seems, that it is possible to ... Jun 4 2007, 08:19
Spirit_of_the_ocean QUOTE - playing audio works (but stutters if the s... Jun 4 2007, 18:14
Y.Z. It is possible to run foobar2k without sound chopp... Jun 10 2007, 13:17
bubbleguuum QUOTE (Y.Z. @ Jun 10 2007, 14:17) It is p... Jun 10 2007, 13:19
Spirit_of_the_ocean QUOTE (bubbleguuum @ Jun 10 2007, 12:19) ... Jun 10 2007, 14:10
Y.Z. QUOTE (Spirit_of_the_ocean @ Jun 10 2007, 15... Jun 10 2007, 15:36
Spirit_of_the_ocean Thanks a lot
I am using feisty fawn so I have to ... Jun 10 2007, 18:10
Rasi cd /your/wine/root/folder
patch -p1 < Implement... Jun 10 2007, 19:54
Y.Z. QUOTE (Rasi @ Jun 10 2007, 20:54) cd /you... Jun 10 2007, 20:42

Spirit_of_the_ocean Can I use this with feisty fawn? Jun 11 2007, 18:32

Y.Z. QUOTE (Spirit_of_the_ocean @ Jun 11 2007, 19... Jun 12 2007, 11:20
Spirit_of_the_ocean ups problem solved....
I did everything as descri... Jun 16 2007, 20:40
vbbjq With wine 0.9.38
h -p1 < Implement_SetThreadPri... Jun 14 2007, 04:54
Wujek_Bogdan why do you want to use ASIO? it doesn't make A... Jun 14 2007, 13:38
vbbjq asio can realtime output..............if you using... Jun 14 2007, 13:44
Wujek_Bogdan yes, but ASIO is essential for recording (MIDI for... Jun 14 2007, 17:48
MC Escher Good news everyone!
The latest version of Wine... Jun 20 2007, 09:08
nbv4 QUOTE (MC Escher @ Jun 20 2007, 00:08) Go... Jun 23 2007, 04:08
Spirit_of_the_ocean Is this Foobar 0.8 or 0.9 ?
I want to have Album a... Jun 23 2007, 10:07
bubbleguuum QUOTE (Spirit_of_the_ocean @ Jun 23 2007, 11... Jun 24 2007, 13:23
Spirit_of_the_ocean Under 0.9.39 and Foobar 0.9 I found some strange b... Jun 25 2007, 14:41
bubbleguuum QUOTE (Spirit_of_the_ocean @ Jun 25 2007, 15... Jun 25 2007, 15:10
Spirit_of_the_ocean Resample @48000HZ? What exactly does this mean?
W... Jun 26 2007, 22:02
nbv4 QUOTE (bubbleguuum @ Jun 25 2007, 06:10) ... Jun 26 2007, 23:37
bubbleguuum QUOTE (nbv4 @ Jun 27 2007, 00:37) is ther... Jun 27 2007, 16:04
nbv4 QUOTE (bubbleguuum @ Jun 27 2007, 07:04) ... Jun 27 2007, 21:09
Spirit_of_the_ocean I installed jack started jack. Then I started foob... Jun 28 2007, 00:29
bubbleguuum QUOTE (nbv4 @ Jun 23 2007, 05:08) How do ... Jun 23 2007, 08:39
Spirit_of_the_ocean A new version of wine has appeared today
Changelo... Jun 29 2007, 23:57
Betse I'm just trying out Ubuntu and i would like to... Jul 3 2007, 13:35
Spirit_of_the_ocean QUOTE (Betse @ Jul 3 2007, 12:35) wine -l... Jul 3 2007, 21:40
tgoose Just a thought, but if/when JACK gets completely p... Jul 4 2007, 13:20
bubbleguuum QUOTE (tgoose @ Jul 4 2007, 14:20) Just a... Jul 4 2007, 19:28
Spirit_of_the_ocean For me wine 0.9.40 and Jack work perfectly Jul 4 2007, 21:26
MC Escher Does anyone else notice a big regression with the ... Jul 16 2007, 13:48
Spirit_of_the_ocean I get messages that jack isn't found. This is ... Jul 16 2007, 23:36
Bojan foobar2000 works very well for me with the ALSA dr... Jul 16 2007, 23:52
MC Escher QUOTE (Spirit_of_the_ocean @ Jul 16 2007, 14... Jul 17 2007, 00:00
hybridfan Very interesting, shame I got rid of Kubuntu, woul... Jul 17 2007, 11:11
Yotsuya Well I finally resolved a problem with my account ... Jul 18 2007, 04:54
Spirit_of_the_ocean QUOTE (Yotsuya @ Jul 18 2007, 03:54) I am... Jul 18 2007, 23:23
nbv4 QUOTE (Spirit_of_the_ocean @ Jul 18 2007, 15... Jul 19 2007, 02:56
bubbleguuum QUOTE (nbv4 @ Jul 19 2007, 03:56) I'm... Jul 19 2007, 09:20
nbv4 QUOTE (bubbleguuum @ Jul 19 2007, 01:20) ... Jul 19 2007, 20:19
MC Escher Same here. Ubuntu .deb from the budgetdedicated re... Jul 19 2007, 23:20
plukin My feisty install of wine works well with foobar, ... Jul 19 2007, 23:34
nbv4 QUOTE (plukin @ Jul 19 2007, 15:34) My fe... Jul 20 2007, 05:37
bubbleguuum QUOTE (nbv4 @ Jul 20 2007, 06:37) we... Jul 20 2007, 08:44
Spirit_of_the_ocean If you upgrade to 9.41 there is just the message t... Jul 20 2007, 10:24
nbv4 QUOTE (bubbleguuum @ Jul 20 2007, 00:44) ... Jul 21 2007, 18:59
Yotsuya When switching to the audio tab, the only errors w... Jul 21 2007, 05:56
Spirit_of_the_ocean wine v0.9.41 doesn't seem to support jack but ... Jul 21 2007, 19:37
skamp The audio still goes into a short loop whenever I ... Jul 29 2007, 12:39
nbv4 QUOTE (skamp @ Jul 29 2007, 04:39) The au... Aug 2 2007, 00:44
skamp nbv4: that's not the point. Different applicat... Aug 2 2007, 11:57
Thanasis159 I will try it... Hope it works! Jul 29 2007, 21:27
fivre I'm not sure about stutter (music stutters whe... Aug 3 2007, 07:58
Yotsuya fivre: I once encountered some background whitenoi... Aug 4 2007, 00:28
fivre QUOTE (Yotsuya @ Aug 3 2007, 18:28) fivre... Aug 9 2007, 03:42
skamp QUOTE (Yotsuya @ Aug 4 2007, 01:28) And f... Aug 11 2007, 11:31
stampgevaar QUOTE (Yotsuya @ Aug 4 2007, 01:28) And f... Aug 22 2007, 20:55
Yotsuya skamp: It can use mpeg321, gstreamer, or mplayer (... Aug 11 2007, 14:18
skamp QUOTE (Yotsuya @ Aug 11 2007, 15:18) It c... Aug 11 2007, 15:23
Spirit_of_the_ocean I think I have made a mistake when updating to a v... Aug 21 2007, 11:24
dkg gentoo-amd64, wine v0.9.38, foobar v.0.9.4.4, and ... Aug 27 2007, 09:00
j8ee Is dragging menu toolbars working for anyone here?... Aug 27 2007, 21:06
nbv4 QUOTE (j8ee @ Aug 27 2007, 13:06) Is drag... Aug 31 2007, 04:05
skamp Try loading a web page in Firefox while listening ... Aug 27 2007, 21:25
Kavika QUOTE (skamp @ Aug 27 2007, 12:25) Try lo... Sep 5 2007, 03:54
skamp QUOTE (Kavika @ Sep 5 2007, 04:54) Edit: ... Sep 13 2007, 10:09
sveterv There is one thing which can resolve all your prob... Sep 14 2007, 09:49
FredPT Hi there! This news about the CFS are great, b... Sep 17 2007, 22:23![]() ![]() |
|
Lo-Fi Version | Time is now: 20th June 2013 - 04:00 |