Questions tagged [avassetwriter]

on OS X API, you use an AVAssetWriter object to write media data to a new file of a specified audiovisual container type, such as a QuickTime movie file or an MPEG-4 file, with support for automatic interleaving of media data for multiple concurrent tracks

529 questions
0
votes
0 answers

AVAssetWriter fails when audio Compression Settings are set

When I have audioCompressionSettings as nil in the following code, AVAssetWriterInput* audioWriterInput = [AVAssetWriterInput assetWriterInputWithMediaType:AVMediaTypeAudio outputSettings:nil sourceFormatHint:(__bridge…
Nat
  • 300
  • 3
  • 8
0
votes
0 answers

Output .mov using AVAssetWriter with blank audio track

I am using AVAssetWriter, AVAssetWriterInput, and AVAssetWrinterInputPixelBufferAdaptor to take an X number of UIImages and export them to a movie. The problem I am running into is that the video exports with no audio track. How can you add a…
Ivan Lesko
  • 1,274
  • 13
  • 26
0
votes
2 answers

How to merge a video,uiimage and a uiwebview in a video formate in objective c to share in social media website?

I need to merge a video,UIImage and a UIWebView in a video format in Objective-C to share in social media website. I tried AVAssetWriter but could not implement it properly. I have shown video in my UIView with MPMoviePlayerController and added a…
Pinky
  • 31
  • 5
0
votes
1 answer

CMSampleBufferGetSampleTimingInfo: No duration?

I have a live stream, and CMSampleBufferGetSampleTimingInfo gives a duration with CMTime(value=0, timescale=0) for video. For audio, I get 1024 samples at once, but CMSampleBufferGetSampleTimingInfo(sampleBuffer, index, &timingInfo) gives the exact…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
0
votes
1 answer

GPUImage and AVAssetWriter writes files to where?

I am trying to use Brad Larson's GPUImage library to record a video file. So far, the issue I am running into is the following piece of code: NSString *pathToMovie = [NSHomeDirectory()…
noobuntu
  • 903
  • 1
  • 18
  • 42
0
votes
1 answer

Putting videos in one specific Album in camera roll

I am creating a specific album in my camera roll.. But for my every run, its creating a new album in my camera roll instead of putting the videos together to the same album.. Ideas? __block PHObjectPlaceholder *assetCollectionPlaceholder; …
dicle
  • 1,122
  • 1
  • 12
  • 40
0
votes
0 answers

How to modify the frames when recording and save the changes, and then save the video as mp4 file?

In my project, I need to capture the frame when video started.And I capture it from the delegate "- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection…
靖南魏
  • 1
  • 2
0
votes
2 answers

AVAssetWriter writes a blank screen video

I am using the following code to append PixelBuffer, but the output video is an black screen(CIImage is normal). I think the problem occurred in newPixelBuffer. func recordRealTimeFilterVideoPerFrame(sampleBuffer: CMSampleBuffer, outputImage:…
chun
  • 1
  • 1
  • 4
0
votes
1 answer

Broadcasting video iphone to Wowza server using AVCaptureSession

I am Developing live broadcasting feature, i have built Custom camera to shoot video using AVCaptureSession, and we have Wowza server for broadcasting, So my Question is how to Encode Video from…
0
votes
1 answer

iOS: How to set AVAssetWriterInput to get a baseline level 3.0 profile?

Some devices (typically Android devices) can't read videos I record using an iphone with ImagePicker API in iOS. So I searched for some way to convert the baseline to level 3.0 profile after taking the video. I found a…
Gannicus
  • 399
  • 1
  • 3
  • 18
0
votes
1 answer

Export Video With Watermark using GPUImage iOS

I has tried the most of the question related to GPUImage (GPUImageMovieWriter) to export the video.I write this code to create and export the video.This gives the black screen and does not export the video. In the ViewController.h file.. { …
Milan patel
  • 223
  • 2
  • 15
0
votes
0 answers

How read fragmented media data in iOS

I have developed an iOS application which can records videos for long durations , i have used AVCaptureSesssion to use recording But now i want to split recorded media data according to timestamp and i thought of doing this according to following…
Mr.G
  • 1,275
  • 1
  • 18
  • 48
0
votes
0 answers

iOS - iPhone - AVAssetWriter AVCapture session recording video with green edges

I am using AVCaptureSession to record video with AVAssetWriter to a file and everything is working fine except that for some reason the video has green edges on the right and bottom. How do I get rid of them? UPDATE This is happening on iPhone 6 but…
Zigglzworth
  • 6,645
  • 9
  • 68
  • 107
0
votes
0 answers

Set artwork image for downloaded song

I am downloading an mp3 file from an URL and I need to set the artwork image if the mp3 file does not include an artwork image (i.e. null). The downloaded mp3 file is saving in document directory. Is it possible to set/change the artwork image of…
Arunkumar
  • 45
  • 8
0
votes
1 answer

'Extra argument in call' when calling init! initializer on AVAssetReader swift

I see many versions of this question, but I've looked through many of them and haven't found something explaining my problem yet. I hope this isn't a repeat question. I am simply trying to initialize an AVAssetWriter with this init! method defined…