[PLUGIN] cd player

That’s epic news, thank you! :slight_smile:

Thanks Santa Geeks-R-US, Santa Michelangelo, and Santa MPD devs,

It’s working perfect in my following setup.

RaspberryPI3
Hifiberry+Pro

  • powered by a linear PSU
    Laptop DVD-Burner (GU10N) (again i set the speed to 16x in the plugin’s config)
  • connected over a cheap china SATA-USB adapter to a cheap USB2-Hub to the RasPI
  • USB2-Hub powered by a Meanwell 5V 5A switching PSU

I don’t know why, but first, when i tried to start with the given v2330 image from the post here in the topic from fresh i had a reproducable issue with UI periodically crashing and after a while recovering with a short interuption in the music . (i tried that on several systems [B+ with a Pifi-dac, PI2 with Allo Piano and the PI3 system described above - and yes i did create a fresh SD from this image for each of them).
I now installed v2323 and did an inplace update to v2330 and my UI issues are away - and the CD Player plugin is working perfect. :smiley: :smiley: :smiley:
Did anybody encounter similar behaviour ?

Today afternoon i will test with a bunch of different DVD-drives and play around with different speed settings and also with my older PIs.

I do own an β€œadult” NAD CD-Player which does the job very good (and quiet) but i love the idea behind this plugin very much, making Volumio even more universal and opens up a new way to an affordable β€œ1-doesitall” device (still eager to the DAB+ hardware…) .

Thank you all so much.

I hope this great plugin will find it’s way to the Volumio default plugin repository.

-Josef

Hi all,
tried with Volumio 2.330 + cd plugin; in my environment (Raspberry 1, Hifiberry i2s DAC, usb wifi, old IBM usb cd drive P/N00N8239 connected thru an USB3 hub to Pi.
All in all is much better than with the latest formal release, just stressing Volumio (i.e. switching between radio and CD tracks) causes the system to become unstable (stops working as expected, commands play-pause becomes irresponsive, all blocks, noise out of DAC. May this could be caused by the Raspberry 1 being too slow… ??? or is something also happening to others testing…? Let me know if I could help with some test or some other evidences. with either 2.330 or previous 2.323 -or if I simply need to update my Raspberry HW to model3… :slight_smile:

Thanks all for the great softwares!

Hi All,

After testing with 5 different drives i saw this is not an issue. All drives worked - even on different speed settings.
Also my Volumio UI is getting unstable after a while.
Next, Previous buttons do not work.

I upgraded to v2.335 which didn’t change anything for me.

  • Josef

THANK YOU THANK YOU THANK YOU THANK YOU for this. Been waiting for this feature for so long. Got it running and it sounds good.

A couple things I noticed… I was having a lot of skipping/stalling issues. They finally went away when I disabled upsampling. If this plugin gets implemented into volumio it would be good if the OS could override the upsampling when a CD is playing. Just a thought.

Also, the tracks never add to the queue individually, and I can’t scrub through the disc.

But thanks again. Great feature.

Hello,
I am a newbie.
I am trying to install on a ASUS EEEPC old netbook, with his original Asus USB DVD/RW attached.
I am using the x86 version, default configuration, but each time I try to install the plugin the web UI stops to work.

Since this topic began I tried with every release, downloaded from the original post’s link.

Is there something else I can try, or informations that i can provide to help understand the issue?

I would like to test it as I would like to use it as a CD/MP3/stream player in a HP slim desktop or similar (with a PCI dedicated audio peripheral).

I will appreciate every hint.

Bye

The reason is that the npm packages used are compiled for RPi (ARM architecture) and not for the x86. Just remove the node modules folder an run npm install in the plugin directory to build the packages for x86 architecture.

it’s likely libdiscid library symlink is not correct for x86 in install.sh either… sudo ln -s /usr/lib/arm-linux-gnueabihf/libdiscid.so.0 /usr/lib/arm-linux-gnueabihf/libdiscid.so Should rather be: sudo ln -s /usr/lib/i386-linux-gnu/libdiscid.so.0 /usr/lib/i386-linux-gnu/libdiscid.so (submitted a PR for cross-platform install.sh)

Hello!
I tried this:
1- frest install of Volumio
2- enable SSH from DEV
3- install of cdplayer plugin from DEV
4- login from SSH ad rm -rf the node_modules dir from the plugin directory
5- nano install.sh and changed the symlink ref
6- run npm install,

the output is what you can see:

[code]
volumio@Volumio:/data/plugins/music_service/cdplayer$ npm install

ref@1.3.5 install /data/plugins/music_service/cdplayer/node_modules/ref
node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/lib/node_modules/npm/node_modules/which/which.js:14:12)
gyp ERR! stack at F (/lib/node_modules/npm/node_modules/which/which.js:69:19)
gyp ERR! stack at E (/lib/node_modules/npm/node_modules/which/which.js:81:29)
gyp ERR! stack at /lib/node_modules/npm/node_modules/which/which.js:90:16
gyp ERR! stack at /lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack at /lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Linux 3.18.25
gyp ERR! command β€œ/bin/node” β€œ/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” β€œrebuild”
gyp ERR! cwd /data/plugins/music_service/cdplayer/node_modules/ref
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
cdplayer@1.0.0 /data/plugins/music_service/cdplayer
β”œβ”€β”€ @types/node@8.0.58
β”œβ”€β”¬ fs-extra@0.28.0
β”‚ β”œβ”€β”€ graceful-fs@4.1.11
β”‚ β”œβ”€β”€ jsonfile@2.4.0
β”‚ β”œβ”€β”€ klaw@1.3.1
β”‚ β”œβ”€β”€ path-is-absolute@1.0.1
β”‚ └─┬ rimraf@2.6.2
β”‚ └─┬ glob@7.1.2
β”‚ β”œβ”€β”€ fs.realpath@1.0.0
β”‚ β”œβ”€β”¬ inflight@1.0.6
β”‚ β”‚ └── wrappy@1.0.2
β”‚ β”œβ”€β”€ inherits@2.0.3
β”‚ β”œβ”€β”¬ minimatch@3.0.4
β”‚ β”‚ └─┬ brace-expansion@1.1.8
β”‚ β”‚ β”œβ”€β”€ balanced-match@1.0.0
β”‚ β”‚ └── concat-map@0.0.1
β”‚ └── once@1.4.0
β”œβ”€β”€ kew@0.7.0
β”œβ”€β”€ mpd@1.3.0
β”œβ”€β”¬ musicbrainz@0.2.6
β”‚ β”œβ”€β”€ request@1.9.9
β”‚ β”œβ”€β”€ timetrickle@0.1.2
β”‚ └─┬ xml2js@0.1.14
β”‚ └── sax@1.2.4
β”œβ”€β”¬ nodetools@0.0.2
β”‚ └─┬ mime-types@2.1.17
β”‚ └── mime-db@1.30.0
β”œβ”€β”€ strongly-typed-events@1.0.1
β”œβ”€β”¬ udev@0.4.0
β”‚ β”œβ”€β”€ nan@2.8.0
β”‚ └─┬ node-pre-gyp@0.6.28
β”‚ β”œβ”€β”¬ mkdirp@0.5.1
β”‚ β”‚ └── minimist@0.0.8
β”‚ β”œβ”€β”¬ nopt@3.0.6
β”‚ β”‚ └── abbrev@1.1.1
β”‚ β”œβ”€β”¬ npmlog@2.0.4
β”‚ β”‚ β”œβ”€β”€ ansi@0.3.1
β”‚ β”‚ β”œβ”€β”¬ are-we-there-yet@1.1.4
β”‚ β”‚ β”‚ β”œβ”€β”€ delegates@1.0.0
β”‚ β”‚ β”‚ └─┬ readable-stream@2.3.3
β”‚ β”‚ β”‚ └── string_decoder@1.0.3
β”‚ β”‚ └─┬ gauge@1.2.7
β”‚ β”‚ β”œβ”€β”€ has-unicode@2.0.1
β”‚ β”‚ β”œβ”€β”€ lodash.pad@4.5.1
β”‚ β”‚ β”œβ”€β”€ lodash.padend@4.6.1
β”‚ β”‚ └── lodash.padstart@4.6.1
β”‚ β”œβ”€β”¬ rc@1.1.7
β”‚ β”‚ β”œβ”€β”€ deep-extend@0.4.2
β”‚ β”‚ β”œβ”€β”€ ini@1.3.5
β”‚ β”‚ β”œβ”€β”€ minimist@1.2.0
β”‚ β”‚ └── strip-json-comments@2.0.1
β”‚ β”œβ”€β”¬ request@2.83.0
β”‚ β”‚ β”œβ”€β”€ aws-sign2@0.7.0
β”‚ β”‚ β”œβ”€β”€ aws4@1.6.0
β”‚ β”‚ β”œβ”€β”€ caseless@0.12.0
β”‚ β”‚ β”œβ”€β”¬ combined-stream@1.0.5
β”‚ β”‚ β”‚ └── delayed-stream@1.0.0
β”‚ β”‚ β”œβ”€β”€ extend@3.0.1
β”‚ β”‚ β”œβ”€β”€ forever-agent@0.6.1
β”‚ β”‚ β”œβ”€β”¬ form-data@2.3.1
β”‚ β”‚ β”‚ └── asynckit@0.4.0
β”‚ β”‚ β”œβ”€β”¬ har-validator@5.0.3
β”‚ β”‚ β”‚ β”œβ”€β”¬ ajv@5.5.1
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ co@4.6.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ fast-deep-equal@1.0.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ fast-json-stable-stringify@2.0.0
β”‚ β”‚ β”‚ β”‚ └── json-schema-traverse@0.3.1
β”‚ β”‚ β”‚ └── har-schema@2.0.0
β”‚ β”‚ β”œβ”€β”¬ hawk@6.0.2
β”‚ β”‚ β”‚ β”œβ”€β”€ boom@4.3.1
β”‚ β”‚ β”‚ β”œβ”€β”¬ cryptiles@3.1.2
β”‚ β”‚ β”‚ β”‚ └── boom@5.2.0
β”‚ β”‚ β”‚ β”œβ”€β”€ hoek@4.2.0
β”‚ β”‚ β”‚ └── sntp@2.1.0
β”‚ β”‚ β”œβ”€β”¬ http-signature@1.2.0
β”‚ β”‚ β”‚ β”œβ”€β”€ assert-plus@1.0.0
β”‚ β”‚ β”‚ β”œβ”€β”¬ jsprim@1.4.1
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ extsprintf@1.3.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ json-schema@0.2.3
β”‚ β”‚ β”‚ β”‚ └── verror@1.10.0
β”‚ β”‚ β”‚ └─┬ sshpk@1.13.1
β”‚ β”‚ β”‚ β”œβ”€β”€ asn1@0.2.3
β”‚ β”‚ β”‚ β”œβ”€β”€ bcrypt-pbkdf@1.0.1
β”‚ β”‚ β”‚ β”œβ”€β”€ dashdash@1.14.1
β”‚ β”‚ β”‚ β”œβ”€β”€ ecc-jsbn@0.1.1
β”‚ β”‚ β”‚ β”œβ”€β”€ getpass@0.1.7
β”‚ β”‚ β”‚ β”œβ”€β”€ jsbn@0.1.1
β”‚ β”‚ β”‚ └── tweetnacl@0.14.5
β”‚ β”‚ β”œβ”€β”€ is-typedarray@1.0.0
β”‚ β”‚ β”œβ”€β”€ isstream@0.1.2
β”‚ β”‚ β”œβ”€β”€ json-stringify-safe@5.0.1
β”‚ β”‚ β”œβ”€β”€ oauth-sign@0.8.2
β”‚ β”‚ β”œβ”€β”€ performance-now@2.1.0
β”‚ β”‚ β”œβ”€β”€ qs@6.5.1
β”‚ β”‚ β”œβ”€β”€ safe-buffer@5.1.1
β”‚ β”‚ β”œβ”€β”€ stringstream@0.0.5
β”‚ β”‚ β”œβ”€β”¬ tough-cookie@2.3.3
β”‚ β”‚ β”‚ └── punycode@1.4.1
β”‚ β”‚ β”œβ”€β”€ tunnel-agent@0.6.0
β”‚ β”‚ └── uuid@3.1.0
β”‚ β”œβ”€β”€ rimraf@2.5.4
β”‚ β”œβ”€β”€ semver@5.1.1
β”‚ β”œβ”€β”¬ tar@2.2.1
β”‚ β”‚ β”œβ”€β”€ block-stream@0.0.9
β”‚ β”‚ └── fstream@1.0.11
β”‚ └─┬ tar-pack@3.1.4
β”‚ β”œβ”€β”¬ debug@2.2.0
β”‚ β”‚ └── ms@0.7.1
β”‚ β”œβ”€β”€ fstream-ignore@1.0.5
β”‚ β”œβ”€β”€ once@1.3.3
β”‚ β”œβ”€β”¬ readable-stream@2.1.5
β”‚ β”‚ β”œβ”€β”€ buffer-shims@1.0.0
β”‚ β”‚ β”œβ”€β”€ core-util-is@1.0.2
β”‚ β”‚ β”œβ”€β”€ isarray@1.0.0
β”‚ β”‚ β”œβ”€β”€ process-nextick-args@1.0.7
β”‚ β”‚ β”œβ”€β”€ string_decoder@0.10.31
β”‚ β”‚ └── util-deprecate@1.0.2
β”‚ β”œβ”€β”€ rimraf@2.5.4
β”‚ └── uid-number@0.0.6
└─┬ v-conf@1.4.0
β”œβ”€β”€ fs-extra@0.30.0
β”œβ”€β”€ multimap@1.0.2
└─┬ write-file-atomic@1.3.1
β”œβ”€β”€ imurmurhash@0.1.4
└── slide@1.1.6

npm WARN cdplayer@1.0.0 No repository field.
npm WARN cdplayer@1.0.0 license should be a valid SPDX license expression
npm ERR! Linux 3.18.25
npm ERR! argv β€œ/bin/node” β€œ/usr/local/bin/npm” β€œinstall”
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! ref@1.3.5 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ref@1.3.5 install script β€˜node-gyp rebuild’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ref package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ref
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls ref
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /data/plugins/music_service/cdplayer/npm-debug.log[/code]

any suggestion is appreciated

Hi everyone,

I’m trying to make a Jukebox like cd-player using a raspberry pi, a cd-player, an lcd and a few buttons to control all the things.
I got the lcd to work, however, i’m strugging with getting the buttons to interact with the cd player.
I wrote a simple python program using the MPDclient plugin which takes input from the buttons and then issues a command like next() or playid().
When I use playid(01), it returns: β€œmpd.base.CommandError: [50@0] {} No such song”,
and when I use next() it doesn’t return an error message, but it stops the current song from playing.
The commands do work when I’m using a USB drive with music.
Is this a bug in the cd Player plugin or am I doing something wrong?

Thanks in advance,
Alfredias

Have you tried running it as root because the package needs to be compiled from source on your platform?

Please try sudo npm install

Hi All,

New to Volumio and github. I would like to try the USB cd player plugin, but am having trouble following the links on how to install now that the upload option has been removed from the plugins page. Do I download a .zip file now, or download the source files? And to which directory? Help will be appreciated!

Volumio version 2.362, RPi3, Dragonfly Black DAC, LiteOn cdROM.

I’ve previously had it installed and working, using an earlier release of volumio and using the previous plugin upload facility but I just tried it again today with volumio version 2.362 and I cant get it to install.

The process I used is the following;

Unzip it to a folder on your sd card. Run the following in that folder

volumio plugin install

It seems to stall at β€œdownloading plugin”. Anybody had any success installing it this way?
(I should add that this is the first time I have attempted to install a plugin this way)

Hi coops,

I didn’t try this method with the cdplayer plugin yet - but for other plugins it is working good.
You have to be patient. There is not much response on the command line, but it is doing.

I also would appreciate some kind of progress information.

  • Josef

Thanks Josh2000,

I found an older version of cdplayer plugin (from geeks-r-us dropbox) and installed this successfully on a clean volumio 2.362 install. With this version (Nov 2017) the cd skips a bit, but this may have been fixed in later versions.

I also tried installing Jan 10 2018 version but the package seemed to be incomplete and did not have the node_module folder as with the nov 2017 version I got from dropbox. This is the version I was having trouble installing. I’m certainly not an expert here and could be missing some important step.

A question for geek-r-us, what is the status of the cd player plugin? and where can I get the latest plugin package from please?

Cheers
Coops

This is a mpd issue most probably which started to be fixed since 0.20.12. Unfortunately Volumio2 could not include improved mpd yet in main release (it had other important bugs).
mpd is now nearing 0.20.18: hopefully more stable for inclusion on Volumio2…

EDIT: to confirm you may want to try this older 2.330 interim release which integrated 0.20.12 for tests.

Thanks macmpi,

any news on when cdplayer plugin might make it into the volumio plugin repository?

I reflashed the sd card and took another try at the installing the Jan 2018 version with the following procedure:

  1. Clean install of Volumio 2.362.
  2. Downloaded Jan 2018 files to: /data/plugins/music_service/cdplayer
  3. Enabled test mode on volumio.local/dev
  4. issued command from the cdplayer directory: volumio plugin install

It proceeded to install and successfully completed. CDPlayer showed up in β€œInstalled Plugins,” not enabled. I enabled it but was not able to browse to it in sources. Now when I restart Volumio it hangs and does not start. Maybe I will try the Nov 2017 version just to see how it works…

RPi3, Dragonfly Black DAC, LiteOn cdROM.

Hi all
I am waiting this plugin for a long time , now it installed on the latest version Volumio 2 and start playing CDs, a greatful thanks to the author.
But I have a issue about laggy while playing, I first thought will be buffer underrun , but I tried different sets by increased buffer and adjust CD-ROM speed, this issue still come out. Is there any solution ?
My hardware connection is 5.25 inch internal Pioneer DVD-Burner --> sata dock to USB with power supply --> Ri3+Hiberry DAC

Thanks again~

update!!
β€” I got this issue fixed by updating mpd up to 0.20.17, (also can flash with volumio-2.330-2017-11-29-pi, this img contain mpd version 0.20.16), now the CDs play smooth without laggy, plugin setting with 8X drive speed , 8M buffer and 10% buffering before play works well in my set.

Dose any one have a compatibility list of what external drives work?

I was thinking in ths one:
ebay.co.uk/itm/USB-External … Swe09Z7bna

It’s cheap and it’s pretty but don’t know if it will work