Jump to content
IGNORED

Computeraudio Primer for Linux with MPD


vortecjr

Recommended Posts

I have been conducting some experiments with Linux based computer audio and want to share my version of the solution that utilizes MPD (I'll explain later). For the purpose of full disclosure let me explain that what I will present is part of a larger project between sonore.us and vortexbox.org. However, what I'm presenting is open source and free to download and you can follow along. It will be easy, cheap, fun and you will discover some unexpected perks along the way:)

 

More to follow

 

Jesus R

www.sonore.us

 

*Revised 05/05/2010*

The following posts below are no longer valid and should be ignored:

1. The Build from 12/26/2009

2. The Build Revised from 1/28/2010

 

Updated posts:

1. The Build - Vortexbox version 1.4 from 05/05/2010

2. Votexbox-Player Web Based Client for MPD 05/05/2010

 

Link to comment

Many months back one of our well-respected members suggested giving Linux a try for computer audio playback. I did so using Unbuntu Linux and was impressed with the results right away. I did not finish the project though and started on other things and just filed my notes. Some time go I noticed a post from Chris named "Current CA Music Servers and Diagram" where he depicted a Linux project on an Alix board. Being curious about Linux, I decided to ask some questions on it in a post named "Alix Project". I received some feedback from a member (NYC_Peramedic) with some links to a fellow explaining the project from start to finish. I printed it in full and began to read and take notes. After spending some time trying to think how I could spin this into something that others would want to try I again put it aside. It's not a hard project, but it has IMO to many steps and you would need to install two Linux operating systems on two machines you dedicate to this project. It was interesting, but too complicated.

 

Now fast forward to a change meeting between Andrew from vortexbox.org and myself.

Andrew has developed a Linux based system (can you see the connection:) that has some great features. Vortexbox (available from vortexbox.org as a free download) can be installed on a spare computer. These are some of the key features of Vortexbox:

 

1. Automatically rips your CDs into your internal storage drive in "Paranoid Mode"

2. Automatically encodes your rips

3. Automatically tags the files

4. Automatically finds the cover art for your music and adds the image in the album's folder

5. Converts your rips to other formats via web interface command

6. Automatically shares your data over your home network for playback on your hi-fi system

7. You can even copy and paste your existing music collection for storage and playback

 

FYI all this without a mouse or keyboard or monitor

 

So after installing Vortexbox and getting it up and running I wondered if Andrew could add MPD. Much to my surprise he said he could and if your following along this would make it a headless player, auto ripper and nas……pretty awesome!

 

More to follow

 

Jesus R

www.sonore.us

 

Link to comment

MPD stands for Music Player Daemon. It's a Linux based client and server combination for computer audio playback.

 

The client can be the computer itself running Linux and MPD or a pc laptop/desktop or a mac laptop/desktop or an iphone/itouch or some other portable hand held device. This site contains a list of the clients available: http://mpd.wikia.com/wiki/Clients. I use the GMPC on my pc laptop and MPoD for my itouch as clients.

 

The server in this example would be Vortexbox running MPD.

 

Let me explain the server/client relationship, as this can be confusing at first. The server is running MPD and MPD is actually the audio player. It's the program that is consistent in the equation and looks at you storage and outputs to your audio device. The client is basically the dashboard that let’s you see what MPD sees and can play. The client is the variable in the equation and changes based on your needs or the system telling MPD to play, pause, stop and so on.

 

More to follow

 

Jesus R

www.sonore.us

 

Link to comment

Lets get Vortexbox up and running. I'm using one of my spare fanless cases that has a single core cpu, 2Gbs of ram, 1Tb HDD and a slot load cd/dvd. I also used an old Dell Latitude tower (clunker) with nothing special as a proof of concept. Use whatever you can dedicate to the project.

 

You’re going to download Vortexbox into your computer from http://vortexbox.org/downloads/

 

Then you need to burn a cd or dvd image of the program. You need some kind of dvd burning software though like Roxio or Clone DVD or Nero to burn the image on the cd/dvd. Remember this is not the same as copy/paste the file into the cd/dvd.

 

Drop the disk into your spare machine and restart it. The Vortexbox installation guide should start up at boot. If it does not start up then either something went wrong with your download and burn or the cd/dvd is not in the boot list in your cmos.

 

The first option in the installation menu should work for most people. The installation goes pretty quick and will ask you some simple questions like time zone and to enter a password. Need I say don't forget the password you enter!

 

When the installation reaches the end it will reboot. At that point you can remove the install disk. Connect an ethernet cable from your home network with internet to the network port of the unit and your done. At this point you can rip a cd by just putting one in and closing the door. When it's done it will open the tray automatically. Simple!

 

