ffmpeg: Unsupported codec for output stream #0.0Feb 4th, 2012 | By admin | Category: Linux / Freebsd
Alrighty, so I was attempting to extract the audio from an .avi file today and was greeted with the following error:
Unsupported codec for output stream #0.0
At first I thought this was the result of my missing the libavcodec packages but upon closer inspection and a little forum reading I realized that the error I was seeing (#0.0 not #0.1). #0.0 refers to VIDEO and not audio as I had previous thought and so installing the audio packages did nothing to resolve my issue.
So, how to solve this problem you ask? Well that’s as simple as adding a nice little switch and extra optino in there that looks a little bit like this:
Solves the problem immediate.. From what I understand it just means that if the codec doesn’t exist to decode the video ffmpeg can use a copy of one instead. Easy peasy lemonsqueezy
Oh and for anyone wanting to know how to extract audio from a video file it’s as simple as this:
ffmpeg -i inputfile.avi -acodec copy -ab 256 outputfile.avi