Nitestick
Golden Master
- Messages
- 8,478
- Location
- Ñмерти Ð´Ð»Ñ Ñпаме
I've got a number of video files containered as *.avi using WMA2 audio which is quite useless (M$ don't even support it as a codec on the Xbox 360 lol). I've managed to extract the audio stream from it via mplayer:
$mplayer -dumpaudio /path/to/video -dumpfile /path/to/output
Now no matter what I've attempted I can't seem to transcode this to another codec for better support, all I want to do is maintain the video stream as is, modify the audio to a better supported codec (MP3 or AC3) and re-container it as *.avi. My last attempt was with ffmpeg:
$ ffmpeg -i ~/Videos/encoding/audio_streams/test.wma -acodec mp3 -aq 100 ~/Videos/encoding/audio_streams/test.mp3
ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Jun 12 2012 16:52:09 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
/home/nitestick/Videos/encoding/audio_streams/test.wma: Invalid data found when processing input
I've tried using avconv (not sure if this is indeed any different to ffmpeg), receiving the same error.
Anyone have any suggestions?
$mplayer -dumpaudio /path/to/video -dumpfile /path/to/output
Now no matter what I've attempted I can't seem to transcode this to another codec for better support, all I want to do is maintain the video stream as is, modify the audio to a better supported codec (MP3 or AC3) and re-container it as *.avi. My last attempt was with ffmpeg:
$ ffmpeg -i ~/Videos/encoding/audio_streams/test.wma -acodec mp3 -aq 100 ~/Videos/encoding/audio_streams/test.mp3
ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Jun 12 2012 16:52:09 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
/home/nitestick/Videos/encoding/audio_streams/test.wma: Invalid data found when processing input
I've tried using avconv (not sure if this is indeed any different to ffmpeg), receiving the same error.
Anyone have any suggestions?