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 655998 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Running Foobar in Linux

Reply #200
Quote
Are the files DRM protected?


No 
I have only about 10 wma files so I can encode them again to mp3 and the problem is solved. I just wouldn't want to loose any audio quality.

edit. fail

Running Foobar in Linux

Reply #201
Is there any way I can use my remote control with foobar running in wine? I have installed lirc and it works for my linux applications (mplayer, vlc,...) but I don't know how to get it to work with foobar. In windows I use the winlirc plugin, but i cant get it to work with lirc in ubuntu. I tried connecting it to localhost:8765 which should be the default port for lirc, but the plugin won't connect. Or do I have to use the .lircrc file just like I do for mplayer. If so, then what commands can I use (prog = ? and config = ? in the .lircrc file)

Running Foobar in Linux

Reply #202
how does lirc works? does it run a simple bash script, does it sends "keyboard shortcuts" to the desktop environment or through another pipeline to reach the application?
the first option would be the best, just get the script from above and edit the config file for lirc...
with shortcuts it should be no problem, too.
bye

Running Foobar in Linux

Reply #203
thanks for your suggestions. I can run scripts with my remote control using irexec. In the .lircrc file this looks like this:

Code: [Select]
begin
    remote = Philips/SBC-RP
    prog = irexec
    button = blue/play
    config = /path/to/script/foobarscript -play
    repeat = 0
    delay = 0
end


and this works. There's only one small problem. When I'm using mplayer to watch a movie and I touch a button that I would also use in foobar (like the play button) it will start up foobar and music will start to play.

the code for controlling mplayer looks like this:

Code: [Select]
begin
    remote = Philips/SBC-RP
    prog = mplayer
    button = blue/play
    config = pause
    repeat = 0
    delay = 0
end


so the play button only affects mplayer if it's already open, but it always affects foobar, even if it's not already running. Is there anyway I can modify the script you posted so it only works if foobar is already running?

thanks

Running Foobar in Linux

Reply #204
with the following code snip you can "ask" if fb2k runs already...
if you know a little bash you can easily modify the original script
Code: [Select]
#!/bin/bash

ps -e | grep foobar2000.exe
if [ $? -eq 0 ]; then
    echo "fb2k runs"
else
    echo "fb2k doesn't run"
fi

Running Foobar in Linux

Reply #205
with the following code snip you can "ask" if fb2k runs already...
if you know a little bash you can easily modify the original script


I did not know a little bash, but it was easy enough to understand your code and modify the script. Thank you for your help. Everything works as it should now (although it might not be the most efficient way of using lirc for foobar). Now I don't have any reason to go back to windows any more

Running Foobar in Linux

Reply #206
I have a problem with foo_facts: The background color is always white in the facet boxes are always white. Except that, everything works fine so far.

using ubuntu 8.04 and wine 0.9.61


I had the same problem. I don't know how to fix it, but I did find a workaround. If you use a facet with more then one column, you will see that only the first column is white, the other columns behave normally. So I created a duplicate column for every facet (for example: a column named wineartist and one named artist which both have %<album artist>% as pattern). The first column (wineartist) can be hidden by dragging it until it's width is zero.

Running Foobar in Linux

Reply #207
I tried some recent wine on ubuntu 8.04 and noticed the following.
  • Default UI: statusbar doesn't update in custom rendering mode.
  • Run service: sending URL to browser works (wine 1.0-rc4 or lower)
    Code: [Select]
    winebrowser http://blahblah
    does work.

Running Foobar in Linux

Reply #208
Enabling Font-Smoothing or How to avoid font ugliness
I just discovered that Font Smooting can be enabled for wine apps by making the following change to the user.reg file in your .wine directory:
Quote
"FontSmoothing"="0"

to
Quote
"FontSmoothing"="1"


Works wonders for the "normal fonts", but not as good as in Windows for Cleartype Fonts (Calbri, Segoe, etc).

Running Foobar in Linux

Reply #209
Hi!

I am running foobar 0.9.5.2 in wine 1.0.  Most Features I need are working, except of the Equalizer (crashes foobar) and Audio-CD-Support - drives are available in wine, but foobar is not able to open an audio-cd "No CD drives found" appaers, when I try to open one.
Is there a way to get audio-cd-support working? I would really like to rip cds with foobar...Thanx a lot for help!

Running Foobar in Linux

Reply #210
I had the same problem. I don't know how to fix it, but I did find a workaround. If you use a facet with more then one column, you will see that only the first column is white, the other columns behave normally. So I created a duplicate column for every facet (for example: a column named wineartist and one named artist which both have %<album artist>% as pattern). The first column (wineartist) can be hidden by dragging it until it's width is zero.


That's awesome, thank you for this idea

edit: nevertheless I will post a report about this on wine bugzilla

Running Foobar in Linux

Reply #211

I had the same problem. I don't know how to fix it, but I did find a workaround. If you use a facet with more then one column, you will see that only the first column is white, the other columns behave normally. So I created a duplicate column for every facet (for example: a column named wineartist and one named artist which both have %<album artist>% as pattern). The first column (wineartist) can be hidden by dragging it until it's width is zero.


That's awesome, thank you for this idea

edit: nevertheless I will post a report about this on wine bugzilla


I'm not sure why, but for me ALL of my facet columns have this issue.  I'm using nvidia 173 drivers on ubuntu with compiz-fusion.  Anyone else share this problem with all the facet columns?

Running Foobar in Linux

Reply #212
Is it possible to establish the very used set of Win32/DLLs to enable the native DLLs foobar2000 uses, inside WINE? How much stable would foobar2000 be after that? That's a very good idea to consider!!!

Cheers

 

Running Foobar in Linux

Reply #213
Hi all!

Couple words about Foobar&WINE. It's works quite well, but I don't like WINE limitation about 8 or 16 bps.
I have EMU0404 USB soundcard (yes, Alsa support is still quite buggy)  and default sound stream, sending to hardware is 24bps.
I found this document: http://www.nabble.com/winealsa:-Use-S24_3L...td13191677.html
It seems, that WINE Alsa plugin support more than 16pbs sound stream. So I decide to change DefaultBitsPerSample in user.reg
Well, it works (using "file" plugin for alsa you can see what exactly WINE sends to Alsa) BUT: with 24bps  Foobar hangs after playback pause or stop; 32bps - volume control in Foobar has no effect, volume is 100% and doesn't matter in wat position volume slider is  I don't realy understand WHY????? Replay Gain and Equalizer works well.
I thougt, that volume control in Foobar is simple ''software attenuator', like ReplayGain, for example, am I wrong?

Running Foobar in Linux

Reply #214
thanks to everyone who worked on this script! it was just the thing to tie foobar2000 into fluxbox using the keys file

is there any way to make the script seek backwards and forwards in a song? i suspect you can do it with the -command= or -playing_command= arguments, but i have not figured it out yet....


Funny how these things go ... an hour of typing stuff into emacs later, I've "tuned" that script a little.

Now it handles spaces correctly, and will canonicalise file paths.

You can find it here: http://jyujin.de/~creidiki/foobar2000.bash

Running Foobar in Linux

Reply #215
Funny how these things go ... an hour of typing stuff into emacs later, I've "tuned" that script a little.

Now it handles spaces correctly, and will canonicalise file paths.

You can find it here: http://jyujin.de/~creidiki/foobar2000.bash

my first try at bash scripting - i have modified this script slightly to include a recursive -adddir argument

i also tried to have the -add argument detect if it was given a directory and behave accordingly; but it's not necessary and it didn't work first try so i gave up
i have left my thoughts if the file (### commented out) so if anyone would to fix it, please let me know!


another thing....has anyone got foobars context:"open containing folder" to work? like open it up in thunar or xterm or whatever...

Code: [Select]
#!/bin/bash

# set this to what's needed to run foobar.
# for example, if you have binfmt_misc setup
# for wine, something like this will work.
# otherwise, "wine path-to-foobar" is what you want.
fb2k="/home/t/.foobar2000"

direc () {
cd canonicalise$1
pwd
}
canonicalise () {
    filename="${1}"
    # prefix replacement
    case "${1}" in
/*)
    # absolute, nothing to do.
    ;;
~*)
    # home-relative and for some odd reason calling shell
    # didnt expand this already (for ex. it was quoted).
    filename="${HOME}/${filename}"
    ;;
*/)
    # directory,
    ;;
*)
    # relative path.
    filename="$(pwd)/${filename}"
    ;;
    esac
    # strip './' elements
    filename=$(echo "${filename}" | sed -e 's:/\./:/:g')
    # strip 'foo/../' elements
    filename=$(echo "${filename}" | sed -e 's:/[^/]\+/\.\./:/:g')
    # protect real backslashes
    filename=$(echo "${filename}" | sed -e 's/\\/\\\\/g')
    file="${filename}"
    unset filename
}

