Hello again,
i installed spocon and owntone. Audio with pipe works.
I created a pipe srv/music/spotify.metadata
Music plays but I get no metadata in owntone.
Any solution or do have to change other settings also to see what is playing?
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
A metadata pipe doesn't require any settings in OwnTone. I can't speak for spocon. Did you check if any metadata is actually written to the pipe by spocon?
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
I have uploaded a new release of the Owntone RPi build, this one is 28.6.126. List of major changes:
- Added Chinese translations, localisation fixes for German and French
- Fix for language selection dropdown sometimes missing
- Web UI improvements, e.g. easier volume sliders and incorrect display of genre
- Changes to artwork search orders (easier to have static artwork for pipes)
- Major refactor of the http server giving better mp3 streaming performance
- Added Chinese translations, localisation fixes for German and French
- Fix for language selection dropdown sometimes missing
- Web UI improvements, e.g. easier volume sliders and incorrect display of genre
- Changes to artwork search orders (easier to have static artwork for pipes)
- Major refactor of the http server giving better mp3 streaming performance
Re: owntone server (iTunes server)
I am only using OwnTone to AirPlay my Record Player. I would like to permenently replace Unknown Artist & Album with something friendlier. Any idea how I could do this? Is this something you set in a config file somewhere or is it Airplay default? I saw the thing about adding a name to a stream but not sure that would apply. Thanks. This has been a really fun RasPi project for me and kinda my first.
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
Yes, if you're only using Owntone for that then the simplest way is just to change them via the config file. See https://github.com/owntone/owntone-serv ... -902260975. Works with name_unknown_title, name_unknown_artist, name_unknown_album, name_unknown_genre and name_unknown_composer.
Re: owntone server (iTunes server)
Well everything is working great! I now have my turntable next to my desk and I may actually use it more now. Thank you!
Just some questions about quality. I believe it's Airplay 1 on my Yamaha Receiver so OwnTone is transcoding to ALAC 16/44.1? and Chromecast is converted to OGG? What bitrate? Is it different between Chromecast and Chromecast Audio? CPU on this Pi 3 is hardly doing anything. It's hovering around 1% and that's with VNC going. Are you sure it transcoding the audio? Could it just be pushing the raw wav pcm?
arecord -D hw:CARD=S3,DEV=0 -f cd -d 0 -t raw > /home/pi/Music/OwnTone
Thanks again, really great work!
Just some questions about quality. I believe it's Airplay 1 on my Yamaha Receiver so OwnTone is transcoding to ALAC 16/44.1? and Chromecast is converted to OGG? What bitrate? Is it different between Chromecast and Chromecast Audio? CPU on this Pi 3 is hardly doing anything. It's hovering around 1% and that's with VNC going. Are you sure it transcoding the audio? Could it just be pushing the raw wav pcm?
arecord -D hw:CARD=S3,DEV=0 -f cd -d 0 -t raw > /home/pi/Music/OwnTone
Thanks again, really great work!
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
Here are the qualities that OwnTone outputs:
- Airplay 1: uncompressed ALAC 44100/16
- AIrplay 2: compressed ALAC 44100/16
- Chromecast: OPUS 48000/16 (lossy compression, not sure about bitrate)
- local audio: source quality
Since Airplay 1 is uncompressed it is basically just the PCM like you say. So the cpu isn't doing much. You will see that it's more busy with Airplay 2 and Chromecast.
- Airplay 1: uncompressed ALAC 44100/16
- AIrplay 2: compressed ALAC 44100/16
- Chromecast: OPUS 48000/16 (lossy compression, not sure about bitrate)
- local audio: source quality
Since Airplay 1 is uncompressed it is basically just the PCM like you say. So the cpu isn't doing much. You will see that it's more busy with Airplay 2 and Chromecast.
Re: owntone server (iTunes server)
Is it possible to force a reconnect to my AirPlay device after a reboot? If I turn on overlay while connected to "Theater" and I reboot the Pi, OwnTone reconnects perfectly without any interaction from me. If overlay is off, I need to open the browser and switch "Theater" back on after reboot.
For my setup, if the Pi is turned on, it means I want to play music to "Theater" from the fifo pipe in my Music folder. I always make sure "Theater" is available before booting the Pi.
Thanks,
For my setup, if the Pi is turned on, it means I want to play music to "Theater" from the fifo pipe in my Music folder. I always make sure "Theater" is available before booting the Pi.
Thanks,
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
When OwnTone starts it reads speaker selection from its database (/var/cache/owntone/songs3.db). So if your non-overlay partition has enough space then the easiest solution is just to make a copy of the database on the overlay partition. That database presumably has the speaker selected.
> I always make sure "Theater" is available before booting the Pi.
This isn't strictly necessary. If the database has the speaker as selected then it will also be selected if it appears later, except if there is active playback.
If you can't make it work then another - somewhat crude - option might just be a cron job that runs "mpc enable Theater" every minute or so.
> I always make sure "Theater" is available before booting the Pi.
This isn't strictly necessary. If the database has the speaker as selected then it will also be selected if it appears later, except if there is active playback.
If you can't make it work then another - somewhat crude - option might just be a cron job that runs "mpc enable Theater" every minute or so.
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
I have uploaded a new release of the Owntone RPi build, this one is 28.8.127. This is mostly to bring the RPi release up to the latest Owntone version, but it also brings a few bug minor fixes.
Re: owntone server (iTunes server)
Hello,
I have been using Owntone (installed on a RPi3B) for quite a few years to stream local music to several points around the house, these have previously been MusicBox or similar hosted on Raspberry Pi 2. Recently I have wanted to move to something quicker to boot and found the ESP32-A1S. I have installed https://github.com/sle118/squeezelite-esp32 on the ESP and I am able to get Owntone to connect to the ESP32 via Airplay, however the stream is has a very audible buzzing in the background.
I have been using Owntone (installed on a RPi3B) for quite a few years to stream local music to several points around the house, these have previously been MusicBox or similar hosted on Raspberry Pi 2. Recently I have wanted to move to something quicker to boot and found the ESP32-A1S. I have installed https://github.com/sle118/squeezelite-esp32 on the ESP and I am able to get Owntone to connect to the ESP32 via Airplay, however the stream is has a very audible buzzing in the background.
- The buzzing is not present when the Airplay stream is paused
- The bussing gets louder with the Airplay volume
- I do not experience any buzzing when using Owntone to a RPi
- The ESP32 works without buzzing when connecting via different AirPlay server software such as TuneBlade
- The ESP32 works without buzzing when streaming AirPlay from an iPhone
- I have tried changing several setting within the Owntone configuration trying different stream rates, codecs etc
- Wireshark captures from the working (TuneBlade) and Owntone stream to the ESP32 look very similar, UDP, same destination port etc
- Owntone debug logs show "Negotiated AirTunes v2 UDP streaming session DEADBEEF" when connecting to the ESP32 which does not happen with the RPi based client
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
First of all, kudos for a great job trying to identify the cause of this issue. It sounds to me like it might be related to the ALAC encoding used for Airplay 1, and that has actually been changed slightly in the latest release. So my first question would be if you observe the buzzing both with the version before current release (which is 28.8), and with the current release?
Also, if you happen to be on github, please add the issue there. Github is a bit more convenient for discussing an issue like this.
Also, if you happen to be on github, please add the issue there. Github is a bit more convenient for discussing an issue like this.
Re: owntone server (iTunes server)
Thanks for the quick reply, I did notice that there was a new 28.8 release out just as i posted. I originally tried this with forked-daapd - version 27.2 which did have the buzzing, I then did a fresh install of 28.6 which also had the buzzing and just upgraded it to 28.8, and it still happens. I will open an issue on Gibhub, thanks again.
Re: owntone server (iTunes server)
Hello,
I am a longtime and happy forked-daapd user. Recently my old sd card died and I had to set up owntone from scratch (or actually luckily via the repositories). Therefore I chose the latest Raspberry Pi system (bullseye) for my Raspi 4. The installation process went well and I was able to set up everything as described in the installation procedure. The server starts and I am able to connect to it via the Apple remote app. I attached a USB stcik with my music files to the Raspberry and its auto mounted and the files can be read. The owntone db scans the directory and finds the music files and displays it in the App and the web frontend.
But unfortunately as soon as I restart the server (sudo reboot) the library is empty again and I have to scan the USB stick again.
What do I miss? I have one user which gets created when installing the bullseye system. I changed the log function to debug but could not find anything unusual (at least to my eye)? I tried to delete the db and cache files to rebuild the library. The db file also gets a significant size and the file size does not change after a reboot. I found a hint for bullseye and user rights earlier in this thread but this did not help either (but perhaps I did not use it correctly).
I guess it has something to do with user rights, but I am not an expert in this respect so after a sleepless night :=) I decided to write this post.
Best regards
kerihuelo
I am a longtime and happy forked-daapd user. Recently my old sd card died and I had to set up owntone from scratch (or actually luckily via the repositories). Therefore I chose the latest Raspberry Pi system (bullseye) for my Raspi 4. The installation process went well and I was able to set up everything as described in the installation procedure. The server starts and I am able to connect to it via the Apple remote app. I attached a USB stcik with my music files to the Raspberry and its auto mounted and the files can be read. The owntone db scans the directory and finds the music files and displays it in the App and the web frontend.
But unfortunately as soon as I restart the server (sudo reboot) the library is empty again and I have to scan the USB stick again.
What do I miss? I have one user which gets created when installing the bullseye system. I changed the log function to debug but could not find anything unusual (at least to my eye)? I tried to delete the db and cache files to rebuild the library. The db file also gets a significant size and the file size does not change after a reboot. I found a hint for bullseye and user rights earlier in this thread but this did not help either (but perhaps I did not use it correctly).
I guess it has something to do with user rights, but I am not an expert in this respect so after a sleepless night :=) I decided to write this post.
Best regards
kerihuelo
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
Can you share the part of log that is from right after the reboot? Just the first part after reboot where there are some lines marked with '[db]'. I would like to see if OwnTone finds the existing db, or if it is creating a new one.
I notice you write that "you have to scan" after reboot, but all scanning should be automatic in your use case, so that puzzles me. Maybe the log can shed light on that too.
I notice you write that "you have to scan" after reboot, but all scanning should be automatic in your use case, so that puzzles me. Maybe the log can shed light on that too.
Re: owntone server (iTunes server)
Thank you for your reply.
What I just did:
I started the server and enabled log level "debug".
Restart
Library update (Rescan metadata of unmodified files & Update everything)
All the music files can be found in "Artists" or "Albums" etc.
Restart
Just my radio playlist which resides in a separate directory can be seen in the frontend.
These are the log entries after the reboot:
(by the way, if I change the language of the frontend to something else it is also not saved; or if I select "hide artists from spotify" after a restart it is deselected again)
[2023-09-27 17:24:35] [ LOG] main: OwnTone version 28.8 taking off
[2023-09-27 17:24:35] [ LOG] main: Built with:
[2023-09-27 17:24:35] [ LOG] main: - ffmpeg
[2023-09-27 17:24:35] [ LOG] main: - Spotify
[2023-09-27 17:24:35] [ LOG] main: - librespot-c
[2023-09-27 17:24:35] [ LOG] main: - LastFM
[2023-09-27 17:24:35] [ LOG] main: - Chromecast
[2023-09-27 17:24:35] [ LOG] main: - MPD
[2023-09-27 17:24:35] [ LOG] main: - Websockets
[2023-09-27 17:24:35] [ LOG] main: - ALSA
[2023-09-27 17:24:35] [ LOG] main: - Pulseaudio
[2023-09-27 17:24:35] [ LOG] main: - Webinterface
[2023-09-27 17:24:35] [ LOG] main: - Regex
[2023-09-27 17:24:35] [ INFO] main: Initialized with ffmpeg 4.3.6-0+deb11u1+rpt5
[2023-09-27 17:24:35] [DEBUG] main: Initialized with gcrypt 1.8.8
.
.
.
[2023-09-27 17:24:46] [ LOG] scan: Skipping library directory /media/pi/MUSIC, could not dereference: No such file or directory
[2023-09-27 17:24:46] [DEBUG] db: Running query 'UPDATE files SET path = substr(path, 1), virtual_path = substr(virtual_path, 1), disabled = 4294967296 WHERE path LIKE '/media/pi/MUSIC/%';'
What I just did:
I started the server and enabled log level "debug".
Restart
Library update (Rescan metadata of unmodified files & Update everything)
All the music files can be found in "Artists" or "Albums" etc.
Restart
Just my radio playlist which resides in a separate directory can be seen in the frontend.
These are the log entries after the reboot:
(by the way, if I change the language of the frontend to something else it is also not saved; or if I select "hide artists from spotify" after a restart it is deselected again)
[2023-09-27 17:24:35] [ LOG] main: OwnTone version 28.8 taking off
[2023-09-27 17:24:35] [ LOG] main: Built with:
[2023-09-27 17:24:35] [ LOG] main: - ffmpeg
[2023-09-27 17:24:35] [ LOG] main: - Spotify
[2023-09-27 17:24:35] [ LOG] main: - librespot-c
[2023-09-27 17:24:35] [ LOG] main: - LastFM
[2023-09-27 17:24:35] [ LOG] main: - Chromecast
[2023-09-27 17:24:35] [ LOG] main: - MPD
[2023-09-27 17:24:35] [ LOG] main: - Websockets
[2023-09-27 17:24:35] [ LOG] main: - ALSA
[2023-09-27 17:24:35] [ LOG] main: - Pulseaudio
[2023-09-27 17:24:35] [ LOG] main: - Webinterface
[2023-09-27 17:24:35] [ LOG] main: - Regex
[2023-09-27 17:24:35] [ INFO] main: Initialized with ffmpeg 4.3.6-0+deb11u1+rpt5
[2023-09-27 17:24:35] [DEBUG] main: Initialized with gcrypt 1.8.8
.
.
.
[2023-09-27 17:24:46] [ LOG] scan: Skipping library directory /media/pi/MUSIC, could not dereference: No such file or directory
[2023-09-27 17:24:46] [DEBUG] db: Running query 'UPDATE files SET path = substr(path, 1), virtual_path = substr(virtual_path, 1), disabled = 4294967296 WHERE path LIKE '/media/pi/MUSIC/%';'
Last edited by kerihuelo on Thu Sep 28, 2023 4:40 am, edited 1 time in total.
Re: owntone server (iTunes server)
Sorry to have bothered you!
I did the following and it seems to work now:
1. mounted the external usb drive to a new mount point manually.
2.edited fstab: /dev/sda1 /mnt/MUSIC vfat user,umask=0000 0 0
Now everything works as it should and also after a reboot all the files are available!
Thank you for your work!
I did the following and it seems to work now:
1. mounted the external usb drive to a new mount point manually.
2.edited fstab: /dev/sda1 /mnt/MUSIC vfat user,umask=0000 0 0
Now everything works as it should and also after a reboot all the files are available!
Thank you for your work!
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
Yes, the log showed that OwnTone couldn't access the folder at boot time:
[2023-09-27 17:24:46] [ LOG] scan: Skipping library directory /media/pi/MUSIC, could not dereference: No such file or directory
Btw, perhaps you can edit your comment with the log and remove all the noise.
[2023-09-27 17:24:46] [ LOG] scan: Skipping library directory /media/pi/MUSIC, could not dereference: No such file or directory
Btw, perhaps you can edit your comment with the log and remove all the noise.
Re: owntone server (iTunes server)
hi ejurgensen!
sry but is there a plan to support bookworm?
thank you
with bullseye repo I get:
sry but is there a plan to support bookworm?
thank you
with bullseye repo I get:
Code: Select all
bu@home:~# sudo apt install owntone
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
owntone : Depends: libavcodec58 (>= 7:4.2)
Depends: libavfilter7 (>= 7:4.0)
Depends: libavformat58 (>= 7:4.2) but it is not going to be installed
Depends: libwebsockets16 (>= 2.4.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
Yes, I have made a build for Bookworm here:
https://github.com/owntone/owntone-apt/ ... 6288706068
I haven’t tested it, I don’t have an RPi with Bookworm yet. If you can confirm that it works, I can add it to the repo.
https://github.com/owntone/owntone-apt/ ... 6288706068
I haven’t tested it, I don’t have an RPi with Bookworm yet. If you can confirm that it works, I can add it to the repo.
Re: owntone server (iTunes server)
yes I would but give me a hint how? 

-
- Posts: 700
- Joined: Thu Jul 04, 2013 8:11 pm
- Location: Denmark
Re: owntone server (iTunes server)
Download the artifact with raspberrypi-bookworm in the name, unzip and then there is .deb file. Move it to the RPi and install it with ‘dpkg -i filename’
Re: owntone server (iTunes server)
Ha! My mistake was not to be logged in on github. If not, its not downloadable.
I am just on the road and report back in 2-3h
I am just on the road and report back in 2-3h

Re: owntone server (iTunes server)
After installing dependencies it works
but I can't access the website with port 3689. 403 forbidden
libconfuse2 libevent-2.1-7 libevent-pthreads-2.1-7 libmxml1 libplist3 libwebsockets17
dpkg -i /a/owntone_28.8.127.git85929dc-1+bookworm_arm64.deb
Code: Select all
root@home:~# dpkg -i /a/owntone_28.8.127.git85929dc-1+bookworm_arm64.deb
Selecting previously unselected package owntone.
(Reading database ... 75857 files and directories currently installed.)
Preparing to unpack .../owntone_28.8.127.git85929dc-1+bookworm_arm64.deb ...
Unpacking owntone (28.8.127.git85929dc-1+bookworm) ...
Setting up owntone (28.8.127.git85929dc-1+bookworm) ...
Created symlink /etc/systemd/system/multi-user.target.wants/owntone.service → /lib/systemd/system/owntone.service.
Processing triggers for man-db (2.11.2-2) ...
root@home:~# service owntone status
● owntone.service - DAAP/DACP (iTunes), RSP and MPD server, supports AirPlay and Remote
Loaded: loaded (/lib/systemd/system/owntone.service; enabled; preset: enabled)
Active: active (running) since Sat 2023-10-14 12:00:36 CEST; 7s ago
Docs: man:owntone(8)
Main PID: 4275 (owntone)
Tasks: 18 (limit: 3979)
CPU: 515ms
CGroup: /system.slice/owntone.service
└─4275 /usr/sbin/owntone -f
Oct 14 12:00:37 home owntone[4275]: [2023-10-14 12:00:37] [ LOG] db: Could not prepare statement: no such table: admin
Oct 14 12:00:37 home owntone[4275]: [2023-10-14 12:00:37] [ LOG] db: Could not check database version, trying DB init
Oct 14 12:00:38 home owntone[4275]: [2023-10-14 12:00:38] [ LOG] db: Database OK with 0 active files and 6 active playlists
Oct 14 12:00:38 home owntone[4275]: [2023-10-14 12:00:38] [ LOG] laudio: Pulseaudio failed with error: Connection refused
Oct 14 12:00:38 home owntone[4275]: [2023-10-14 12:00:38] [ LOG] laudio: Error initializing Pulseaudio: Connection refused
Oct 14 12:00:38 home owntone[4275]: [2023-10-14 12:00:38] [ LOG] scan: Skipping library directory /srv/music, could not dereference: No such file or directory
Oct 14 12:00:38 home owntone[4275]: [2023-10-14 12:00:38] [ LOG] scan: Bulk library scan completed in 0 sec
Oct 14 12:00:38 home owntone[4275]: [2023-10-14 12:00:38] [ LOG] spotify: No spotify refresh token found
Oct 14 12:00:38 home owntone[4275]: [2023-10-14 12:00:38] [ LOG] spotify: Spotify webapi token refresh failed. In order to use Spotify, authorize the server to access your saved tracks by visiting http://owntone>
Oct 14 12:00:38 home owntone[4275]: [2023-10-14 12:00:38] [ LOG] lib: Library init scan completed in 0 sec (0 changes)
but I can't access the website with port 3689. 403 forbidden
Re: owntone server (iTunes server)
just have to adjust my config and now it runs!
I was in a hurry and have 1-2 things not considered
you can add the repo!

I was in a hurry and have 1-2 things not considered
you can add the repo!