IPhone Video Streaming Problem - iphone

I want to implement video streaming in my project. So, Is there any tutorial that works? Videos are stored at server side. So, to fetch video using url and play it on MPMoviePlayerViewController .
Thank You.

For video streaming in iPhone you can use ffmpeg concept.FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.Have a look at these sites for samples,
https://github.com/FFmpeg/FFmpeg
http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/

Check this solution, it's a full audio and video streamer.

Related

Live Streaming Video in iPhone

I am new to iPhone Development. I need to capture video. While I'm capturing video it display on server too. Something like live streaming.
Anyone have idea from where I should have to start for this functionality?
Thanks in Advance.
Your question seems similar to this
Xcode ios: Streaming of video file while recording and removed redundant personal statements
First Half Solution
Using AVFoundation you can get video Buffer/frames while recording.
Second Half
But for uploading i didn't find any solution
There is Input Stream option there in iOS APIs but it need some file path. but as video is not recorded we didn't have any path.
Edit 1
Here is Best Example for AVFoundation provided by Apple, you can start with
I recommend you to use wowza wowza.com/https://www.wowza.com, it has all the features, from live stream, video on demand and etc.

streaming video from iphone to server programmatically

I need to implement iphone video streaming to server. I've googled a lot but I found only receiving video streams from server. It is made using UIWebView or MPMoviewPlayer.
But how can I stream my captured media to server in realtime?
How can it be done?
check out this Apple sample code. this is using a AVFoundation.
StitchedStreamPlayer

How to play streaming audio file in iphone?

How to play streaming audio file in iphone?
I am trying to make an app which can play audio file from web server with Play Pause and stop functionality....
can any one have any idea about this ?
This is a lot simpler now with the advent of AVFoundation. Look at the AVPlayer class. It works great for streaming audio.
Check Matt Gallagher work:
http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html
If this is more that you're willing to, the easy answer would be HTTP Live Streaming.

iPhone: streaming WMA, MP3 and AAC

I need to create a simple media player that can stream internet radio stations in WMA, MP3 and AAC formats as part of a bigger app.
I was wondering if someone could please give me some pointers on where to start and how to go about tackling each of these formats? never really handled this topic before..
Thanks!
For audio streaming on the iPhone you'll have to use the AudioQueue framework. This framework has native support for mp3 and aac but is not easy to get started with. There's an open source project by Matt Gallagher that can play mp3 and aac audio streams by using the AudioQueue framework: AudioStreamer.
If you also need to play wma audio streams you have to use the open source FFmpeg library. Decoding wma audio streams with the FFmpeg library is not that hard but integration with the AudioQueue framework for playback is not that straightforward.
If you are familiar with handling this problem in a web app, you could try having a UIWebView in your app.

What format should I be publishing my videos in?

Just wondering what format is accepted as "the best" to have your video content on. We currently have our videos in FLV format being played by a JW Player. Are FLV's iPhone compatible or should we be encoding in another format? Thanks!
FLV video is not supported on the iPhone. H.264 should be you choice if you plan on targeting the iPhone.
If you're looking into streaming the video have a look at Apple HTTP streaming which is supported by the iPhone.
HTTP Streaming Architecture - Might need Apple ID to view it.
According to the iPhone SDK, You can use -
Media Player framework to display
full-screen video from files in either
H.264 (Baseline Profile Level 3.0)
format or MPEG-4 Part 2 video (Simple
Profile) format.
So I gather that the FLV video is not supported on the iPhone and you should encode the videos in one of these two formats. Also note that only full-screen video playback is supported on the device, with a fade-in transition to the player when video is started.