Search code examples
iphoneiosxcodeffmpegrtsp

RTSP Streaming on iOS 6 with Xcode 4.6.1


I need to develop an app what is capable of receiving a RTSP Stream. I tried to find solutions/tutorials in the internet for the whole day now, but without any success. I read a lot about using FFMPEG or Live555 (more FFMPEG, also I read that Live555 is not necessary when using the newest version of FFMPEG), but nowhere I looked it was described in a form I could understand, when I found questions on stackoverflow the answers were really short and I could not figure out what they tried to explain. So now I need to ask myself. I used "Homebrew" to download and install FFMPEG, now when I look at my dir /usr/local/ I can see this, the installed files are contained in subfolders of "Cellar" Cellar dir

I also tried to have a look at these projects:RTSPPlay by Mooncatventures and kxmovie by kolyvan.

I did not really figure out how to work with these projects, the Documentation is indefinite and "murky". Well, when I tried to compile these projects the kxmovie failes with errors that are like "missing avformat.h", error missing avformat.h I added the dylibs from the usr/local/cellar/ffmpeg/1.2.1/lib to the project but it seems that this is not the right method. Nearly the same Issue with the RTSPPlay xcodeprj, it gives back the error that an "Entitlements.plist" is missing, after removing the linkings to that file completely I am getting 99+ Apple Mach-O Linker Errors, honestly I could not understand why.

I wanted to try the Live555 too but I cant see through all these obscure and confusing files, again I could not oversee the documentation and how to build the libraries for iphoneos (I read it is the easiest way to receive RTSP Stream but it was the same stack of confusing files as the other projects had)

Maybe if someone tried with these Projects or developed an Application himself could help me with his/her SourceCode or if somebody is seeing through all the Content of FFMPEG / Homebrew made dir's he/she could maybe explain me how to use it, that would probably help me and all the other desperate developers who are searching for a solution.

Just a little edit: I am trying to receive a RTSP H.264 decoded Video Stream.

Thanks in advance, Maurice Arikoglu. (If you need any kind of SourceCode, Links, ScreenShots etc. please let me know)


Solution

  • For anyone who is searching for a working RTSP Player Library have a look at Durfu's Mooncat Fork I've found online, it is working perfectly fine on iOS 8. There is a sample code included, if you struggle with the implementation I can help you.