我正在寻找一种接收任何视频(iOS上支持的视频)作为输入并以新的每秒帧速率将新视频保存在设备上的方法。其动机是减小视频大小,并使其尽可能轻量化。
尽管可以与OpenCV一起使用-但更喜欢轻巧的东西,并在可能的情况下内置]]
目标C:'''
compressionEncoder.videoSettings = @ { AVVideoCodecKey: AVVideoCodecTypeH264, AVVideoWidthKey: [NSNumber numberWithInt:width], //Set your resolution width here AVVideoHeightKey: [NSNumber numberWithInt:height], //set your resolution height here AVVideoCompressionPropertiesKey: @ { AVVideoAverageBitRateKey: [NSNumber numberWithInt:bitRateKey], // Give bitrate for lower size low values AVVideoProfileLevelKey: AVVideoProfileLevelH264High40, // Does not change - quality setting and not reletaed to playback framerate! //AVVideoMaxKeyFrameIntervalKey: @800, }, }; compressionEncoder.audioSettings = @ { AVFormatIDKey: @(kAudioFormatMPEG4AAC), AVNumberOfChannelsKey: @2, AVSampleRateKey: @44100, AVEncoderBitRateKey: @128000, };
'''
[期望视频每秒帧数更少,每个帧的质量相同。类似于视频的简短缩略图摘要
我正在寻找一种方法来接收任何视频(iOS上支持的视频)作为输入,并以新的每秒帧速率将新视频保存在设备上。目的是减小视频大小,...
您正在执行的转换类型将在移动设备上消耗时间和功率,但是我想您已经意识到这一点。