Moode Audio Player for Raspberry Pi

Hi @MartiSerrano,

Sometimes the updating spinner is not cleared even though the update has finished.

1) Does the USB dir exist in the Browse panel?

2) From ssh look in /media dir and see if your USB drive has been auto-mounted.

-Tim

Hi Tim,
this is funny. Start with a fresh imaged SD. First apply all network settings, etc and reboot Raspi. Then launch MPD update; after 1h the clock was still there. Reload Browser, the clock disappears and go to 'Browse'. USB is there; click on it and 'KINGSTON' is there (thumbdrive is a Kingston DataTraveler G4 32GB USB3).
Click on 'Update this folder' for USB/KINGSTON. Leave it running and check 1h later... USB is no longer displayed in 'Browse'.

Settings configured:
WiFi network
Timezone: Europe/Paris
Peripherals-Keyboard: ca
Peripherals-Layout: Spanish
Audio output: USB audio device
Customization-Volum warning limit: 100
Customization-Audio device description: USB audio device


Going to try now with a USB HDD :(
 
Hi Tim,
this is funny. Start with a fresh imaged SD. First apply all network settings, etc and reboot Raspi. Then launch MPD update; after 1h the clock was still there. Reload Browser, the clock disappears and go to 'Browse'. USB is there; click on it and 'KINGSTON' is there (thumbdrive is a Kingston DataTraveler G4 32GB USB3).
Click on 'Update this folder' for USB/KINGSTON. Leave it running and check 1h later... USB is no longer displayed in 'Browse'.

Settings configured:
WiFi network
Timezone: Europe/Paris
Peripherals-Keyboard: ca
Peripherals-Layout: Spanish
Audio output: USB audio device
Customization-Volum warning limit: 100
Customization-Audio device description: USB audio device


Going to try now with a USB HDD :(

Hi,

To troubleshoot, examine MPD log while update is running and look for "permission" or other errors

cat /var/log/mpd/mpd.log

-- or --

tail -f /var/log/mpd/mpd.log

-Tim
 
I have a question about changing the theme color from the Customize menu.

In newly installed 3.8.4:
I'm trying to change the theme color from Emerald to something/anything else. What's happening is that only the Volume and track progress dials on the Playback panel display the newly chosen color. The tabs (Browse, Library, Playback) along the bottom still display Emerald no matter what other color theme is chosen. Also, the selection highlight always shows Emerald whichever theme color has been selected.

I've refreshed, rebooted. New theme color selection sticks in the Customize menu, but the new color behaves as described above.

Is anybody else seeing this? This wasn't a problem in 3.7. It's probably my bad luck pi acting up, but I thought I'd ask.
--
 
I have a question about changing the theme color from the Customize menu.

In newly installed 3.8.4:
I'm trying to change the theme color from Emerald to something/anything else. What's happening is that only the Volume and track progress dials on the Playback panel display the newly chosen color. The tabs (Browse, Library, Playback) along the bottom still display Emerald no matter what other color theme is chosen. Also, the selection highlight always shows Emerald whichever theme color has been selected.

I've refreshed, rebooted. New theme color selection sticks in the Customize menu, but the new color behaves as described above.

Is anybody else seeing this? This wasn't a problem in 3.7. It's probably my bad luck pi acting up, but I thought I'd ask.
--


Try clearing the cache in your browser.
 
Hi,

To troubleshoot, examine MPD log while update is running and look for "permission" or other errors

cat /var/log/mpd/mpd.log

-- or --

tail -f /var/log/mpd/mpd.log

-Tim

Hi Tim,
After a few hours of trial and error I've been able to trace it down to a single ALAC album that apparently makes mpd crash. With a single album in the library (AC/DC's Back in Black), I've removed the USB drive to clear it and add Cara Dillon's ALAC album Live At The Grand Opera House. Then plug USB drive back into the Raspi, run an Update and this is what happens:
pi@moode:~ $ cat /var/log/mpd/mpd.log
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/10 Rock and Roll Ain't Noise Pollution.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/09 Shake a Leg.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/08 Have a Drink on Me.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/07 You Shook Me All Night Long.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/06 Back in Black.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/05 Let Me Put My Love into You.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/04 Given the Dog a Bone.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/03 What Do You Do for Money Honey.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/02 Shoot to Thrill.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/01 Hells Bells.flac
Sep 24 10:14 : avahi: Service 'Moode MPD' successfully established.
pi@moode:~ $

Is there any verbose option to gather further info?
On the other hand, mpd reported errors for most of the ALAC files (though they would be in the library and played fine). Most frequent error was this one (approx. 90% of tracks):

Sep 23 19:46 : player: played "USB/KINGSTON/Garth Brooks/The Chase (The Remastered Series)/02 Somewhere Other Than The Night.flac"
Sep 23 19:46 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: max_analyze_duration 5000000 reached
Sep 23 19:46 : update: added USB/KINGSTON/Cara Dillon/A thousand hearts/01 Jacket So Blue.m4a
Sep 23 19:46 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: max_analyze_duration 5000000 reached

Few tracks generated this error:
Sep 23 20:11 : update: added USB/KINGSTON/Rod Stewart/It Had To Be You... The Great American Songbook/12 For All We Know.m4a
Sep 23 20:11 : ffmpeg/mjpeg: ignoring invalid SAR: 0/0
Sep 23 20:11 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: max_analyze_duration 5000000 reached

Martí
 
Since the 3.8.4 update I have to boot a second time. After listening I shutdown the RPI by menu.

After starting up a next time I can't connect, so I have to shutdown the RPI hardware based. After the second boot I can connect to the RPI.

Can I find out what's failing the first time?

moOde = Release 3.8.4, 2017-08-28
moodeOS = Version 3.0 multi-kernel

Host name = moode
ETH0 IP = 192.168.1.5
ETH0 MAC = b8:27:eb:5f:78:21
WLAN0 IP = unassigned
WLAN0 MAC = no adapter

HDWR REV = Pi-2B 1GB v1.1
SoC = BCM2835
CORES = 4
ARCH = armv7l
KERNEL = 4.9.41-moode1
KTIMER FREQ = 200 Hz
USB BOOT = not available
Warranty = OK

ROOT size = 2.5G
ROOT used = 57%
ROOT avail = 1.1G
FS expand = not expanded
MEM free = 727 MB
MEM used = 200 MB
Temperature = 36.3°C

CPU GOV = performance
MPD SCHDPOL = fifo
WIFI/BT = N/A
HDMI = off
ETH0 CHECK = On
MAX USB CUR = Off
UAC2 FIX = Off

LED0 = on
LED1 = on

C P U L O A D

CPU %usr %sys %idle
all 0.38 1.90 97.08
0 1.60 6.95 88.77
1 0.00 0.00 100.00
2 0.00 0.00 100.00
3 0.00 1.00 99.00

P R O C E S S L O A D

PRI RTPRIO COMMAND %MEM PSR %CPU
19 - shairport-sync 0.5 1 8.7
19 - sysinfo.sh 0.2 3 5.5
19 - sudo 0.2 3 1.5
19 - php5-fpm 0.9 1 1.0
19 - systemd 0.4 1 0.6
19 - worker.php 1.0 0 0.5
19 - ksoftirqd/0 0.0 0 0.2
19 - kworker/0:1 0.0 0 0.2
19 - systemd-journal 0.2 0 0.2

C L O C K F R E Q U E N C I E S

arm = 600 MHz pwm = 0 MHz
core = 250 MHz emmc = 250 MHz
h264 = 250 MHz pixel = 0 MHz
isp = 250 MHz vec = 0 MHz
v3d = 250 MHz hdmi = 0 MHz
uart = 47 MHz dpi = 0 MHz

SD card = 50 MHz

S Y S T E M V O L T A G E S

core = 1.2000V
sdram controller = 1.2000V
sdram I/O = 1.2000V
sdram chip = 1.2250V

U I C U S T O M I Z A T I O N S

Theme color = Emerald
Playback history = No
Extra metadata = Yes
Library = Use Artist

A U D I O P A R A M E T E R S

Audio device = HiFiBerry Digi+ Pro
Interface = I2S
Hdwr volume = None
Mixer name = Digital
Output stream = S16_LE / 44100
ALSA version = 1.0.28-1+rpi3
SoX version = 0.1.1-1

Volume knob = 0
Volume mute = Off
Volume limit = 20

Airplay receiver = On
Squeezelite = Off
UPnP renderer = Off
DLNA server = Off

Rotary encoder = Off
Crossfeed DSP = Off
Equalizer DSP = Off
Auto-shuffle = Off
Autoplay = Off
MPD crossfade = Off

M P D S E T T I N G S

Version = 0.20.10
Volume control = disabled
ALSA device = hw:0
SoX resampling = *:16:*
SoX quality = very high
SoX multithreading = on
Audio buffer (kb) = 4096
Buffer before play = 20%
Output buffer size (kb) = 81920
Volume normalization = no
DSD over PCM (DoP) = yes
Replay gain = off

A I R P L A Y S E T T I N G S

Version = 3.0.2
Friendly name = Moode Airplay
Metadata display = Off
ALSA device = hw:0
Volume mixer = auto
Resume MPD after = No
Output bit depth = S16
Output sample rate = 44100
Session interruption = no
Session timeout (ms) = 120
Audio buffer (secs) = 0.15

S Q U E E Z E L I T E S E T T I N G S

Version = 1.8.6-938 "DSD/SRC enabled"
Friendly name = Moode
ALSA device = hw:0
ALSA params = 80:4::1
Output buffers = 40000:100000
Task priority = 45
Codec list = flac,pcm,mp3,ogg,aac,alac,dsd
Other options = -W -D 500 -R E

M O O D E L O G

20170920 163033 worker: Startup
20170920 163036 worker: Host (moode)
20170920 163036 worker: Hdwr (Pi-2B 1GB v1.1)
20170920 163036 worker: Arch (armv7l)
20170920 163036 worker: Kver (4.9.41-moode1)
20170920 163036 worker: Ktyp (Advanced-LL)
20170920 163036 worker: Gov (performance)
20170920 163036 worker: OS (moodeOS 3.0)
20170920 163036 worker: Rel (Moode 3.8.4 2017-08-28)
20170920 163036 worker: Upd (None)
20170920 163036 worker: MPD (0.20.10)
20170920 163036 worker: USB boot not enabled yet
20170920 163036 worker: File system not expanded yet
20170920 163036 worker: Session loaded
20170920 163036 worker: Debug logging (off)
20170920 163036 worker: File check...
20170920 163037 worker: File check ok
20170920 163037 worker: USB sources (none attached)
20170920 163037 worker: MPD scheduler policy (fifo)
20170920 163037 worker: MPD started
20170920 163038 worker: wlan0 does not exist
20170920 163038 worker: HDMI port off
20170920 163038 worker: Audio (I2S audio device)
20170920 163038 worker: Audio (HiFiBerry Digi+ Pro)
20170920 163038 worker: ALSA outputs unmuted
20170920 163038 worker: ALSA mixer name (Digital)
20170920 163038 worker: MPD volume control (disabled)
20170920 163038 worker: MPD output 1 ALSA default (on)
20170920 163038 worker: MPD output 2 ALSA crossfeed (off)
20170920 163038 worker: MPD output 3 ALSA equalizer (off)
20170920 163038 worker: Hdwr volume controller not detected
20170920 163038 worker: wlan0 address not assigned
20170920 163038 worker: eth0 exists
20170920 163038 worker: eth0 (192.168.1.5)
20170920 163038 worker: Airplay receiver started
20170920 163038 worker: Airplay volume (auto)
20170920 163038 worker: NAS sources (none configured)
20170920 163038 worker: MPD crossfade (off)
20170920 163039 worker: Volume level (0) restored
20170920 163039 worker: Watchdog started
20170920 163039 worker: End startup
20170920 163039 worker: Ready
 
Hi, is it possible to completely turn off moode's AP mode while the SSID is "blank" ?

If you're running a Pi3, disable the wifi adapter

If you're not running a Pi3, pull out the wifi adapter.

I find your question unusual - if you have a wifi adapter, you would want it connected to your home network, wouldn't you? Unless you have a Pi3 and you're running on Ethernet, in which case it wouldn't matter wether it was in AP mode or not, but you can turn the wifi off.

If you don't have a wifi adapter, it doesn't matter whether there's anything in the SSID field or not.
 
I wish to use a Blackberry Playbook as my controller. The Playbook has a screen resolution of 1024x600. Whatever browser I use, the covert art is resized horizontally so that it displays as a rectangle, rather than as a square. This happens whatever the orientation of the Playbook.

Is there a simple tweak that can be applied to the css that controls the screen layout so that cover art resizes in both directions to accommodate it on the screen?

Many thanks.
 
Since the 3.8.4 update I have to boot a second time. After listening I shutdown the RPI by menu.

After starting up a next time I can't connect, so I have to shutdown the RPI hardware based. After the second boot I can connect to the RPI.

Can I find out what's failing the first time?

When you say 'shutdown the RPI by menu', you then turn the power off, correct?

Considering the very few mAh that the Pi consumes while not being used, is it really worth turning off? At idle the Pi2 draws under 2W, so leaving it on for a whole day will use under 50Wh - less than an LCD monitor used for 1 hr or an electric light left on for half an hour.
 
Hi, is it possible to completely turn off moode's AP mode while the SSID is "blank" ?

Hi,

Try entering a bogus SSID. This should prevent AP mode from starting. Or if u are using Pi-3B or 0W integrated WiFi adapter then turn it off in System config.

Whats your usage scenario?

in moOde 4 I've changed to only starting AP mode if SSID is blank AND there is no ethernet connection.

-Tim
 
Hi Tim,
After a few hours of trial and error I've been able to trace it down to a single ALAC album that apparently makes mpd crash. With a single album in the library (AC/DC's Back in Black), I've removed the USB drive to clear it and add Cara Dillon's ALAC album Live At The Grand Opera House. Then plug USB drive back into the Raspi, run an Update and this is what happens:
pi@moode:~ $ cat /var/log/mpd/mpd.log
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/10 Rock and Roll Ain't Noise Pollution.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/09 Shake a Leg.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/08 Have a Drink on Me.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/07 You Shook Me All Night Long.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/06 Back in Black.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/05 Let Me Put My Love into You.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/04 Given the Dog a Bone.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/03 What Do You Do for Money Honey.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/02 Shoot to Thrill.flac
Sep 24 10:14 : update: removing USB/05A6-009C/AC_DC/Back in Black/01 Hells Bells.flac
Sep 24 10:14 : avahi: Service 'Moode MPD' successfully established.
pi@moode:~ $

