Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>According to the <a href="https://developer.apple.com/library/content/technotes/tn2224/_index.html" rel="nofollow noreferrer">tech note</a> that describes the <code>mediastreamsegmenter</code> tool:</p> <blockquote> <p>This tool receives an MPEG-2 transport stream over a UDP network connection or from stdin and divides it into a series of small media segments of equal duration. It then creates an index file containing references to the individual media segments.</p> </blockquote> <p>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.</p> <p>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.</p> <p>Before you start, you will need the latest version of <a href="http://www.videolan.org/vlc/download-macosx.html" rel="nofollow noreferrer">VLC</a>.</p> <h2>Setup Streaming Server</h2> <ol> <li>Start VLC and select File -> Open Capture Device...</li> <li>Select the <em>Capture</em> tab and choose iSight in the dropdown</li> <li>Make sure the <em>Streaming/Saving</em> checkbox is enabled</li> <li>Click the <em>Setting...</em> button and configure as in the screencap below: <img src="https://i.stack.imgur.com/3ywkj.png" alt="alt text"></li> <li>Click <em>OK</em>, but don't click the <em>Open</em> button just yet</li> <li>Go to <em>System Preferences</em>, click on the <em>Sharing</em> icon and make sure <em>Web Sharing</em> is turned on.</li> <li>Go to your home folder and in the <em>Sites</em> folder create a new folder called for example <em>streaming</em></li> <li>In Terminal type <code>mediastreamsegmenter -s 3 -D -f /Users/your-user-name/Sites/stream/ 127.0.0.1:2222</code> and press enter. Make sure to replace your-user-name with your short user name. If you don't know what that is, type <code>whoami</code> in the Terminal</li> <li>In <em>VLC</em> click <em>Open</em></li> </ol> <p>If all goes well after a few seconds you should see messages like this:</p> <pre><code>Dec 7 2010 22:46:37.696: Finalized /Users/name/Sites/stream/fileSequence27.ts Dec 7 2010 22:46:37.741: received 276360 written bytes 260380 skipped 15792 pat/pmt skipped 15792 Dec 7 2010 22:46:48.504: Finalized /Users/name/Sites/stream/fileSequence28.ts Dec 7 2010 22:46:49.263: received 371112 written bytes 356636 skipped 15792 pat/pmt skipped 15792 </code></pre> <h2>Stream</h2> <p>To test that everything is working:</p> <ol> <li>Open QuickTime X</li> <li>File -> Open URL</li> <li>Type in <code>http://localhost/~name/stream/prog_index.m3u8</code></li> <li>Click <em>Open</em></li> </ol> <p>On an iPhone just open MobileSafari and go to the the same URL, e.g. <code>http://your.ip.address/~name/stream/prog_index.m3u8</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload