$ ffmpeg -i file.wmv -an -sn -vcodec copy -y file_video_only.???
$ ffmpeg -i file.wmv -vn -sn -acodec copy -y file_audio_only.???
Where ??? is a file extension that makes sense. Where -vn, -sn, -an, are flags to NOT use video, subtitles, and audio. Omit the one you wish to keep. Then convert the audio and video separately to a format that matches the destination codec. If the destination requires a re-encode anyway.
$ ffmpeg -i file_video_only_converted.??? -i file_audio_only_converted.??? -vcodec copy -acodec copy -y file_new.???
A bit of the long way, but if you're into audio it has it's perks. It also saves a few computes if you're fiddling with codecs and settings. Or have multipe outputs that use the same audio track. I find other tools to be better for audio conversions. Plus breaking it down into it's components helps ID where you're having issues if you have them. It's been a while since I've used ffmpeg so hopefully the syntax is current and correct. Otherwise adjust accordingly.
|