Resolving a mediastreamsegmenter setup problem on Mac OS X 10.6

I am trying to use a Mac OS X 10.6 mediastreamsegmenter to take the audio input of my mac and turn it into a stream that I can listen to on the iPhone.

I read this and the corresponding manual 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 to use QuickTime Player X to connect to localhost: 8080, it doesn’t.

What am I missing here?

+3
source share
1 answer

According to the tech note that describes the tool mediastreamsegmenter:

MPEG-2 UDP stdin . , .

, UDP-, , , MPEG2.

- , , , , iSight.

, VLC.

  • VLC File → Open Capture Device...
  • Capture iSight
  • , Streaming/Saving .
  • "..." , : alt text
  • "", ""
  • " ", " " , .
  • "" , , ,
  • mediastreamsegmenter -s 3 -D -f /Users/your-user-name/Sites/stream/ 127.0.0.1:2222 enter. . , , whoami Terminal
  • VLC ""

, :

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

, :

  • QuickTime X
  • → URL
  • http://localhost/~name/stream/prog_index.m3u8
  • ""

iPhone MobileSafari URL-, . http://your.ip.address/~name/stream/prog_index.m3u8

+13

Source: https://habr.com/ru/post/1767670/


All Articles