case "${1}" in
    -add)
### case "${1}" in
###     */)
### echo "ADDING DIRECTORY"
### canonicalise "${2}"
### cd "$file"
### fb -addfiles *
### echo "Result: added $2 to foobar2000"
### ;;
###     *)
[[ -n ${2} ]] && canonicalise "${2}"
${fb2k}/foobar2000.exe /add "z:$file" & &>/dev/null
echo "Action: adding Directory or Files \"${file}\" to foobar2000"
### ;;
### esac
;;
    -addfiles)
    files=( "${@}" )
for (( i = 1 ; i < ${#} ; ++i )); do
    canonicalise "${files[$i]}"
    ${fb2k}/foobar2000.exe /add "z:${file}" & &>/dev/null
    echo "Action: adding $(echo ${file})"
done
echo "Result: added "$(( ${#}-1 ))" files to foobar2000"
;;
    -adddir)
canonicalise "${2}"
cd "$file"
fb -addfiles *
echo "Result: added $2 to foobar2000"
;;
    -play)
${fb2k}/foobar2000.exe /play & &>/dev/null
echo "Action: play Song in foobar2000"
;;
    -pause)
${fb2k}/foobar2000.exe /pause & &>/dev/null
echo "Action: pause Song in foobar2000"
;;
    -playpause)
${fb2k}/foobar2000.exe /playpause & &>/dev/null
echo "Action: play or pause Song in foobar2000"
;;
    -prev)
${fb2k}/foobar2000.exe /prev & &>/dev/null
echo "Action: play previous Song in foobar2000"
;;
    -next)
${fb2k}/foobar2000.exe /next & &>/dev/null
echo "Action: play next Song in foobar2000"
;;
    -rand)
${fb2k}/foobar2000.exe /rand & &>/dev/null
echo "Action: play random Song in foobar2000"
;;
    -stop)
${fb2k}/foobar2000.exe /stop & &>/dev/null
echo "Action: stop playing a Song in foobar2000"
;;
    -mute)
${fb2k}/foobar2000.exe /command:Volume\ mute & &>/dev/null
echo "Action: mute foobar2000"
;;
    -volup)
${fb2k}/foobar2000.exe /command:Volume\ up & &>/dev/null
echo "Action: raise Volume in foobar2000"
;;
    -voldown)
${fb2k}/foobar2000.exe /command:Volume\ down & &>/dev/null
echo "Action: decrease Volume in foobar2000"
;;
    -hide)
${fb2k}/foobar2000.exe /hide & &>/dev/null
echo "Action: hide foobar2000 window"
;;
    -show)
${fb2k}/foobar2000.exe /show & &>/dev/null
echo "Action: show foobar2000 window"
;;
    -exit)
${fb2k}/foobar2000.exe /exit & &>/dev/null
echo "Action: exit foobar2000"
;;
    -rescan)
${fb2k}/foobar2000.exe /command:"Rescan Media Library" & &>/dev/null
echo "Action: Rescan foobar2000 Media Library"
;;
    -command-*)
[[ -n ${1} ]] && command=${1##*command-}
${fb2k}/foobar2000.exe /command:"${command}" & &>/dev/null
echo "Action: call foobar2000 with command \"$command\""
;;
    -playlist_command-*)
[[ -n ${1} ]] && command=${1##*command-}
${fb2k}/foobar2000.exe /playlist_command:"${command}" & &>/dev/null
echo "Action: call foobar2000 with playlist command \"$command\""
;;
    -playing_command-*)
[[ -n ${1} ]] && command=${1##*command-}
${fb2k}/foobar2000.exe /playing_command:"${command}" & &>/dev/null
echo "Action: call foobar2000 with playing command \"$command\""
;;
    -help)
echo "Using: foobar2000 [Command]

Where Command can be on of these:
-add -adddir -addfiles -play -pause -playpause -stop -next -prev -rand -mute -volup -voldown -hide -show -rescan -command-[fb2k command] -playlist_command-[fb2k playlist command] -playing_command-[fb2k playing command] -help"
;;
    *)
