Help - Search - Members - Calendar
Full Version: Running Foobar in Linux
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Pages: 1, 2, 3, 4, 5
bubbleguuum
QUOTE(Spirit_of_the_ocean @ Jun 25 2007, 15:41) *

Under 0.9.39 and Foobar 0.9 I found some strange behaviours of the sound sad.gif


Like what ? If it is sound distortion, on my sound card I had to use the resampler @ 48000Hz for the sound not to be garbled / strange.

Just tried 0.39 and using JACK as the audio driver I can move window like mad and have 0 skips! yay!
Spirit_of_the_ocean
Resample @48000HZ? What exactly does this mean?

What is JACK? Does it work with every soundcard?
nbv4
QUOTE(bubbleguuum @ Jun 25 2007, 06:10) *

QUOTE(Spirit_of_the_ocean @ Jun 25 2007, 15:41) *

Under 0.9.39 and Foobar 0.9 I found some strange behaviours of the sound sad.gif


Like what ? If it is sound distortion, on my sound card I had to use the resampler @ 48000Hz for the sound not to be garbled / strange.

Just tried 0.39 and using JACK as the audio driver I can move window like mad and have 0 skips! yay!

is there any special trick to get jack to work with foobar? I have jack running, but when I open foobar, under the output section of the preferences, all I see is Null Output.
bubbleguuum
QUOTE(nbv4 @ Jun 27 2007, 00:37) *

is there any special trick to get jack to work with foobar? I have jack running, but when I open foobar, under the output section of the preferences, all I see is Null Output.


You must select it as the wine audio driver using winecfg. Then it should appear in foobar sound conf, provided jackd is operational.
nbv4
QUOTE(bubbleguuum @ Jun 27 2007, 07:04) *

QUOTE(nbv4 @ Jun 27 2007, 00:37) *

is there any special trick to get jack to work with foobar? I have jack running, but when I open foobar, under the output section of the preferences, all I see is Null Output.


You must select it as the wine audio driver using winecfg. Then it should appear in foobar sound conf, provided jackd is operational.

hmm in winecfg I see no option so select jack. I know jack is running, because I'm able to get my MIDI keyboard connected to a few synth programs with jack, and they work fine...

