¡@

Home 

2014/10/15 ¤U¤È 10:04:20

iphone Programming Glossary: av

Merge Two Video files in iPhone Application

http://stackoverflow.com/questions/10071029/merge-two-video-files-in-iphone-application

For break video file NSURL url NSURL fileURLWithPath NSBundle mainBundle pathForResource @ Affagogato ofType @ mp4 AVURLAsset anAsset AVURLAsset alloc initWithURL url options nil for int i 0 i 2 i AVAssetExportSession exportSession AVAssetExportSession.. file NSURL url NSURL fileURLWithPath NSBundle mainBundle pathForResource @ Affagogato ofType @ mp4 AVURLAsset anAsset AVURLAsset alloc initWithURL url options nil for int i 0 i 2 i AVAssetExportSession exportSession AVAssetExportSession alloc.. @ Affagogato ofType @ mp4 AVURLAsset anAsset AVURLAsset alloc initWithURL url options nil for int i 0 i 2 i AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset anAsset presetName AVAssetExportPresetLowQuality..

Hardware accelerated h.264 decoding to texture, overlay or similar in iOS

http://stackoverflow.com/questions/10646657/hardware-accelerated-h-264-decoding-to-texture-overlay-or-similar-in-ios

the individual output frames and draw my stuff or maybe drawing to a 2D layer on top of the video. It seems like AV Foundation or Core Media may help me do what I am doing but before I dig into the details I would like to know if it is.. videos with a little more control over the embedding but not over the actual playback not what I'm looking for AVFoundation for more control over playback maybe what I need but most of the resources I find online talk about how to use.. video probably what I need but extremely poorly documented and even more lacking in resources on playback than even AVFoundation . I am concerned that I may dedicate the next six months to learn iOS programming full time only to find at the..

iOS: Get pixel-by-pixel data from camera

http://stackoverflow.com/questions/10865100/ios-get-pixel-by-pixel-data-from-camera

Get pixel by pixel data from camera I'm aware of AVFoundation and its capture support not too familiar though . However I don't see any readily accessible API to get pixel.. image data or data that's been JPEG compressed iphone ios camera avfoundation pixel share improve this question AV Foundation can give you back the raw bytes for an image captured by either the video or still camera. You need to set up.. can give you back the raw bytes for an image captured by either the video or still camera. You need to set up an AVCaptureSession with an appropriate AVCaptureDevice and a corresponding AVCaptureDeviceInput and AVCaptureDeviceOutput AVCaptureVideoDataOutput..

AVAudioPlayer Help: Playing multiple sounds simultaneously, stopping them all at once, and working around Automatic Reference Counting

http://stackoverflow.com/questions/11194838/avaudioplayer-help-playing-multiple-sounds-simultaneously-stopping-them-all-at

Help Playing multiple sounds simultaneously stopping them all at once and working around Automatic Reference.. Sound Services play the sounds through the volume that the iPhone's ringer is set to. I am now trying to use the AV Audio Player so that users can play the sounds through the media volume. Here is the code that I am currently yet unsuccessfully.. volume. Here is the code that I am currently yet unsuccessfully using the play the sounds IBAction playSound id sender AVAudioPlayer audioPlayer NSString soundFile NSBundle mainBundle pathForResource @ Hello ofType @ wav audioPlayer AVAudioPlayer..

How can I convert mov to mp4 on ios device [closed]

http://stackoverflow.com/questions/12548304/how-can-i-convert-mov-to-mp4-on-ios-device

to mp4 on ios device closed I am writing ios app that should convert mov file to mp4. Is there any ways to that using AVFoundation or something similar I will really appreciate your help Thanks iphone ios video ios4 avfoundation share improve.. appreciate your help Thanks iphone ios video ios4 avfoundation share improve this question Do you need to do AV media transcoding or just change the container A standard not streaming MOV container will should be compatible with a MP4..

What's the difference between all these audio frameworks?

http://stackoverflow.com/questions/1877410/whats-the-difference-between-all-these-audio-frameworks

at playing and recording audio. So I wonder what the big differences are between these Audio Toolbox Audio Unit AV Foundation and Core Audio. Or did I miss a guide that gives a good overview of all these iphone audio core audio avfoundation..

Recording custom overlay on iPhone

http://stackoverflow.com/questions/2443564/recording-custom-overlay-on-iphone

ios video opengl es share improve this question This is possible on the iPhone the capability can be found in the AVFoundation framework. The classes of interest to you are AVMutableVideoComposition and AVVideoCompositionCoreAnimationTool... possible on the iPhone the capability can be found in the AVFoundation framework. The classes of interest to you are AVMutableVideoComposition and AVVideoCompositionCoreAnimationTool. Using the AVMutableVideoComposition's animationTool property.. can be found in the AVFoundation framework. The classes of interest to you are AVMutableVideoComposition and AVVideoCompositionCoreAnimationTool. Using the AVMutableVideoComposition's animationTool property you can use a AVVideoCompositionCoreAnimationTool..

