我试图将h264编码的baseline4.0的avi文件转换为使用baseline3编码的新h264 mpeg文件。FFMPEG将.avi转换为可播放的iOS电影mp4
文件原始文件没有任何iOS设备上播放,由于baseline4.0(我想?)
我使用这个包装类在这里https://github.com/OpenWatch/FFmpegWrapper
但实际上我不知道如何设置基线。我可以转换为mpeg4,但似乎每次都默认为baseline4.0。
我试图把它放在了AVCodecContext
AVCodecContext *outputCodecContext = outputStream->codec;
outputCodecContext->level = 31;
outputCodecContext->profile = FF_PROFILE_H264_BASELINE;
但这并没有影响。
也许任何人都有线索,或者有更好的FFMPEGWrapper。
你解决了你的问题吗?我有类似的。 – Vive