Tag: video

iphone AVEditDemo or any video processing examples

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 […]

AVFoundation to reproduce a video loop

I need to reproduce a video indefinitely (restarting the video when it ends) in my OpenGL application. To do so I’m trying to utilize AV foundation. I created an AVAssetReader and an AVAssetReaderTrackOutput and I utilize the copyNextSampleBuffer method to get CMSampleBufferRef and create an OpenGL texture for each frame. NSString *path = [[NSBundle mainBundle] […]

How to get metadata from video-movie file using Objective-c?

Any help? Now can get NSSize, duration and its all.

Problem playing mov file in MPMoviePlayerController

(Im using this with Cocos2d) This works perfectly for an mp4 video NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@”intro_iphone” ofType:@”mp4″]]; mpc = [[MPMoviePlayerController alloc] initWithContentURL:url] [mpc setFullscreen:YES animated:NO]; mpc.shouldAutoplay = YES; mpc.view.backgroundColor = [UIColor whiteColor]; mpc.view.frame = CGRectMake(0.0f, 0.0f, screenSize.width, screenSize.height); [mpc setScalingMode:MPMovieScalingModeFill]; [mpc setControlStyle:MPMovieControlStyleNone]; [mpc setMovieSourceType:MPMovieSourceTypeFile]; [mpc setRepeatMode:MPMovieRepeatModeNone]; [[[CCDirector sharedDirector] openGLView] addSubview:mpc.view]; [mpc play]; […]

QTKit – Merge two videos with different width and height?

I have just made a simple app which uses QTKit to merge two videos together Here is the problem: I have just discovered that if I try to merge two videos with different width & height the output is a video whose height and width is the same of the big video but contains the […]

Issue with not getting sound in device when play youtube video in UIWebView in IOS

I am using a UIWebView to play Yoytube Video. My code is like that self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0,320, 240)]; [self.webView setBackgroundColor:[UIColor clearColor]]; [self.webView setOpaque:NO]; self.webView.delegate=self; [self.webView setAllowsInlineMediaPlayback:YES]; [self.webView setMediaPlaybackRequiresUserAction:NO]; [self.viewContent addSubview:self.webView]; NSString* embedHTML = [NSString stringWithFormat:@”\ <html>\ <body style=’margin:0px;padding:0px;’>\ <script type=’text/javascript’ src=’http://www.youtube.com/iframe_api’></script>\ <script type=’text/javascript’>\ function onYouTubeIframeAPIReady()\ {\ ytplayer=new YT.Player(‘playerId’,{events:{onReady:onPlayerReady}})\ }\ function onPlayerReady(a)\ { […]

iphone imagepickerController picking video from photo library

I am now trying to implement a app like picking image and video from device photo album and uploading it to server.. here i can able to display both image and video in a table view using uiimagepickercontoller but i can only able to pick image not video.. How to pick a video form photo […]

iphone – force MPMoviePlayerController to play video in landscape mode

I have an app that is portrait mode only, but when the user plays a video I want it to play in fullscreen landscape mode (the video player doesn’t look good in portrait mode). I’m playing it like this: [self.view addSubview:myMoviePlayer.view]; [self.myMoviePlayer setFullscreen:YES animated:YES]; [self.myMoviePlayer play]; What’s the best way to accomplish this?

Writing an app to stream video to iPhone

I’m interested in creating an iPhone app that can stream video from a central server, YouTube style. I was wondering if anyone has ever tried to do this before, what is the path of least resistant, existing APIs, etc? I really know nothing about how this is generally done. Would I be working with sockets? […]

how can i write a NSData file as Video in to Photolibrary/SavedPhotosAlbum?

i have a Video file as NSData.how can i write the NSData file as Video in to Photolibrary/SavedPhotosAlbum? i done it with UIimage through the following code. i had a UiImage as myNsData(NSData) UIImage *viewImage = [UIImage imageWithData:myNsData]; ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; // Request to save the image to camera roll [library writeImageToSavedPhotosAlbum:[viewImage […]