I've compiled the ffmpeg for iOS with the instructions from FFmpeg-iOS. I am trying to use it for wav to mp3 conversion with the help of FFmpegWrapper. It gives me the following error: Invalid audio stream. Exactly one MP3 audio stream is required.
Did anybody has the same issue?
Edit:
The code I am trying to use for the converting
NSString *inPath = [[NSBundle mainBundle] pathForResource:@"record" ofType:@"wav"];
NSString *outPath = @"/Users/someuser/Desktop/out.mp3";
FFmpegWrapper *wrapper = [[FFmpegWrapper alloc] init];
[wrapper convertInputPath:inPath outputPath:outPath options:@{kFFmpegInputFormatKey: @"wav", kFFmpegOutputFormatKey: @"mp3"} progressBlock:^(NSUInteger bytesRead, uint64_t totalBytesRead, uint64_t totalBytesExpectedToRead) {
NSLog(@":)");
} completionBlock:^(BOOL success, NSError *error) {
NSLog(@"Complete");
}];