6

I have an iOS application that displays an rtsp stream from an IP camera on the local network, I would like to restream it to an external server in real time (Wowza to be specific) the server will take care of converting rtsp to HLS so that the users can view the live broadcast on their devices.

On a computer it would be pretty straight forward:

ffmpeg [input-options] -i [input-file] [output-options] [output-stream-URI]

But I need to do it programmatically on iOS, and I'm not really sure if it's even possible. Anyone?

animaonline
  • 3,715
  • 5
  • 30
  • 57
  • there is an ffmpeg library for ObjectiveC that might help - https://github.com/OpenWatch/FFmpegWrapper - but why go via the iOS device? have the camera push to Wowza and then if you want watch the Wowza stream on the iOS device? – Offbeatmammal Mar 19 '17 at 20:28
  • The camera is connected to a wireless router, which the target device connects to, in the future there will be an embedded computer that will take care of broadcasting and encoding, but now it has to be handled by the iOS app. It needs to display a preview of the video stream and broadcast it to wowza. – animaonline Mar 20 '17 at 08:15
  • hey @animaonline did you find the solution ? – Mubin Mall Sep 23 '17 at 09:51
  • 1
    @TheMall yep, I had to do some research on how ffmpeg works, then process each frame, copying it from the source stream to a remote rtmp stream (Wowza) – animaonline Sep 23 '17 at 13:55

1 Answers1

0

If you already have a server (where Wowza is installed) a good idea would be to run FFMPEG there. You can trigger that from mobile (with a script requests that executes ffmpeg command).

TopReseller
  • 623
  • 4
  • 6