Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Running Foobar in Linux (Read 650631 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Running Foobar in Linux

Reply #275
I am currently running Foobar2000 v0.9.6.7 in Wine as XP on Fedora 10 with an eddcast DSP Plugin. I have 6 instances of foobar running, each for a different stream on our website. 4 of the instances are always playing and never give me any problems. The other 2 however, crash every so often. After playing mp3 files continuously (for hours or sometimes a day or two) one of the 2 (or sometimes both) troublemaker instances crashes and gives the error: "The program foobar2000 has encountered a serious problem and needs to close. we are sorry for the inconvenience...." As far as I know, all the mp3 files for all the 6 instances were encoded in the same way. Any ideas on why this is happening? 

Running Foobar in Linux

Reply #276
Hello,
after managing to install foobar2000 under ubuntu 9.04, what do i have to do to manage it to scrobble to last.fm?
Foobar runs great, but i still didn't manage to find the way to make it scrobble to lastfm.
Advices are welcomed.


Cheers

Running Foobar in Linux

Reply #277
Install official (windows) Last.fm software using wine. Or use third party foo_audioscrobbler.
Sharing delusions since 1991.


Running Foobar in Linux

Reply #279
Has anyone tried this patch
http://wiki.winehq.org/USB
to enable USB support in Wine (in the particular case of foobar - to make foo_dop work)?

Running Foobar in Linux

Reply #280
I tried to use XChange2 in my foobar on Debian, but even with almost any things additional installed by winescript it is not possible to use it. Now i start to make my own config but get additional problems. Here my questions:

1. Have we a list of components which do not work on Linux?
2. What is a good way to start building a personal config, without beeing a programmer?

Running Foobar in Linux

Reply #281
2: DUI layout-editing-mode
fb2k on OSX: flac q8 > rockboxed Sansa e280v1: Vorbis q5.0

Running Foobar in Linux

Reply #282
1. Have we a list of components which do not work on Linux?

I try to maintain a list of components on the first post that need any special requirements or simply do not work.  So far the list is somewhat limited to my own experimentation. If you are having trouble with a particular component please post details. Dont expect to be able to drop-in one of those super mega premade configs for foobar and have them work 100% under linux+wine.  Just like anyone else, start with DUI then try CUI and see what you can come up with. IMO just grabbing a premade config takes a lot of fun out of foobar.

Running Foobar in Linux

Reply #283
Hi all and thanks for this thread.
I made a little script to add files/folders in foobar from the Nautilus context menu. You should install the Nautilus-actions extension to add customized entries to the context menu.
I'm sure it's not perfect but it works on my linux (ubuntu) perhaps on yours too 

Code: [Select]
#!/bin/bash
#foobar2000.sh

# your installation directory
cd ~/.foobar2000/

if [ "$1" != "" ]; then
i="$@"
else
echo "No files"
exit 0
fi

#files
#add extensions if you want
for ext in .aac .mp3 .mp4 .ogg .flac .m4a .wma .mpc .wav .rar .zip; do
files=`echo $i | sed "s/$ext /$ext\" \"z:/g"`
i=$files
done

#folder
files=`echo \"z:$i | sed "s/ \//\" \"z:\//g"`

eval wine foobar2000.exe /add "$files\""

echo "Action: adding Directory or Files \"z:${files}\" to foobar2000"

exit 0


Save this script in where you want with the name: foobar2000.sh. and make it executable.

After, create a context menu item using the Nautilus Actions Configuration tool. Click on Add in the Nautilus Action configuration window, and in the Add a New Action dialog box, fill in the field like this:

Label: Send to foobar2000 (or what you want)
Tooltip: Send to foobar2000 (or what you want)
Path: /your/directory/foobar2000.sh
Parameters: %M

Next, click on the Conditions tab.:
Filenames: *
Mimetypes: */*
Check "both"
and check "appears if selection has multiple files or folders"

After, click on the Advanced conditions:
Check "smb (windwos file)"

Finally, click OK and close the Nautilus Actions Configuration tool. Now, when you right-click on a file or folder, you'll see the "Send to foobar2000, and clicking on it will add file and/or folder to foobar2000.


I Can´t make it work. I have Windows installed too and I´m runing Foobar through Windows. Can you help?

Running Foobar in Linux

Reply #284
I Can´t make it work. I have Windows installed too and I´m runing Foobar through Windows. Can you help?

Yes, I can help you.
Give me some information. Have you got an error message? Have you installed foobar in this folder --> /home/yourname/.foobar2000" ?

 

Running Foobar in Linux

Reply #285
Hey wesm, do you know if your script will add folders if they are on a network?
I can get the context menu item added but when I click on it noting happens.

Running Foobar in Linux

Reply #286
Hey wesm, do you know if your script will add folders if they are on a network?
I can get the context menu item added but when I click on it noting happens.

I never tried. I watch as soon as possible and I will correct the script if I can;)

Running Foobar in Linux

Reply #287
I Can´t make it work. I have Windows installed too and I´m runing Foobar through Windows. Can you help?

Yes, I can help you.
Give me some information. Have you got an error message? Have you installed foobar in this folder --> /home/yourname/.foobar2000" ?


No error message here. I tried to install on that folder, didn´t work. But Im runing from my Installation from Windows, /media/windows/Program/foobar2000/foobar2000.exe in the terminal.

Running Foobar in Linux

Reply #288
I Can´t make it work. I have Windows installed too and I´m runing Foobar through Windows. Can you help?

Yes, I can help you.
Give me some information. Have you got an error message? Have you installed foobar in this folder --> /home/yourname/.foobar2000" ?


No error message here. I tried to install on that folder, didn´t work. But Im runing from my Installation from Windows, /media/windows/Program/foobar2000/foobar2000.exe in the terminal.

Try to run the sript from a terminal.
sh /your/directory/foobar2000.sh /your/directory/music.mp3
maybe you will see error messages.

Running Foobar in Linux

Reply #289
Hey wesm, do you know if your script will add folders if they are on a network?
I can get the context menu item added but when I click on it noting happens.

I never tried. I watch as soon as possible and I will correct the script if I can;)

actually it does not work!
I solved the problem through the folder /home/yourname/.gvfs/ (where you found your network (smb) folder)
Hoping that it helps you.

Running Foobar in Linux

Reply #290
Thank you wesm, unfortunately I've screwed up my Ubuntu install, I won't be able to test unti tomorrow, hopefully it works.

Running Foobar in Linux

Reply #291
I Can´t make it work. I have Windows installed too and I´m runing Foobar through Windows. Can you help?

Yes, I can help you.
Give me some information. Have you got an error message? Have you installed foobar in this folder --> /home/yourname/.foobar2000" ?


No error message here. I tried to install on that folder, didn´t work. But Im runing from my Installation from Windows, /media/windows/Program/foobar2000/foobar2000.exe in the terminal.

Try to run the sript from a terminal.
sh /your/directory/foobar2000.sh /your/directory/music.mp3
maybe you will see error messages.


Now i see something.
"cd: 5: can't cd to /home/alexander/.foobar2000/
wine: could not load L"C:\\windows\\system32\\foobar2000.exe": Module not found
Action: adding Directory or Files "z:"z:/media/My Book/Musik/Bajs/skumdum - helans bravader.mp3" to foobar2000
"
I understand why Wine could load the foobar.exe in system32 folder, i haven´t foobar installed there.

Running Foobar in Linux

Reply #292
Now i see something.
"cd: 5: can't cd to /home/alexander/.foobar2000/
wine: could not load L"C:\\windows\\system32\\foobar2000.exe": Module not found
Action: adding Directory or Files "z:"z:/media/My Book/Musik/Bajs/skumdum - helans bravader.mp3" to foobar2000
"
I understand why Wine could load the foobar.exe in system32 folder, i haven´t foobar installed there.


you must customize the script with your foobar installation folder.

Code: [Select]
# your installation directory
cd ~/.foobar2000


replace that with yours

Code: [Select]
# your installation directory
cd /your/installation/foobar2000/

Running Foobar in Linux

Reply #293
Wow! Many many thanks:)

Moderation: Removed useless full quote of the preceding post.

Running Foobar in Linux

Reply #294
I modified the script a bit. I don't use Nautilus, but it works fine with Thunar. Go to Edit -> Configure custom actions... and add a new custom action which runs this script with the parameter %F. Then go to the Appearance Conditions tab and check Directories, Audio Files and Other Files and uncheck the rest (or whatever you prefer).

Code: [Select]
#!/bin/sh

# Specify the path to foobar2000
#
FOOBAR="~/.foobar2000/foobar2000.exe"

# If the files should replace the playlist instead of being added to it
#
REPLACE="false"


if [ "$1" != "" ]; then
    FILES=""
    for i in "$@"; do
        FILES="\"`winepath "$i" | sed "s/\(.*\)\(z:.*\)/\2/"`\" $FILES"
    done

    if $REPLACE; then
        COMMAND="/command:\"Send to Playlist...\""
    else
        COMMAND="/add"
    fi

    eval wine $FOOBAR /immediate $COMMAND $FILES
else
    notify-send "No files"
    exit 1
fi

Running Foobar in Linux

Reply #295
I'm having some trouble with foo_facets and was wondering if anyone had any suggestions as to how it could be fixed. You see the obvious color problem in this picture (I want the dark background everywhere):


Running Foobar in Linux

Reply #296
Create empty column and make it 0 width.
Sharing delusions since 1991.

Running Foobar in Linux

Reply #297
Thank you! Should've been obvious, yet I could not think of it.

I realize the earlier script was arranged in quite a weird fashion, so here's a rearranged version, silly as it may be (I can not edit my earlier post):

Code: [Select]
#!/bin/sh

# Specify the path to foobar2000
#
FOOBAR="~/.foobar2000/foobar2000.exe"

# If the files should replace the playlist instead of being added to it
#
REPLACE="false"


if [ -z "$1" ]; then
    notify-send "No files selected"
    exit 1
fi

FILES=""
for i in "$@"; do
    FILES="\"`winepath "$i" | sed "s/.*\(z:.*\)/\1/"`\" $FILES"
done

if $REPLACE; then
    COMMAND="/immediate /command:\"Send to Playlist...\""
else
    COMMAND="/immediate /add"
fi
eval wine $FOOBAR $COMMAND $FILES

Running Foobar in Linux

Reply #298
Well the board isn't letting me edit any of my posts lately so I'll tack on an additional post.

I've been having some trouble getting WineLocale working since I upgraded to Jaunty.  The author appears to be rewriting the application but the new version is not available for download and many users are reporting problems with the old version working with the newer versions of wine. So I was experimenting around and seem to have found some native regional support in wine working (I swear I tried this approach before with no result but it's working now):
Instead of wineloc -l ja_JP foobar2000.exe I am using LANG=ja_JP wine foobar2000.exe and am having better results than I ever did with winelocale.
(the language types are limited to those defined in /var/lib/locales/supported.d)

Newer versions of wine are also giving me problems with GDIPLUS.DLL and complicated layouts with Panel Splitter.  I'm still trying to hammer that out.

Also, when starting from scratch I am having better luck building wine from IEs4Linux than something like winetricks ie6

Don't forget you can use XP themes in wine by copying your C:\Windows\Resources directory structure to ~/.wine/drive_c/windows/Resources if you are sick of wine looking like something from Win95

Running Foobar in Linux

Reply #299
The biggest problem I have with foobar2000 in wine right now is I can't manage to make the icons not ugly.  I've got all the fonts I'm using installed, but it still looks like ass (at least compared to native linux applications).



Is there some trick to this?