2013-03-11 81 views
2

我已經在AVAsset的幫助下使用圖像陣列和音頻文件創建視頻。 我跟着下面的鏈接尋求幫助: Make movie file with picture Array and song file, using AVAsset如何把我的形象放在中心?

但在新視頻中,圖像不在中心。如何把我的形象放在中心?

+0

的http:// iphonedevsdk。 com/forum/iphone-sdk-development/107325-add-video-watermark-problems.html – iPatel 2013-03-11 10:49:27

+0

我想你的應用應該會崩潰,如果你的圖像在處理視頻時處於不正確的分辨率輸入。 – Tirth 2013-03-11 11:36:01

回答

1

這可能是因爲視頻大小,你裏面的視頻設置通過不在比...

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

您可以檢查一個接近UR要求的分辨率 standard video resolutions

相關問題