I am working on a small application in cpp that will convert audio, apply filters and generate waveform using ffmpeg. I am using ffmpeg as a library and not using ffmpeg binary.
My reference was from here. https://ffmpeg.org/doxygen/4.0/transcode_aac_8c-example.html
I have commented out the portion where they exit the method throwing the below exception.
Expected one audio input stream, but found 2
I am using the example of ffmpeg for transcoding. However, I get an error when trying to transcode an audio file containing more than 1 stream. Usually the audio will be an mp3 audio with an image file as the second stream. The error I get is
[mp3 @ 0x1d487a0] Header missing
Could not decode frame (error 'Invalid data found when processing input')
However, when I open the audio file in audacity and export without the image file it works. What changes are required to handle more than 1 stream?