Is there any verbose option to gather further info?
On the other hand, mpd reported errors for most of the ALAC files (though they would be in the library and played fine). Most frequent error was this one (approx. 90% of tracks):

Sep 23 19:46 : player: played "USB/KINGSTON/Garth Brooks/The Chase (The Remastered Series)/02 Somewhere Other Than The Night.flac"
Sep 23 19:46 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: max_analyze_duration 5000000 reached
Sep 23 19:46 : update: added USB/KINGSTON/Cara Dillon/A thousand hearts/01 Jacket So Blue.m4a
Sep 23 19:46 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: max_analyze_duration 5000000 reached

Few tracks generated this error:
Sep 23 20:11 : update: added USB/KINGSTON/Rod Stewart/It Had To Be You... The Great American Songbook/12 For All We Know.m4a
Sep 23 20:11 : ffmpeg/mjpeg: ignoring invalid SAR: 0/0
Sep 23 20:11 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: max_analyze_duration 5000000 reached

Martí

Hi,

You could set MPD logging to "verbose" in /etc/mpd.conf.

ALAC always generates errors when ffmpeg tries to determine the tracks duration. I think this is because ALAC header is at the end of the file. This also causes slower MPD update. Something like that.

What I've done is maintain parallel iTunes ALAC and moOde FLAC libraries. Its easy using XLD to batch convert albums from ALAC to FLAC. I like the convenience of using iTunes to import and tag CD's, and the speed, robustness and zero-errors using FLAC format with MPD. Eventually I'll just skip iTunes and import CD's directly to FLAC with XLD.

