I'm trying to use Mac OS X 10.6's mediastreamsegmenter to take the audio input of my mac and turn it into a stream that I could listen to on the iPhone.
I've read this and the related man page. But when I do something like this:
mediastreamsegmenter -s 3 -D -f /tmp/stream localhost:8080
No files appear in the 'stream' directory and when I try and use QuickTime Player X to connect to localhost:8080, no go.
What am I missing here?
According to the tech note that describes the
mediastreamsegmenter
tool:This means that you will need to have a UDP server running on the machine that you want to do the capture on, that is capable of pushing out the data in a MPEG2 transport stream.
I wasn't able to find anything freely available that captures from a mic input, but here is a series of steps to see a working live streaming that will stream from your iSight.
Before you start, you will need the latest version of VLC.
Setup Streaming Server
mediastreamsegmenter -s 3 -D -f /Users/your-user-name/Sites/stream/ 127.0.0.1:2222
and press enter. Make sure to replace your-user-name with your short user name. If you don't know what that is, typewhoami
in the TerminalIf all goes well after a few seconds you should see messages like this:
Stream
To test that everything is working:
http://localhost/~name/stream/prog_index.m3u8
On an iPhone just open MobileSafari and go to the the same URL, e.g.
http://your.ip.address/~name/stream/prog_index.m3u8