2

I have created video using image array and audio file with the help of AVAsset. I followed below link for help: Make movie file with picture Array and song file, using AVAsset

but In new video ,image is not in center. how to put my image in center?

Community
  • 1
  • 1
yen
  • 772
  • 3
  • 10
  • http://iphonedevsdk.com/forum/iphone-sdk-development/107325-add-video-watermark-problems.html – iPatel Mar 11 '13 at 10:49
  • I guess your app should have be crash if your image is in improper resolution input while processing video. – Tirth Mar 11 '13 at 11:36

1 Answers1

1

This can be because of video size you passed inside video settings are not in ratio...

NSDictionary *videoSettings = [NSDictionary dictionaryWithObjectsAndKeys:
                                   AVVideoCodecH264, AVVideoCodecKey,
                                   [NSNumber numberWithInt:standardWidth], AVVideoWidthKey,
                                   [NSNumber numberWithInt:standardHeight], AVVideoHeightKey,
                                   nil];

You can check one near to ur required resolutions standard video resolutions

BhushanVU
  • 3,455
  • 1
  • 24
  • 33