-Tim
 
If you're running a Pi3, disable the wifi adapter

If you're not running a Pi3, pull out the wifi adapter.

I find your question unusual - if you have a wifi adapter, you would want it connected to your home network, wouldn't you? Unless you have a Pi3 and you're running on Ethernet, in which case it wouldn't matter wether it was in AP mode or not, but you can turn the wifi off.

If you don't have a wifi adapter, it doesn't matter whether there's anything in the SSID field or not.

Ha, ha. I would have figured #2 #4 out myself :D

I have a Pi3 running ethernet and would like to avoid yet another Wifi antenna emitting radio waves around me. Thank's

Ps. I couldn't find an option in Moode. Maybe there is one over the command line. I'll check it out. Didn't think of doing that.
 
I wish to use a Blackberry Playbook as my controller. The Playbook has a screen resolution of 1024x600. Whatever browser I use, the covert art is resized horizontally so that it displays as a rectangle, rather than as a square. This happens whatever the orientation of the Playbook.

Is there a simple tweak that can be applied to the css that controls the screen layout so that cover art resizes in both directions to accommodate it on the screen?

Many thanks.

Hi,

Odd aspect ratio 1024 x 600 = 16 x 9.375 :-0

You could look at /var/local/www/cssw/panels.css and play with the settings for coverart image.

-Tim