In order to install MPD you will need a keyboard and a monitor to access the Vortexbox command line. You could access the Vortexbox command line via a pc running telnet or putty, but that is for the advanced bunch and I’m trying to keep it simple for now. Most times when you start up the unit you will see the IP address of the machine. Write down the IP address for later. To log into the unit after boot enter your login name. Your login name is always going to be the word “root” your password is what ever you entered during the install. I told you would need it.

 

We are going to enter some simple commands first to update the unit and then install MPD.

 

Type “yum -y update” and let it go to work.

Then type, “reboot” and let it reboot.

 

When it reboots login again as before with “root” as login name and your password.

 

Now type “setup-mpd” and let it go to work.

 

When this is done we need to setup some volume numbers for the unit so you don’t get a beep from hell. ****Always test with your system in low volume**** I use a cheap set of headphones just in case.

 

Type “alsamixer” and a simple gui should come up. Basically, we want 0db on outputs and mute on “line” and “mic”. This should kill the beep from hell. However better safe then sorry ****Always test with your system in low volume****

 

More to follow

 

Jesus R

www.sonore.us

 

Link to comment

I'll start with the iphone/itouch as its pretty simple. Find and install MPoD app on your iphone/itouch. Your done....kidding! I don't remember if at first start up it has a setup. Anyway, if you press the mini plug icon you should get a preferences screen. Click on "MPD" serve then "new connection". Under name enter "Vortexbox" or whatever you like. Under server enter the IP address of the unit. Then press "save". When you go back to preferences it should list "Vortexbox" or what ever you called it under MPD Server. If not click on the arrow and add Vortexbox so it does list it. Now when it connects and you press on albums it should list anything you have ripped thus far. It’s looking at the flac folder in Vortexbox just so you know.

 

GMPC for windows is much the same to set up. Before you needed to install to programs, but that seems to have changed. I have no way to verify at this point so report back. You can download GMPC at http://gmpc.wikia.com/wiki/GMPC_0.19.1 and click on “installer” or “zip”. The first time you start it a setup screen appears. Under name enter "Vortexbox" or whatever you like. Under host enter the IP address of the unit and press connect.

 

Some have reported trouble with the firewall and you may need to disable it if you can’t connect. My connected I have the firewall set to medium.

 

Good Luck and Enjoy!

 

Jesus R

www.sonore.us

 

PS when you rip new cds in GMPC you need to update the database. The command is in the "server" pull down menu along the top of the program.

 

 

 

Link to comment
  • 1 month later...
  • 2 weeks later...

and it seems like the Vortexbox player is coming along. I may install that for giggles if I can free up some hardware.

Might be interesting to try running Vortexbox itself as a VM.

 

Jesus R, I noticed in your sig that you seem to have a Lynx AES16 running under Linux. I was unaware that there was a Linux driver and didn't think it was a supported card under ALSA. Any tips to get it running?

 

 

 

Link to comment

you may just end up keeping it....hehehe. Pop a $40 drive into the machine you already have to boot it up and get it going. I doesn't take or need much!

 

Vortexbox installs and has a web gui that helps you setup the alsa supported devices. Your right the Lynx cards are not supported under alsa, but are supported. I have the Lynx AES16 working 100% and the Lynx L22 spdif working 100% and analog working around 98%. Something about the analog I can't put my finger on and I need to test it more.

 

If you install it with a card just let me know and we can talk about getting it up for you. Are you other machines apple or pc?

 

Jesus R

www.sonore.us

 

Link to comment

Vortexbox is an interesting project. It is essentailly what I have done with Ubuntu but with out the Squeeze Box server as I have no need for it.

 

I have Ubuntu (Linux) server running MPD outputting via USB -> SPDIF dongle. I control MPD with MPoD on my iPod Touch & iPhone. I have also set it up to detect an audio CD in the drive and automatically rip it to FLAC and MP3. All quite easy if you are an experienced Linux user like me (I remember when you had to roll your own kernel) but it is great to see that someone has taken the time and effort to package it all up for the Linux newbie :-)

 

Regards,[br]Steve W[br]http://www.steveww.org/[br]Linux MPD (silent PC) -> MF V-Link II -> Benchmark HDR -> Hypex UcD400 x 2 (mono) -> Heybrook Sextet

Link to comment

Took your advice Jesus, and took it for a test drive. It installed quite seamlessly and only took a minor but of fiddling to get the onboard sound card working. (there are 2 in the box -- an nvidia on the MB and a Lynx AES16e). It did not recognize the Lynx card and I've had no joy thus far in getting it working. All tips and hints welcome here. Ideally I'd like to have both cards running.

 