How to properly release an AVCaptureSession

http://stackoverflow.com/questions/3741121/how-to-properly-release-an-avcapturesession

to properly release an AVCaptureSession I'm using the AV Foundation classes to capture the live video stream from the camera and to process the video.. to properly release an AVCaptureSession I'm using the AV Foundation classes to capture the live video stream from the camera and to process the video samples. This works nicely... from the camera and to process the video samples. This works nicely. However I do have problems properly releasing the AV foundation instances capture session preview layer input and output once I'm done. When I no longer need the session and..

Camera differences between UIImagePickerController and AVCaptureSession on iPhone

http://stackoverflow.com/questions/4866927/camera-differences-between-uiimagepickercontroller-and-avcapturesession-on-iphon

differences between UIImagePickerController and AVCaptureSession on iPhone I'm trying to build a replacement for UIImagePickerController using AVCaptureSession with AVCaptureDeviceInput.. and AVCaptureSession on iPhone I'm trying to build a replacement for UIImagePickerController using AVCaptureSession with AVCaptureDeviceInput and AVCaptureStillImageOutput as input output respectively. To preview the camera.. AVCaptureSession on iPhone I'm trying to build a replacement for UIImagePickerController using AVCaptureSession with AVCaptureDeviceInput and AVCaptureStillImageOutput as input output respectively. To preview the camera stream I'm using AVCaptureVideoPreviewLayer..

AVURLAsset cannot load with remote file

http://stackoverflow.com/questions/4934886/avurlasset-cannot-load-with-remote-file

cannot load with remote file I have a problem using AVURLAsset. NSString const kContentURL @ http devimages.apple.com.. cannot load with remote file I have a problem using AVURLAsset. NSString const kContentURL @ http devimages.apple.com iphone samples bipbop bipbopall.m3u8 ... NSURL contentURL.. @ http devimages.apple.com iphone samples bipbop bipbopall.m3u8 ... NSURL contentURL NSURL URLWithString kContentURL AVURLAsset asset AVURLAsset URLAssetWithURL contentURL options nil asset loadValuesAsynchronouslyForKeys NSArray arrayWithObject..

CoreAnimation, AVFoundation and ability to make Video export

http://stackoverflow.com/questions/5031721/coreanimation-avfoundation-and-ability-to-make-video-export

AVFoundation and ability to make Video export I'm looking for the correct way to export my pictures sequence into a quicktime.. make Video export I'm looking for the correct way to export my pictures sequence into a quicktime video. I know that AV Foundation have the ability to merge or recombine videos and also to add audio track building a single video Asset. Now.. I have a set of UIImage and I need to render all of them in a single video. I read all the Apple Documentation about AV Foundation and i found the AVVideoCompositionCoreAnimationTool class that have the ability to take a CoreAnimation and reencode..

iPhone merger UIImage and CAF Audio to AV file

http://stackoverflow.com/questions/5853913/iphone-merger-uiimage-and-caf-audio-to-av-file

merger UIImage and CAF Audio to AV file I want to merger an image file and an audio file. I have UIImage object in which I have my image. I have also CAF..

How can I determine whether my iOS device has a torch light?

http://stackoverflow.com/questions/8418293/how-can-i-determine-whether-my-ios-device-has-a-torch-light

feature is present. Instead use the API that tells you exactly if the feature is present. In your case you want to use AVCaptureDevice 's hasTorch property NSArray devices AVCaptureDevice devicesWithMediaType AVMediaTypeVideo NSMutableArray torchDevices.. exactly if the feature is present. In your case you want to use AVCaptureDevice 's hasTorch property NSArray devices AVCaptureDevice devicesWithMediaType AVMediaTypeVideo NSMutableArray torchDevices NSMutableArray alloc init BOOL hasTorch NO.. In your case you want to use AVCaptureDevice 's hasTorch property NSArray devices AVCaptureDevice devicesWithMediaType AVMediaTypeVideo NSMutableArray torchDevices NSMutableArray alloc init BOOL hasTorch NO for AVCaptureDevice device in devices..

AVCaptureSession specify resolution and quality of captured images obj-c iphone app

http://stackoverflow.com/questions/9312832/avcapturesession-specify-resolution-and-quality-of-captured-images-obj-c-iphone

