11 ms·
Two play music, one into my hifi, one into my home audio distribution system. One is setup for RetroPie. One has LibreELEC installed, showing TV from my HDHome
by LeoPanthera 6y ago
Two play music, one into my hifi, one into my home audio distribution system.
One is setup for RetroPie. One has LibreELEC installed, showing TV from my HDHomeRun. One has a GPS hat and is a local NTP server.
And one boots into an Amiga emulator because I'm very old and nostalgic.
- joshspankit 6y ago(If you’re able to play to both simultaneously) Do the music playback devices stay in sync?
- LeoPanthera 6y agoNo they're independent. But if I want multiroom audio I just use my very low-tech home audio system. Most rooms have ceiling speakers that are all wired back to the garage where one of the Pi's lives.
- deleted 6y ago[deleted]
- blibble 6y agoI actually tried this and it turned out to be quite a bit more complicated than predicted, due to clocks on the pis being slightly different "I'll just sling udp multicast of the PCM samples around the network, can't be that hard right?" ended up using MPD with pulseaudio over TCP, and they get out of sync after a few minutes, but good enough
- deleted 6y ago[deleted]
- joshspankit 6y agoThe different clocks is a real hurdle. I have to give credit to Apple on this one, as they had the genius idea to make the buffer >1s, and send control messages independent of the audio stream. There’s gotta be a way to do it with PTP and the same ideas but clearly it’s either an extremely difficult problem, too niche, or both.
- MisterAV 6y agoWhat is the requirement for synched audio? milliseconds, microseconds, nanoseconds,... I'm currently working on devices that synchronises themselves wirelessly indoor over a large area and I'm now wondering if music could be an application I haven't though about...
- londons_explore 6y ago10 ms is fine. 100ms works but you get odd echoes like a speaker system in a big building. You need some way to compensate for clock drift between different playback devices. Even good clocks will drift 10ms in a few hours.
- loxias 6y ago1ms is barely "ok". with 1ms you'll still hear ugly comb filter effects. (see my other comments)
- joshspankit 6y agoAt most 10ms. Sub 1ms would be awesome. And yes, definitely. If you can build in a “chromecast receiver” so that a user could cast to multiple synced speakers (at full quality), you’d definitely have my attention
- Dylan16807 6y agoIt's worth noting that for two speakers playing the same audio, a 5ms offset will move the point of perfect sync by less than a meter. Going below a millisecond is definitely overkill territory.
- magnetised 6y agoIn 1ms sound travels just over 30cms - so just moving around a reasonable room affects the offsets between two well spaced speakers by 5-10ms. I use my own multi room audio system at home - http://strobe.audio http://strobe.audio - and although the sync isn’t perfect by any means the effect of moving around your house usually the problem. Eg if you have the volume in another room loud enough that it’s louder than the music from the room you’re in you get the weird echo effect. Otherwise nothing. Turns out our brains are really good at compensating for relatively large offsets
- vinw 6y agoTake a look at snapcast if you want to fix your out-of-syncness https://github.com/badaix/snapcast https://github.com/badaix/snapcast
- MegaDeKay 6y ago"Typically the deviation is below 0.2ms." Impressive!
- rainbowzootsuit 6y agoI successfully used shareport-sync and forked-daapd back a while ago with PogoPlugs and USB audio interfaces for multiroom audio. It worked without too much effort. https://github.com/mikebrady/shairport-sync https://github.com/mikebrady/shairport-sync http://ejurgensen.github.io/forked-daapd/ http://ejurgensen.github.io/forked-daapd/
- silicon2401 6y agodo you have a blog about this, or willing to share any more info? This sounds like something I'd like to start working towards
- LeoPanthera 6y agoI haven't documented it, but it's very simple.
- thisisbrians 6y agoI, too, would appreciate a brief Google Doc or Pastebin on this if you can spare the time. I've never setup netboot before, but have been interested for years... reply
- pbalau 6y agoUnless you are running your own router, like the op, most likely his setup won't help you. You should start by understanding all the components of the system and then figure out how to make it fit in your environment and maybe what changes you need to make. Start here [0] 0. https://en.wikipedia.org/wiki/Preboot_Execution_Environment https://en.wikipedia.org/wiki/Preboot_Execution_Environment
- LeoPanthera 6y agoThe Pi doesn't use PXE. It's different, but documented here: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md https://www.raspberrypi.org/documentation/hardware/raspberry...
- pbalau 6y agoYou probably should read that link, section "DHCP Request / Reply". Virtually the entire world uses PXE. Anyway, I find it funny that we are arguing about the proper name for network boot in a thread about usb boot.
- enobrev 6y agoCan I ask what software you're using for music on your home audio system? I have an HTD system with speakers throughout and while Chromecast Audio was great for a while, stability has been an issue that I'm no longer interested in hassling with. (Also looking forward to researching this netboot solution you speak of)
- entropie 6y agoDo you know homeassistant? https://github.com/home-assistant/plugin-audio https://github.com/home-assistant/plugin-audio
- enobrev 6y agoYes. I have a lot of respect for the HA project, but I stopped using it last year. It changed far too much for me too much keep up at the time, and I ran into too many issues with the zwave support at the time. Thanks for the link.
- hanklazard 6y agoNot the parent but I have a similar setup. I use volumio music software on 4 raspberry pi 3b+, each with a hifiberry amp to drive speakers. If you couple these with snapcast, you have a diy whole house sonos-like setup. Works well and I control volumes through home assistant. Not familiar with netbooting, but will be looking into it!
- enobrev 6y agoI had been considering a similar setup and then got a notification for a barely used htd lync12 with amps on Craigslist at an insanely good price and hopped right on it. I've spent the past year or so wiring up the house a room at a time, which has been painful and sometimes stressful. But I've become such a huge fan of the simplicity and stability of a wired setup that it's all been absolutely worth it. Thanks for the recommendation. I'll give volumio a closer look.
- LeoPanthera 6y ago
- sambf 6y agoEmby also offers the ability to control and play stuff on other Emby devices on the same network. LibreELEC/Kodi + the Emby plugin [0] on a Pi makes it appear as an Emby device on other devices. Been using that for more than a year an it works like a charm. Plus the data is fetched from the Emby server and not device to device, so you can play something from your phone to your TV, then continue to control from your tablet while your phone is off. [0] http://kodi.emby.media/ http://kodi.emby.media/
- fredley 6y agoSurprised not to see Pi Hole on that list!
- ukyrgf 6y agoAny old SBC can run that reliably on it's own, the parent is talking about swapping out the OS with netboot on the fly.
- LeoPanthera 6y agoMy router runs pfSense so I don't need Pi Hole, I can use pfBlockerNG instead, which is built in.
- cbzbc 6y agoHow do you serve up images to the retropie box?