How to live stream video from iPhone to a Wowza server?

纵饮孤独 提交于 2019-11-28 23:13:18

问题


I would like to live stream a video from the iPhone camera to a Wowza server using the RTP protocol.

I was 'playing' with the AVFoundation framework but is not possible to send the data to an specific URL to do it.

I read in the forums that the better way is to use the ffmpeg library. I compile the it and I got all the *.a files. Also, I compile a library of a user of this forums (Livu creator) called ffstream.a

I think I have to encode my RAW images which I get with the AV framework to H264 and after it send it to the wowza server. Someone could help me with some tips of how to send the raw of frames to the rtp server?

Thanks in advance and kind regards :)


回答1:


Try Livu app lib , source on git : https://github.com/otmakie/LivuLib.git




回答2:


If you want to try it, on the apple store you could find :

  • Wowza Gocoder
  • Livu

For both of those applications, it's allow you to stream live events from a iPhone/iPod/iPad through a WiFi, 4G/3G connection. Wowza Gocoder is a little be more recent and more updated than livu.

You can try to build a similar application with the iOS Framework. Your just need to know how to get an h264 stream from the camera and publish it to a server. It's possible through RTP/RTSP or through RTMP.

To have some exemple, Livu code was released as an LGPL project 2 years ago. Code is available here : https://github.com/otmakie/LivuLib

You can also look at this topic : Uploading live streaming video from iPhone




回答3:


I have recently developed an iOS app, which push video streams from iOS device camera to wowza Streaming Cloud using RTMP protocol. I have used LFLiveKit for streaming video to wowza server. LFLiveKit is a great iOS library which is very simple and effective RTMP library for iOS.

To integrate LFLiveKit into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git' platform :ios, '7.0' pod 'LFLiveKit'

Then, run the following command:

$ pod install




回答4:


There is a very good streaming SDK here (www.streamaxia.com). They have ABR and their app broadcastme can live stream to youtube, twitch and to their servers very easily.

I heard that is the old RealTimeLibs company but I think they are way better.



来源:https://stackoverflow.com/questions/9855166/how-to-live-stream-video-from-iphone-to-a-wowza-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!