if [[ -n ${1} ]]; then
    canonicalise "${1}"
    ${fb2k}/foobar2000.exe "z:${file}" & &>/dev/null
    echo "Action: start foobar2000 with file ${file}"
else
    ${fb2k}/foobar2000.exe & &>/dev/null
    echo "Action: start foobar2000"
fi
;;
esac

Running Foobar in Linux

Reply #216
Well I didn't have to do anything except install it in Crossover 7.

Running Foobar in Linux

Reply #217
I thougt, that volume control in Foobar is simple ''software attenuator', like ReplayGain, for example, am I wrong?

The DirectSound output uses DirectSound's volume control for real-time attenuation. Only the Kernel Streaming and ASIO outputs use software volume control now.

Running Foobar in Linux

Reply #218
It seems that I can't play wma files in linux. I thought foobar would support wma natively, but:

Code: [Select]
Unable to open item for playback (IWMSyncReader::SetRange failed (C00D0BC2)):


Has anyone solution to this problem?
I'm using Ubuntu 8.04 + foobar2000 0.9.5.3 + wine 0.9.59


i got wma files working in foobar/wine by using the script at wiki.winehq.org/winetricks to download+install the wmp9 package into wine



on another problem - to people using foobar+wine+wineloc, can you confirm if foobar will load files with japanese/korean filenames?

my setup is currently skipping all such files, but will display japanese/korean fonts in playlist.
much more testing to do, i will report back with solution or more detailed questions

Running Foobar in Linux

Reply #219
I'm using WINE 1.1.3 and fb2k 9.5.5, and I can't edit ReplayGain info.

The Edit ReplayGain Info dialogue, where I should be able to double-click values to edit them, does nothing other than sorta flicker a bit. No WINE errors show up.

Ideas?

Running Foobar in Linux

Reply #220
Foobar seems to be running fine in the new ubuntu (8.10). But does somebody else also have the problem that the sounds just completely goes away from foobar. I need to restart foobar and then it works again but it's quite annoying sometimes. This doesn't happen regularly but after say 30 minutes or so...

I don't really have audio stuttering and I set the audio to emulation and to full acceleration but I keep having this problem.

Running Foobar in Linux

Reply #221
i've got a problem, foobar opens fine, but when i play files (mp3 or flac) in 16 or 8 bits/s it sounds like it's breaking up. not sure how to describe it, i've tried different buffer length.. happens when playing from hard-drive and usb.
however the files play fine in other media players that came with GNOME.. any suggestions?

EDIT: fixed, just changed hardware acceleration to full...  emulation was the problem i guess....

Running Foobar in Linux

Reply #222
Hi, thanks for this guide thread!
I have a problem with the sound on my foobar-gentoo combination. The sounds works without any gaps or stuttering, but it sounds different from when I use a linux-based player. The sound is a little bit "hissy" as if you try to speak through a piece of baking paper. I'm not sure if it's caused from wine or foobar or something else. First I thought it could be too high volume settings somewhere, but when I change the foobar volume to quite low, it still happens.
The setup on this laptop is:
linux 2.6.27-gentoo-r7 with alsa drivers in the kernel
foobar 0.9.6.1, output is set to DS: primary sound driver, 16-bit
wine 1.1.10 audio settings: Alsa, full, 44100, 16-bit
The "Test audio" button in Winecfg works fine and the sound is acceptable but I think it sounds a bit like unclear, however I don't know what it's supposed to sound like.
I've tried changing the winecfg settings to Emulate, or to different sample rates, or to 8 bit, but it didn't help.

Running Foobar in Linux

Reply #223
You may want to set audio to 48Khz in winecfg and use foobar resampler dsp to resample at 48Khz. Some time ago, I had to do that to have clear sound with a Creative card model, else the sound would be hollow and lo-fi.

Running Foobar in Linux

Reply #224
You may want to set audio to 48Khz in winecfg and use foobar resampler dsp to resample at 48Khz.

Excellent, it works! I also have to set the direct sound from "Full" to "Emulate" in the winecfg. By the way, there is no need to choose 48KHz, I chose 44100 as it was. But it is important to choose the Resampler in the DSP options and give it the same number.
Now the sound is much better than before, thanks. It's still not "perfect", now I hear a very small grumble but it's much less noticeable than the hiss noise that I had before.