# SOX streams $COREAUDIO_DEVICE to $AUDIO_FIFO (with an increased buffer size, 4MB) $VLC_PATH screen:// :screen-fps="$FPS" -I dummy -sout "file/dummy:$VIDEO_FIFO" & # VLC streams screen:// to $VIDEO_FIFO, in a raw BGRA format. It kills all the processes and deletes the FIFOs. # This is called when you ^C or an app quits. # The valid names can be seen in the System Preferences->Sound menu and then under the Output and Input tabs.įor fifo in "$VIDEO_FIFO" "$AUDIO_FIFO" do # You can change this to record microphone or something else, from man soxformat (under coreaudio): INRES=$(osascript -e 'tell application "Finder" to get bounds of window of desktop'|sed 's/, /x/g'|cut -f3-dx) # I don't know how this'll behave on multimon, so you might want to hard-code. VLC_PATH="/Applications/VLC.app/Contents/MacOS/VLC" Here’s a modified version of Tyler’s script: In any case, I figured I should share this with the rest of you. Raw video in a dummy mux is passed over the FIFO to ffmpeg, and ffmpeg is allowed to do all the encoding. Even using MPEG-TS had issues in this context. Turns out that this works best if you do no work in VLC other than spew to a FIFO: no encoding or encapsulating. So, the best I could do was have VLC stream the screen over a FIFO to ffmpeg, redirect audio through Soundflower, then use sox to pipe audio to ffmpeg.įinally, ffmpeg recodes all that data and sends it to the RTMP server. The only other app that’d stream audio live from an audio device to a fifo or pipe was sox.Īny of these statements might be wrong, so please tell me if you know a way :) VLC doesn’t support streaming to an RTMP serverġ. ffmpeg can’t record a web cam on OS X (this would allow me to use CamTwist as an input source)ġ. ffmpeg doesn’t have a single audio input that can read an audio device on OS X (see OpenAL section below)ġ. ffmpeg doesn’t support screen grabbing on OS Xġ. Surprisingly, my researched ended up with the following results:ġ. It only used ffmpeg, and seemed to work pretty well. So, based on Tyler’s Linux approach, I tried getting something similar working on OS X. You can get the “Pro” version for $200 which gives you “HD Broadcasting” - but no thanks. One simple app to do everything, but sadly it only supports streaming to Ucast, downscales to somewhere near the resolution of a feature-phone from 2000, and still constantly complains that I don’t have enough bandwidth. This method, described by Mike Chambers, relied on three separate GUI tools (one of which was required the Adobe Flash Media Live Encoder), consumed all my CPU, and refused to support my 16:10 aspect ratio. Adobe Flash Media Live Encoder, CamTwist & Soundflower I found two ways online, none of which satisfied me, so I hunted for my own. Turns out that livecasting your desktop in OS X is surprisingly hard. EDIT 2: RTP+SDP was somehow garbling the output, new and improved script now uses FIFOs! In the meantime, any help would be most gratefully appreciated.EDIT: Found a way to get audio using Soundflower & sox. This feels to me like the driver is unstable, and I will try uninstalling, and reinstalling it. I have tried every combination of settings for Input and Output, and - as can be seen from what I said above - can obviously set things up correctly to hear all other sources, so I am at a loss about what the solution to this might be. band (GarageBand's native format) file, or exported mp3 of the file. I can hear audio from every other imaginable source: youtube videos, other GarageBand projects, mp3's, songs in iTunes, in a variety of players (GarageBand, iTunes, VLC, Quicktime), but cannot hear either the. When I finished recording, I could not - and still cannot - hear any playback, ,despite the meters and waveforms showing that there is audio present. I then started recording again, and as just before, the meters were working, and the waveform confirmed playback, as did me using my audio interface's mix knob to confirm that I was hearing the audio that was recording. I had problems initially getting Soundflower to 'hear' the audio source, but when I was finally successful, I could see the audio waveform change, and a quick playback test confirmed that everything was working. I just recorded some streaming audio in GarageBand after having downloaded Soundflower, and am having problems hearing the playback of the file. I am running an old (late 2007) Mac Pro, dual core Intel Xeon (2 x 2.66), Snow Leopard / OSX 10.6.8 (which, apparently I can no longer upgrade).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |