縮小サイズのビデオを作成します。おそらく、幅が50ピクセル、長さが75ピクセルです。それらは物理的な次元です。
どのように設定しますか?ビデオ設定で?AVVideoWidthKeyとAVVideoHeightKeyは、私が必要としていた物理的な寸法ではなく、解像度のためのものだと思います。
NSDictionary *videoSettings = [NSDictionary dictionaryWithObjectsAndKeys:
AVVideoCodecH264, AVVideoCodecKey,
[NSNumber numberWithInt: 320], AVVideoWidthKey,
[NSNumber numberWithInt:480], AVVideoHeightKey,
nil];
AVAssetWriterInput* writerInput = [[AVAssetWriterInput
assetWriterInputWithMediaType:AVMediaTypeVideo
outputSettings:videoSettings] retain