specify resolution and quality of captured images obj c iphone app Hi I want to setup AV capture session.. specify resolution and quality of captured images obj c iphone app Hi I want to setup AV capture session to capture images with specific resolution and if possible with specific quality using iphone camera. here's.. to capture images with specific resolution and if possible with specific quality using iphone camera. here's setupping AV session code Create and configure a capture session and start it running void setupCaptureSession NSError error nil Create..

xcode 4.2 soundboard? [closed]

http://stackoverflow.com/questions/10336708/xcode-4-2-soundboard

4.2 soundboard closed hi all i have been trying to create a soundboard for some time and i found this site is there anyone out there that can answer this question.. CFURLRef soundFileURLRef soundFileURLRef CFBundleCopyResourceURL mainBundle CFStringRef @ sound1 CFSTR wav NULL UInt32 soundID AudioServicesCreateSystemSoundID soundFileURLRef soundID AudioServicesPlaySystemSound soundID plus someone.. AudioServicesCreateSystemSoundID soundFileURLRef soundID AudioServicesPlaySystemSound soundID plus someone said to use av something please edit or upload code When answering I'm a beginner lol iphone ios share improve this question I just..

How to get user details using twitter api v1.1 (Twitter error 215)

http://stackoverflow.com/questions/17081012/how-to-get-user-details-using-twitter-api-v1-1-twitter-error-215

to get user details using twitter api v1.1 Twitter error 215 I have used the twitter api provided by twitter to get the details but not able to execute it even tried to pass the authentication.. in. void storeAccessToken NSString accessToken NSUserDefaults standardUserDefaults setObject accessToken forKey @ SavedAccessHTTPBody NSString loadAccessToken return NSUserDefaults standardUserDefaults objectForKey @ SavedAccessHTTPBody .. forKey @ SavedAccessHTTPBody NSString loadAccessToken return NSUserDefaults standardUserDefaults objectForKey @ SavedAccessHTTPBody 4.Now you are ready to get your request with the following method in this method I created a Twitter search..

ASIHTTPRequest - HTTPS

http://stackoverflow.com/questions/2730539/asihttprequest-https

and errors if I try a HTTPS Connection. Goes into requestFailed and gives me a ASIHTTPErrorRequestDomain void getData av.hidden NO av startAnimating NSString urlString IP stringByAppendingString @ Method1 NSURL url NSURL URLWithString urlString.. I try a HTTPS Connection. Goes into requestFailed and gives me a ASIHTTPErrorRequestDomain void getData av.hidden NO av startAnimating NSString urlString IP stringByAppendingString @ Method1 NSURL url NSURL URLWithString urlString ASIFormDataRequest.. responseString Use when fetching binary data NSData responseData request responseData self parseData responseData av stopAnimating av.hidden YES void requestFailed ASIHTTPRequest request NSError error request error av stopAnimating av.hidden..

How can I group MKAnnotations automatically regarding zoom level?

http://stackoverflow.com/questions/3194646/how-can-i-group-mkannotations-automatically-regarding-zoom-level

point.x 10 10 roundedPoint.y roundf point.y 10 10 NSValue value NSValue valueWithCGPoint roundedPoint MKAnnotationView av mapView_ viewForAnnotation an if coordSet containsObject value av.hidden YES else coordSet addObject value av.hidden..

CoreAnimation, AVFoundation and ability to make Video export

http://stackoverflow.com/questions/5031721/coreanimation-avfoundation-and-ability-to-make-video-export

I'm looking for the correct way to export my pictures sequence into a quicktime video. I know that AV Foundation have the ability to merge or recombine videos and also to add audio track building a single video Asset. Now ... my goal is.. building a single video Asset. Now ... my goal is a little bit different. I would to create a video from scratch. I have a set of UIImage and I need to render all of them in a single video. I read all the Apple Documentation about AV Foundation.. I read all the Apple Documentation about AV Foundation and i found the AVVideoCompositionCoreAnimationTool class that have the ability to take a CoreAnimation and reencode it as a video. I also checked the AVEditDemo project provided by Apple..

UIAlertView starts to show, screen dims, but it doesn't pop up until it's too late!

http://stackoverflow.com/questions/5185223/uialertview-starts-to-show-screen-dims-but-it-doesnt-pop-up-until-its-too-la

starts to show screen dims but it doesn't pop up until it's too late I have a button which when pressed makes calls that load information from a series of URLs about 5 seconds loading time . Right.. When I use a UIAlertView the screen dims like it's about to pop up but it doesn't until the data is loaded too late I have no idea what's going on it's like the calls I'm making to load the data are immediately taking preference over showing.. the calls adding the new view or showing the alert . This is a summarized version of the code void refresh UIAlertView av ... av show this should pop up before dat begins to load myDataSource loadData this contains a series of NSData initWithURL..

How to add spacing between UITableViewCell