Is jack support something that has to be specially compiled into wine or something? Maybe my wine (from the ubuntu repo's) doesn't have wine support...

edit:
IPB Image
this was taken while jack was up and running
Spirit_of_the_ocean
I installed jack started jack. Then I started foobar2000.I tsrated Jack audio server and the winecfg then I could choose JACK. smile.gif
Is there the possibility to run run jack when starting foobar automatically?

I am running Feity fawn.

But although the soudn seems to be okay now the visualisatiion stutters blink.gif

Also the playbacktime isn't konstantly updating. Someonelse got this?
Spirit_of_the_ocean
A new version of wine has appeared today

Changelog says:

QUOTE
# A few more sound fixes.


I am interessted if this is recognizeable when using foobar. I will test this weekend smile.gif


Betse
I'm just trying out Ubuntu and i would like to have foobar play my files. I followed the guide in the first post, but i get an error when trying to start foobar from the menu:
Failed to execute child process "/usr/bin/foobar2000" (Permission denied)
Offcourse i see there is something wrong with the permissions, but how do i solve this?

Also when i try to start foobar from a terminal with: wine -l ja_JP foobar2000.exe
i get the error: wine: could not load L"c:\\windows\\system32\\-l.exe": Module not found

I would really appreciate the help getting my way with wine and ubuntu
Spirit_of_the_ocean
QUOTE(Betse @ Jul 3 2007, 12:35) *

wine -l ja_JP foobar2000.exe

I thing this is wrong. Let the bold text away.

go to your directory /home/user(or what your name is)/.foobar2000

Choose the foobar2000.exe rightclick and then open with wine.
This should run foobar.

I had some problems too with creating a shell script.
tgoose
Just a thought, but if/when JACK gets completely ported to Windows, would it be possible to add a patch so it would be possible run the Windows version through WINE, connect foobar2000 to that via a plugin, and then connect the Windows JACK to a native one? Sounds like a lot of work, but shouldn't that eliminate any dropout/other audio issues?
bubbleguuum
QUOTE(tgoose @ Jul 4 2007, 14:20) *

Just a thought, but if/when JACK gets completely ported to Windows, would it be possible to add a patch so it would be possible run the Windows version through WINE, connect foobar2000 to that via a plugin, and then connect the Windows JACK to a native one? Sounds like a lot of work, but shouldn't that eliminate any dropout/other audio issues?



The audio dropout problem has been fixed with wine 0.9.39 at least for me and a few other people.
Spirit_of_the_ocean
For me wine 0.9.40 and Jack work perfectly smile.gif
MC Escher
Does anyone else notice a big regression with the latest 0.9.41? After upgrading this weekend all the stuttering seems to be back. sad.gif
Spirit_of_the_ocean
I get messages that jack isn't found. This is really a pitty. I was very complicated to downgrade. sad.gif
Bojan
foobar2000 works very well for me with the ALSA driver in wine 0.41. In fact it works so well I'm thinking about using it not just for tagging but for playback as well.
MC Escher
QUOTE(Spirit_of_the_ocean @ Jul 16 2007, 14:36) *

I get messages that jack isn't found. This is really a pitty. I was very complicated to downgrade. sad.gif

I'd rather not downgrade either. I'm more inclined to leave my Linux partition alone for the next two weeks and only use Windows. Perhaps I'll figure out where and how to report regressions to the Wine team though.
Btw I didn't use Jack.
hybridfan
Very interesting, shame I got rid of Kubuntu, would be nice to give it a try.
Yotsuya
Well I finally resolved a problem with my account and I updated the first page a bit, cleaning up the part about the basic shell script as most people are not using CJK support and I myself am having problems getting it to work under 64bit. I also updated the script to support running as the default application for an audio file.

I have been noticing the sound becoming more and more stable over the past few builds of wine and currently (0.9.41) the skipping is all but gone, only appearing under heavy system load.

I am unable to get JACK to appear in my winecfg, would anyone be so kind as to link a tutorial somewhere on how to get this up and running?

I played around with Crossover Office for Linux but it didnt seem to make much of a difference to foobar than running it under normal wine. I also keep a copy of my foobar running in VMware on a fullscreen session tacked to the back of one of my Compiz Fusion cubes. If you are continuing to experience problems these are some alternative approaches you may wish to explore to enjoy foobar under Linux.

IPB Image
Spirit_of_the_ocean
QUOTE(Yotsuya @ Jul 18 2007, 03:54) *

I am unable to get JACK to appear in my winecfg, would anyone be so kind as to link a tutorial somewhere on how to get this up and running?

In the latest version jack has problesm but in Version 0.9.40 you just have to install jack then open wincfg and then it should be available as audio driver. It should be simple.
nbv4
QUOTE(Spirit_of_the_ocean @ Jul 18 2007, 15:23) *

QUOTE(Yotsuya @ Jul 18 2007, 03:54) *

I am unable to get JACK to appear in my winecfg, would anyone be so kind as to link a tutorial somewhere on how to get this up and running?

In the latest version jack has problesm but in Version 0.9.40 you just have to install jack then open wincfg and then it should be available as audio driver. It should be simple.

Nope. I was using version .40 and had jack installed, but there was no jack option in the audio panel of winecfg. There is something else needed.

I'm thinking there is some kind of flag you have to add when you compile wine, and if you got it from a repo, most likley it wasn't compiled with that option...
bubbleguuum
QUOTE(nbv4 @ Jul 19 2007, 03:56) *

I'm thinking there is some kind of flag you have to add when you compile wine, and if you got it from a repo, most likley it wasn't compiled with that option...


That's probably the problem. At least the latest packages for ubuntu from winhq repo are compiled with JACK support.

nbv4
QUOTE(bubbleguuum @ Jul 19 2007, 01:20) *

QUOTE(nbv4 @ Jul 19 2007, 03:56) *

I'm thinking there is some kind of flag you have to add when you compile wine, and if you got it from a repo, most likley it wasn't compiled with that option...


That's probably the problem. At least the latest packages for ubuntu from winhq repo are compiled with JACK support.

huh?

I'm using 0.9.41 straight from the ubuntu repo, and I see no jack option. And it's not like I don;t have jack installed; its installed and working fine with other applications.
MC Escher
Same here. Ubuntu .deb from the budgetdedicated repository (promoted by winehq), but no Jack in Wine.
plukin
My feisty install of wine works well with foobar, i don't configure anything...
just install the latest deb!?
at first a had no audio output, since i delete my .cfg (wich i simply copied to my home dir) all works well.
nbv4
QUOTE(plukin @ Jul 19 2007, 15:34) *

My feisty install of wine works well with foobar, i don't configure anything...
just install the latest deb!?
at first a had no audio output, since i delete my .cfg (wich i simply copied to my home dir) all works well.

we're talking about jack support, which is different than just "works well with foobar"
bubbleguuum
QUOTE(nbv4 @ Jul 20 2007, 06:37) *

we're talking about jack support, which is different than just "works well with foobar"


Launch winecfg in a console and check you don't have his message when goingin in the Audio tab:

fixme:jack:JACK_drvLoad error loading the jack library libjack.so, please install this library to use jack
Spirit_of_the_ocean
If you upgrade to 9.41 there is just the message that the registered audio driver Jack couldn't be found.
I don't know how to fixed this. I searched with google but didn' find anything how to fix this...
Maybe the alsa wrapper in jack can help?
Yotsuya
When switching to the audio tab, the only errors winecfg is spitting out are:
QUOTE
fixme:wave:ALSA_AddCaptureDevice Add support for DSCapture
ALSA lib ../../../src/pcm/pcm_mmap.c:369:(snd_pcm_mmap) mmap failed: Invalid argument
fixme:wave:ALSA_AddCaptureDevice Add support for DSCapture
ALSA lib ../../../src/pcm/pcm_mmap.c:369:(snd_pcm_mmap) mmap failed: Invalid argument

JACK is not appearing as an available sound driver:
IPB Image
I am running wine v0.9.41 on kubuntu 7.04 (feisty fawn) x86_64.

To resolve the original error of the missing libjack I used:
CODE
sudo ln -s /usr/lib/libjack0.100.0.so.0 /usr/lib/wine/libjack.so


If you do not have a /usr/lib/libjack0.100.0.so.0 you might want to:
CODE
sudo apt-get install libjack0.100.0-0


For more information on getting Jack up and running you might find this tutorial helpful.
nbv4
QUOTE(bubbleguuum @ Jul 20 2007, 00:44) *

QUOTE(nbv4 @ Jul 20 2007, 06:37) *

we're talking about jack support, which is different than just "works well with foobar"


Launch winecfg in a console and check you don't have his message when goingin in the Audio tab:

fixme:jack:JACK_drvLoad error loading the jack library libjack.so, please install this library to use jack

all I get is:

CODE
nbv4@nbv4:~$ winecfg
fixme:wave:ALSA_AddCaptureDevice Add support for DSCapture
fixme:mixer:ALSA_MixerInit No master control found, disabling mixer
Spirit_of_the_ocean
wine v0.9.41 doesn't seem to support jack but 0.9.40 is..
skamp
The audio still goes into a short loop whenever I load a web page in firefox. I'm currently using wine 0.9.41 - there's a new version (0.9.42) out since two days ago, I'm waiting for Ubuntu Feisty packages to show up.
Thanasis159
I will try it... Hope it works!
nbv4
QUOTE(skamp @ Jul 29 2007, 04:39) *

The audio still goes into a short loop whenever I load a web page in firefox. I'm currently using wine 0.9.41 - there's a new version (0.9.42) out since two days ago, I'm waiting for Ubuntu Feisty packages to show up.

Thats actually a Firefox problem, not really a wine/foobar problem. Firefox spikes CPU usage to 100% for a second or two when you load certain webpages. I guess wine could stand to handle that spike a little better, but if you were to use another browser, I bet you wouldn't have any "looping"
skamp
nbv4: that's not the point. Different applications have different requirements. Audio playback must never skip, no matter the CPU usage. Whatever I do, with firefox or other apps, XMMS playback doesn't skip, loop or stutter. I can encode files to FLAC or WavPack while playing music with XMMS without the playback getting disturbed.

Maybe it's just a buffer issue, I have no idea (nor do I know how to configure that with wine). I tried changing foobar's buffer, it didn't solve the problem.
I upgraded to wine 0.9.42 btw, no improvement.
fivre
I'm not sure about stutter (music stutters when I run yes, but so does everything else) but everything I play has this annoying snow in the background. I assume this is wine's fault, but how can I fix it?
Yotsuya
fivre: I once encountered some background whitenoise and resolved it by making the output bitdepth of my foobar match the bitdepth of my wine settings.

Compare:
File> Preferences> Playback> Output> "Output data format"

With:
wincfg> "Audio" Tab> "Default Bits Per Sample"

You might also want to try changing "Default Sample Rate" from 48khz to 44.1Khz, or switching from ALSA to OSS.

---
On another note, wine 0.9.42 and still no JACK.
---

And for something totally different, I recently discovered a nice player for linux called gmusicbrowser. It has a customizable interface, supports ID3v2.4 custom tags, supports album art in the playlist, playlists grouped by album (with collapsable headers), and a whole slew of other stuff. The project is not as mature as foobar and it primarily for playback only (no conversion utils that I could find) but you might find it worth a try. I find it quite nice when I'm sick of wrestling with wine.
IPB Image
fivre
QUOTE(Yotsuya @ Aug 3 2007, 18:28) *

fivre: I once encountered some background whitenoise and resolved it by making the output bitdepth of my foobar match the bitdepth of my wine settings.

[Wine settings etc.]

Thanks, that helped a lot.

Still seems a bit off, but that's probably just me expecting it to be off.
skamp
QUOTE(Yotsuya @ Aug 4 2007, 01:28) *
And for something totally different, I recently discovered a nice player for linux called gmusicbrowser.

Since it uses Gstreamer, I can only assume it doesn't have gapless playback. Aqualung does...
Yotsuya
skamp: It can use mpeg321, gstreamer, or mplayer (or even icecast) for output. It is not restricted to gstreamer. I wish they had a proper forum for discussion and development though. Foobar is still a far more mature program but wine is such a headache.
skamp
QUOTE(Yotsuya @ Aug 11 2007, 15:18) *
It can use mpeg321, gstreamer, or mplayer (or even icecast) for output.

Neither of which supports gapless playback, if I'm not mistaken.
Spirit_of_the_ocean
I think I have made a mistake when updating to a version of wine later then .9.40.
Now I have the stutters again although using jack.
I regret having updated. So there is really a truth in

"NEVER CHANGE A RUNNING SYSTEM!"

Maybe I will make a complete new Feisty: I can't live without Foobar although Ubuntu has its own charm smile.gif
stampgevaar
QUOTE(Yotsuya @ Aug 4 2007, 01:28) *


And for something totally different, I recently discovered a nice player for linux called gmusicbrowser. It has a customizable interface, supports ID3v2.4 custom tags, supports album art in the playlist, playlists grouped by album (with collapsable headers), and a whole slew of other stuff. The project is not as mature as foobar and it primarily for playback only (no conversion utils that I could find) but you might find it worth a try. I find it quite nice when I'm sick of wrestling with wine.
IPB Image


looks cool, is it also possible to customize your library like say the album list? And to use covers in your library (library filter)?
dkg
gentoo-amd64, wine v0.9.38, foobar v.0.9.4.4, and lots of plugins. biggrin.gif

IPB Image
j8ee
Is dragging menu toolbars working for anyone here? I can't move or re-order any of them whatever I try, and it's driving me nuts. Maybe I have to make a parallel installation in windows, and move the config file? Thinking of it, I should be able to just run foobar from the linux folder and make any changes I want... hmm... I'll try it and report back.

Other than that it seems like it's working flawlessly right away, no sound stuttering or graphical glitches.

Using Kubuntu Gutsy tribe 4.
skamp
Try loading a web page in Firefox while listening to music on foobar2000. If the sound doesn't go into a loop, I'd really like to know more about your setup (I'm using Ubuntu Gutsy myself).
nbv4
QUOTE(j8ee @ Aug 27 2007, 13:06) *

Is dragging menu toolbars working for anyone here? I can't move or re-order any of them whatever I try, and it's driving me nuts. Maybe I have to make a parallel installation in windows, and move the config file? Thinking of it, I should be able to just run foobar from the linux folder and make any changes I want... hmm... I'll try it and report back.

Other than that it seems like it's working flawlessly right away, no sound stuttering or graphical glitches.

Using Kubuntu Gutsy tribe 4.

if you minimize the window, leave it for a few minutes, then click on the taskbar, does it come right up every time? That "bug" is by far the most annoying one of all. Theres a way around it by clicking on the systray icon, but that always messes things up by switching desktops.
Kavika
QUOTE(skamp @ Aug 27 2007, 12:25) *

Try loading a web page in Firefox while listening to music on foobar2000. If the sound doesn't go into a loop, I'd really like to know more about your setup (I'm using Ubuntu Gutsy myself).


Did you try setting it to emulation mode instead of hardware mode? The original post seems to say that might fix sound issues. I am having the same problem, so I'll let you know if it fixes it when I get home and try it out.

Edit: Works like a charm! Tried all the settings ("Full" "Standard" "Basic" and "Emulation"), and only "Emulation" worked. Didn't check the "Driver Emulation" check box. Using an ASUS P5K ("Intel HDA" onboard sound) w/ a Core 2 Duo 6450 2.13ghz, 4GB RAM, GeForce 7900 on the latest proprietary driver off nVidia's website. Didn't try messing with buffer lengths, etc, since this seems to work perfectly, so far.

QUOTE

[*]ProjectM - This component doesn't load, something is missing and I do not know what
[*]Queuemanager - This component doesn't load, something is missing and I do not know what


Don't know if this has already been suggested, or if you already tried it. There's a tool for checking library dependencies that may be useful:
http://appdb.winehq.org/appview.php?iAppId=1668
http://appdb.winehq.org/appview.php?iVersionId=2257
skamp
QUOTE(Kavika @ Sep 5 2007, 04:54) *
Edit: Works like a charm! Tried all the settings ("Full" "Standard" "Basic" and "Emulation"), and only "Emulation" worked. Didn't check the "Driver Emulation" check box. Using an ASUS P5K ("Intel HDA" onboard sound) w/ a Core 2 Duo 6450 2.13ghz, 4GB RAM, GeForce 7900 on the latest proprietary driver off nVidia's website. Didn't try messing with buffer lengths, etc, since this seems to work perfectly, so far.

Well, if foobar was using one core for playback, and firefox used the other core, obviously loading a web page in firefox wouldn't affect foobar. In any case your setup is orders of magnitude faster than mine, which doesn't mean there is no software issue with wine, only that your setup is too fast for the problem to surface.
Note that I have switched to Opera for browsing the web, and it's much faster on my setup than firefox.
sveterv
There is one thing which can resolve all your problems guys. I had the same problems as you with skipping Foobar2000 under wine, while doing CPU intensive tasks, well even those not really intensive skipped sound, like starting Firefox sad.gif

You need just to recompile your kernel, with CFS (Complete Fair Scheduler) patch. Here is the official link for patch:
http://people.redhat.com/mingo/cfs-scheduler/

It will be default CPU time scheduler in 2.6.23 kernel, until then you need to patch your source. It only changes the way, CPU time is distributed to all the running processes in your system. It can't hurt your system or something like this, and it's stable as a rock, as I sad it will be in next official kernel by default.

Now i can, compile kernel(!), run Firefox, listen music, run updatedb, and do many more things at one time without even 1 sec sound skipping, so i think this says all.

Cheers!
FredPT
Hi there! This news about the CFS are great, but I guess I'll wait for the new kernel, it's less risky.

Anyway I'm having a very nice experience with wine+foobar2000 but I'm noticing some skipping when I resume playback from a pause, does anyone else noticed this?



This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.