3

I am new in capturing video(AVFoundation) and WOWZA server.

I have checked many solutions but didn't find any tutorials or libraries on "How to work with WOWZA server using RTSP". I found one project VideoCore on GitHub but it works only on RTMP. They have suggested answer on the RTSP problem, USE live555 protocol. But i hardly understand c++ code.

My Question:

  • How do i get video stream from AVFoundation? Right now i am getting file not stream data using AVCaptureFileOutputRecordingDelegate:

captureOutput(_: didFinishRecordingToOutputFileAtURL:, fromConnections: error:)

But i need stream output data so i can send to WOWZA server.

  • How to convert video to encoded h.264 stream?
  • How to integrate live555 library to VideoCapture class for generate RTSP URL?
  • How to send that video to WOWZA using RTSP protocol?

Please, Suggest me with any library or sample code in your answer.

bhavesh
  • 109
  • 14
  • 1
    In a quick look, I found the Encoder project (https://github.com/OpenWatch/H264-RTSP-Server-iOS). Granted it looks to publish on the device and you'd need to ingest it from Wowza, but it does make use of the AVFoundation library of which may be useful in your development. – Matt Apr 12 '16 at 10:09

3 Answers3

0

using iOS-Video-Encoding Video Encoder library for encoding frame in h264 format and then send to Live555 RTSPClient. Hope this will helps you. Thanks punita

Punita
  • 1,338
  • 2
  • 13
  • 21
0

You can stream RTSP from iOS app using the mobile SDK with Wowza Streaming Engine software. Disclaimer: I work at Wowza.

  1. Configure your live stream by opening Streaming Engine Manager
  2. In the Streaming Engine Manager, click the Applications tab at the top of the page.
  3. In the Applications contents panel, click Live, and then click Edit.
  4. In Playback options, select all you would like. RTSP/RTP is an option.
  5. Complete remaining security steps.

To see supporting docs to test the stream, please go here. Hope this helps!

https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtsp-rtp-based-encoder

Rose 48
  • 41
  • 4
  • 3
    Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – NathanOliver Aug 07 '18 at 17:37
  • Thank you Nathan, I'll edit and provide more details. – Rose 48 Aug 07 '18 at 20:41
-1

If you want a easier route, you could look at Red5 Pro's offerings. It doesn't use Wowza or expect that you fully understand iOS dev. There's also a blog post / walk-thru for creating your own Periscope type app, which is what I assume you're trying to create?

Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131