i am developing an application in which i am trying to record a video using AVCaptureSession class...i came across a few good tutorials like this one
http://www.benjaminloulier.com/posts/2-ios4-and-direct-access-to-the-camera
but in these tutorials only capturing images from the video frames is done while i want to record a full length video which i can either save in my device or upload it to my server....How can i achieve this using AVFoundation framework??
Check out the sample code from the WWDC 2010 http://developer.apple.com/videos/wwdc/2010/ for example the AVCamDemo.
Login to your iPhone developer account (the box with "Download WWDC 2010 Session Videos for Free") then you see a new page and there you can click on "View in iTunes" and then in iTunes(!) you get the link to the WWDC 2010 example source code... or you can try the link
http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?code=y&source=x&bundleID=20645
but to download the source code you must also login to your developer account.
Related
I am trying to develop an iPhone app which will be able to show live stream video on iPhone.The link is in format 'http://192.168.111.18:8002/testlink'.
I went through all the apple documentation and have downloaded mediastreamsegmenter and also it has been installed properly as I can see its details using 'man mediastreamsegmenter' command.I couldn't understand it after that.Please guide me regarding this.
You should use a link with suffix ".m3u8", which contains the TS segments of the live video stream. When you click on the "m3u8" link, then the video player will be launched to request for those TS segments, otherwise, the browser won't know it is a live video link.
https://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html
I am trying to process videos in some way:
Cut and merge videos.
Record the screen and make the video out of that recording.
I look up on the Internet and stackoverflow as well and see that there is a code sample from apple called AVEditDemo but I could never find it out. If anybody has that example and willing to share with me or has any similar examples that can teach me how to do the 2 above jobs, it would be excellent.
I see there are some similar questions like this one, but I would love to have the code sample. It would help me move forward quickly.
There is a WWDC 2010 video called Editing Media with AV Foundation which may be useful to you and is available through the Developer Portal.
The AVEditDemo application is included in the WWDC 2010 Sample Code because it goes with the video. This should contain the AVEditDemo Application which goes with the Video. Unfortunately you need to download all the WWDC 2010 Sample Code to get it (232.6mb). You can get the entire download of all the code here: http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?code=y&source=x&bundleID=20645
I have a requirement where I need to cut the video between some selected time frames from different videos and merge them to make those a single video. How can I achieve this in iPhone programmatically. Are there any API's available?
I didnt use them my self but yes there are available APIs to help you do this.
Have a look at AV Foundation programming guideline
I also recommend you to check the WWDC 2010 video session "Editing media with AV Foundation"
Cheers
I'm doing a project where we want to create a video inside an iPhone app and upload it to YouTube. I've seen the you upload the video using Google's Data API (http://code.google.com/p/gdata-objectivec-client/).
However it seems that you need to upload the movie as an actual movie. Has anyone got any experience on making a movie in a format that YouTube will accept via the Data API and care to give me a few pointers on what would work?
(Just a quick note, I cannot use hidden APIs for this project)
Many thanks
Youtube accepts a broad range of formats. Just try it yourself, use any free video editing software to create a short movie and upload that movie to youtube, you're almost guaranteed that youtube would be able to process that.
The second part of your question is whether ios is able to produce a movie from still frames, then the answer is - yes - and you want to look at AVFoundation, particularly at AVAssetWriter
I have a query regarding showing a video (which is stored on server) on iPhone.
I want show a video in an iPhone Application.
This is not live streaming.
So how the video can be shown?
I have read the Apple's documentation for HTTP streaming of video.
Do I need to call a Web Service?
Is there any tutorial for this?
I have seen the Apple Sample code for MPMoviePlayer.
While the locally stored video works fine, there is problem while showing the video stored on server.
Thanks in advance..
See the movie player sample code from the apple docs.