Tag: 编解码器

在iOS下检索电影编解码器?

我试图find用于压缩电影的编解码器。 我相信如果我需要以某种方式使用CMFormatDescription并获得CMVideoCodecType键。 我坚持如何通过元数据数组。 任何想法如何检索编解码器? AVURLAsset* movieAsset = [AVURLAsset URLAssetWithURL:sourceMovieURL options:nil]; NSArray *tracks = [movieAsset tracksWithMediaType:AVMediaTypeVideo]; if ([tracks count] != 0) { AVAssetTrack *videoTrack = [tracks objectAtIndex:0]; // // Let's get the movie's meta data // // Find the codec NSArray *metadata = [movieAsset commonMetadata]; }

如何在iOS中解码AACaudio缓冲区到PCM缓冲区?

我试图解码AACaudio到PCMaudio在iOS,什么是最好的办法做到这一点?任何示例代码将是非常有益的…有没有任何简单的API来做到这一点?