http://stackoverflow.com/questions/6216839/how-to-add-spacing-between-uitableviewcell

to add spacing between UITableViewCell Is there any way to add spacing between UITableViewCell I have created a table and each cell only contain an image. The image is assigned to the cell like this cell.imageView.image myImages.. this Thanks a lot iphone objective c uitableview share improve this question I needed to do the same concept of having UITableCells have a space between them. Since you can't literally add space between cells you can fake it by manipulating.. iphone objective c uitableview share improve this question I needed to do the same concept of having UITableCells have a space between them. Since you can't literally add space between cells you can fake it by manipulating the UITableView's..

How to get click event from a button added over MKAnnotationView

http://stackoverflow.com/questions/6941199/how-to-get-click-event-from-a-button-added-over-mkannotationview

UITapGestureRecognizer gestureRecognizer UIButton btn UIButton gestureRecognizer.view MKAnnotationView av MKAnnotationView btn superview id MKAnnotation ann av.annotation NSLog @ handlePinButtonTap ann.title @ ann.title Note that.. UIButton btn UIButton gestureRecognizer.view MKAnnotationView av MKAnnotationView btn superview id MKAnnotation ann av.annotation NSLog @ handlePinButtonTap ann.title @ ann.title Note that this will prevent the map view's didSelectAnnotationView..

MKMapView annotations changing/losing order?

http://stackoverflow.com/questions/9539802/mkmapview-annotations-changing-losing-order

annotations changing losing order I have a map view with annotations and these annotations display a callout. When the callout's disclosure detail button is clicked.. annotation find its index and then use that to get the same index within the array. I've now realized that I can just save the annotation directly coming from an Android background this was very cool to me . However I am still conceptually at.. order became scrambled. Can someone help me Code below void viewDidLoad if fromString isEqualToString @ FromList self.navigationItem.hidesBackButton TRUE else self.navigationItem.rightBarButtonItem nil self.array MySingleton getArray set up map..

Replace icon pin by text label in annotation?

http://stackoverflow.com/questions/9822756/replace-icon-pin-by-text-label-in-annotation

label Maybe using css or dynamically creating an image For example a label is done with CSS on Google Maps API with JavaScript. iphone ios mapkit share improve this question Yes it's possible. In iOS MapKit you'll need to implement the.. if annotation isKindOfClass MKUserLocation class return nil static NSString reuseId @ reuseid MKAnnotationView av mapView dequeueReusableAnnotationViewWithIdentifier reuseId if av nil av MKAnnotationView alloc initWithAnnotation annotation.. static NSString reuseId @ reuseid MKAnnotationView av mapView dequeueReusableAnnotationViewWithIdentifier reuseId if av nil av MKAnnotationView alloc initWithAnnotation annotation reuseIdentifier reuseId autorelease UILabel lbl UILabel alloc..

Custom pin animation - MKMapView

http://stackoverflow.com/questions/2655465/custom-pin-animation-mkmapview

the following delegate method. void mapView MKMapView mapView didAddAnnotationViews NSArray views MKAnnotationView aV for aV in views CGRect endFrame aV.frame aV.frame CGRectMake aV.frame.origin.x aV.frame.origin.y 230.0 aV.frame.size.width.. following delegate method. void mapView MKMapView mapView didAddAnnotationViews NSArray views MKAnnotationView aV for aV in views CGRect endFrame aV.frame aV.frame CGRectMake aV.frame.origin.x aV.frame.origin.y 230.0 aV.frame.size.width aV.frame.size.height.. void mapView MKMapView mapView didAddAnnotationViews NSArray views MKAnnotationView aV for aV in views CGRect endFrame aV.frame aV.frame CGRectMake aV.frame.origin.x aV.frame.origin.y 230.0 aV.frame.size.width aV.frame.size.height UIView beginAnimations..

MapView Annotation not dragging

http://stackoverflow.com/questions/5061976/mapview-annotation-not-dragging

that I have MKAnnotationView mapView MKMapView mapView viewForAnnotation id MKAnnotation annotation MKAnnotationView aView aView MKAnnotationView mvMap dequeueReusableAnnotationViewWithIdentifier annotation.title if aView nil aView MKAnnotationView.. I have MKAnnotationView mapView MKMapView mapView viewForAnnotation id MKAnnotation annotation MKAnnotationView aView aView MKAnnotationView mvMap dequeueReusableAnnotationViewWithIdentifier annotation.title if aView nil aView MKAnnotationView.. MKAnnotationView aView aView MKAnnotationView mvMap dequeueReusableAnnotationViewWithIdentifier annotation.title if aView nil aView MKAnnotationView alloc initWithAnnotation annotation reuseIdentifier annotation.title autorelease else aView.annotation..