¡@

Home 

2014/10/15 ¤U¤È 10:11:19

iphone Programming Glossary: markasfinished

Merge Two Video files in iPhone Application

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

withPresentationTime presentTime i if buffer CVBufferRelease buffer NSThread sleepForTimeInterval 0.1 writerInput markAsFinished videoWriter finishWriting videoPathArray addObject path Finish the session videoWriter release writerInput release CVPixelBufferPoolRelease..

How do I export UIImage array as a movie?

http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie

™s quite easy to create from a CGImage. writerInput appendSampleBuffer sampleBuffer 4 Finish the session writerInput markAsFinished videoWriter endSessionAtSourceTime ¦] videoWriter finishWriting You ™ll still have to fill in a lot of blanks but I think..

ASSETWriterInput for making Video from UIImages on Iphone Issues

http://stackoverflow.com/questions/3983882/assetwriterinput-for-making-video-from-uiimages-on-iphone-issues

adaptor appendPixelBuffer buffer withPresentationTime CMTimeMake duration 1 2 Finish the session writerInput markAsFinished videoWriter endSessionAtSourceTime CMTimeMake duration 2 videoWriter finishWriting This method is not required but is used..

This code to write video+audio through AVAssetWriter and AVAssetWriterInputs is not working. Why?

http://stackoverflow.com/questions/4149963/this-code-to-write-videoaudio-through-avassetwriter-and-avassetwriterinputs-is

setupWriter return _isRecording YES void stopVideoRecording if _isRecording _isRecording NO _videoWriterInput markAsFinished _videoWriter endSessionAtSourceTime lastSampleTime _videoWriter finishWriting NSLog @ video recording stopped And finally.. you are calling this at some point _capSession startRunning In stopVideoRecording I do not call _videoWriterInput markAsFinished _videoWriter endSessionAtSourceTime lastSampleTime The markAsFinished is more for use with the block style pull method... I do not call _videoWriterInput markAsFinished _videoWriter endSessionAtSourceTime lastSampleTime The markAsFinished is more for use with the block style pull method. See requestMediaDataWhenReadyOnQueue usingBlock in AVAssetWriterInput..

AVAssetWritter does not work with audio

http://stackoverflow.com/questions/5200077/avassetwritter-does-not-work-with-audio

recording Hence stop recording video_button setTitle @ Video forState UIControlStateNormal recording NO writer_input markAsFinished audio_writer_input markAsFinished video_writer endSessionAtSourceTime CMTimeMakeWithSeconds NSDate date timeIntervalSinceDate.. setTitle @ Video forState UIControlStateNormal recording NO writer_input markAsFinished audio_writer_input markAsFinished video_writer endSessionAtSourceTime CMTimeMakeWithSeconds NSDate date timeIntervalSinceDate start_time 30 video_writer finishWriting.. and Audio This may be the same issue as mentioned in the linked post. Try commenting out these lines writer_input markAsFinished audio_writer_input markAsFinished video_writer endSessionAtSourceTime CMTimeMakeWithSeconds NSDate date timeIntervalSinceDate..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

http://stackoverflow.com/questions/5640657/avfoundation-assetwriter-generate-movie-with-images-and-audio

if append_ok printf error appending image d times d n frameCount j frameCount Finish the session videoWriterInput markAsFinished videoWriter finishWriting NSLog @ Write Ended And now the code for pixelBufferFromCGImage CVPixelBufferRef pixelBufferFromCGImage..

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

if append_ok printf error appending image d times d n frameCount j frameCount Finish the session videoWriterInput markAsFinished Start a session videoWriter startWriting videoWriter startSessionAtSourceTime kCMTimeZero CVPixelBufferRef buffer NULL Write.. append_ok printf error appending image d times d n frameCount j frameCount Finish writing picture videoWriterInput markAsFinished I finish write picture in movie file and I want copy audio in the file and I do this audioReader startReading videoWriter.. if nextBuffer NSLog @ NextBuffer audioWriterInput appendSampleBuffer nextBuffer audioWriterInput markAsFinished videoWriter finishWriting However the status of AssetWriterInput of audio file is always NO . My question How to add audio..

Video Encoding using AVAssetWriter - CRASHES

http://stackoverflow.com/questions/8191840/video-encoding-using-avassetwriter-crashes

sampleBuffer CFRelease sampleBuffer if result reader cancelReading break else videoWriterInput markAsFinished switch reader status case AVAssetReaderStatusReading the reader has more for other tracks even if this one is done break.. if nextBuffer NSLog @ NextBuffer audioWriterInput appendSampleBuffer nextBuffer else audioWriterInput markAsFinished switch audioReader status case AVAssetReaderStatusCompleted videoWriter finishWriting self hookUpVideo newName..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

pixel_buffer and then when I'm done with it I finish it off with the following assetWriterVideoInput markAsFinished assetWriter finishWriting Again you can see this in action in the above linked framework. You might be able to modify this..