AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Soundflower installation failed3/17/2023 ![]() ![]() ![]() (I originally posted this on the RaopX website: - look for jdan) Put them in the program folder, drag the icons onto the dock. You then save the scripts as programs (Save as …). It should not be too much of a problem to make the necessary changes in the scripts, though. The apps work flawlessly on my laptop but are of course written for my Dutch Mac Os. One click on the other app to stop the stream, close the terminal and reset the system preferences. The start app changes the system preferences, starts the terminal, types RaopX and starts the stream and it opens in Safari. One click on the start app and seconds later you can listen to your favourite music. I have made two apps with AppleScript-Editor to start and stop the RaopX stream. Instructions can be found on the website of RaopX - see at the end. I think the easiest way to do this is to use Soundflower in combination with RaopX. This same ffmpeg technique can be used to stream video as well as audio, which would let you make your cupboard machine act more like an Apple TV.flac) with ffmpeg streaming but couldn't get it to work. The audio is transcoded as mp3, which is lossy so there will be a slight degradation in sound quality.Some CPU time is used on the Mac transcoding and streaming the audio, but it is fairly small (about 5 percent on my MacBook Pro).The only tool I could find to do this is esdrec. In this setup esound/esdrec can be replaced with any commandline tool that records audio and streams to stdout. Whenever I've tried using esd to stream audio I've experienced a big delay and garbled audio, hence using ffmpeg/vlc instead. The program esound isnt really needed, as we are only using it to record audio rather than using its network audio abilities.This makes watching videos with network audio a bit rubbish, but using VLC or MPlayer you can adjust the audio sync to compensate for this. There is about a two second delay between playing on the Mac and hearing on the receiving machine.The other computer connects to the rtp stream and plays the audio.After that ffmpeg takes the raw audio and encodes it as mp3 then publishes it on the network as an rtp stream.Then esdrec connects to esd and records input to the microphone and passes it on to ffmpeg.The program esd opens the sound device and makes it available to other local programs.Soundflower captures any output going to the speakers and redirects it to the microphone input (this is all done digitally, so there is no loss in quality).You should now have all audio from your Mac playing over the network. Run VLC to stream your audio from your mac with: vlc rtp://myOtherIP:1234 where myOtherIP is the address of the box you are running VLC on.On an ubuntu/debian box you can use sudo apt-get install vlc-nox for a console version. Steps to use on a machine connected to your stereo: Record the audio captured by Soundflower and stream it over the network using the rtp protocol withĮsdrec | ffmpeg -f s16le -ac 2 -i -acodec libmp3lame -ab 320k -f rtp rtp://myIP:1234 Here myIP is the IP address of the box you want to stream to.Note we are not actually using esd to transfer the audio over the network, just for recording local audio. Start esd with the Terminal command: esd.This turns off your built in speakers so only the network sound will play. Run Soundflowerbed that came with Soundflower, found in the Flower menu item, and select None (OFF) under Soundflower (2ch).In System Preferences » Sound, select Soundflower (2ch) as the Input and Output devices.Similarly install ffmpeg with sudo port install ffmpeg.Install esound with the command sudo port install esound in Terminal.Install MacPorts as well this will make it easy to install esound and ffmpeg which are needed later.This will allow you to redirect all audio played on your Mac over the network. This tip is similar to this hint but after experimenting with that technique and various other options I think I've hit on an improved setup. Have you ever wanted to wirelessly stream all audio from your Mac to the Unix/Windows/Mac box in your cupboard connected to your beefy stereo? Here is an alternative to buying an Airport Express for the purpose. ![]()
0 Comments
Read More
Leave a Reply. |