The ripping aspect worked very well, and I think from that perspective alone there will be some voretex in my future, even if it is as a dedicated ripping station connected to a NAS.

 

Link to comment

Is this kernel based on Fedora?

 

Any chance of getting it built with ffado to support various Firewire DAC's like TC Konnekt or others?

 

Of course the latest ALSA should be a part of the distro, but it would be nice if Firewire was considered as well....it would really put it head and shoulders above all others.

 

FYI many Firewire interfaces DO work with ffado but none of them are automatically configured or available in any distro that I know of....

 

As you might know, many MANY people here use Firewire DAC's

 

 

 

 

 

 

Link to comment

Chris,

 

OSS huh? Thanks for the head's up that's quite helpful. Too bad though, OSS is effectively dead to me. ALSA is every bit as capable and I don't quite cotton to the OSS business model (personal pref but with a long history behind it). Clearly, I'd love to see Lynx AES16 as a supported card under ALSA.

 

Jesus, to answer your earlier question - The other machines are macs

 

Link to comment

sorry about the above confusion! I thought we were all talking about the Lynx pci cards.

 

Regarding NAS: Vortexbox is already a NAS and a backup/RAID unit in one. When you load the OS the first time you can install two drives (any size you want) and select the Raid 1 option. If you ripped some music and the unit is on the home network you should already see Vortexbox in iTunes as it auto shares on the network.

 

Jesus R

www.sonore.us

 

Link to comment

cool site about the Jag! Have you been into www.jagsthatrun.com. It's a fun site even if your not into that kind of conversion. I have a custom version of Vortexbox with 500GB running in my 34 Ford with my Lynx L22 card as output. I use an aux input on the radio, use the radio as a preamp, and control it with my iTouch:)

 

FYI Vortexbox can rip into flac and wav (depends) and mirrors into mp3 and mp4 as a bonus.

 

The thing about Squeeze Box Server (SBS) is that we have modified it to also control MPD. So if you have Vortexbox running on the home network then from any computer with a browser you can type the unit's ip and BAMM you control MPD. You can also just use your iTouch, but now you have more options!

 

Stick around I could use an experienced Linux user.....

 

Jesus R

www.sonore.us

 

Link to comment

"YUM" thats funny!

 

The Kernel is Fedora 11 and no plans to use 12 just in case you want to know.

 

In order to install FFADO it requires some other things first and it's a work in progress. However, you should know that the research into FFADO is proving to be very interesting and will benafit all vortexbox users. It's like the Indy car research making it's way into the consumers hot rod:)

 

We are commited to making it simple for all users. We have done so for ALSA, OSS is next and then Firewire.

 

Jesus R

www.sonore.us

 

Link to comment

Hi Jesus !

 

Wow !! What a great day ! I've been waiting for this for a long time. I was desperate been once able to install and use a good music server on a Linux based computer.

But I 've never found information on how Linux reads the musical files.

So my first question : does it make Kernel Streaming, like some players on Windows ? IMO bitperfect is the only good way to play music from a computer.

And my second question : will it work with Pulseaudio or only with ALSA ?

And my third question : on a Windows based computer I use a Nokia 770 internet tablet as a remote. Will I be able to use it with your system on Linux ?

 

And I have to look if the RME cards are supported in Alsa and/or Pulseaudio

 

Many thanks, best regards

 

Peter

 

Sorry for my bad English !

 

 

 

 

 

Link to comment

Can I ask what is the use base for this project...USB or SPDIF via some card?

 

 

Also I had major issues with Fedora in the past, believe it was version 10...

Currently I use MPD via Linux Mint, can I ask which version of MPD do you recommend and how do you get around the issue with MPD and the issue with LAME decoding AAC for internet radio? It appears that the current release of MPD does not include AAC decoding because of some copyright issues...I think.

 

Last question [for now] does your distro seamlessly support XBMC or BOXee? I'm sure that you realize XBMC at least is the future of media via a computer interface...of course imo.

 

 

 

 

Link to comment

Thanks Jesus, I would have avoided OSS like the plague at any rate :) but it's good to know the card is not supported. (Lynx AES16e - PCI express to be completely clear).

 

4front list it as a supported card -- until you read the release notes -- nice.

 

So I'm at a bit of a loss then. What kernel module are you loading to get ALSA and Pulse working for the Lynx AES16e?

 

 

Link to comment

Use should be User....

 

Meaning is their more support for USB devices or SPDIF? So far I have not heard of any major issues with either, except some with the issues with Async USB DAC's. But I think the latest ALSA release fixes many issues.

 

Perhaps I should dive into the software and let it answer my questions instead of annoying you.

 

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...