I've been trying to do the same thing. It appears that ffmpeg is supposed to handle encoding wma but it doesn't actually do it, instead it uses the mp2 codec.
Code:
$ ffmpeg -i 02_-_Shoot_to_Thrill.mp3 02_-_Shoot_to_Thrill.wma
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on Mar 12 2008 14:31:53, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu4)
Input #0, mp3, from '02_-_Shoot_to_Thrill.mp3':
Duration: 00:05:23.4, start: 0.000000, bitrate: 128 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, asf, to '02_-_Shoot_to_Thrill.wma':
Stream #0.0: Audio: mp2, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 0kB time=323.3 bitrate= 0.0kbits/s
video:0kB audio:2526kB global headers:0kB muxing overhead -99.983839
If you try to force the wma codec, it still uses mp2.
Code:
$ ffmpeg -i 02_-_Shoot_to_Thrill.mp3 02_-_Shoot_to_Thrill.wma -acodec wmav2
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on Mar 12 2008 14:31:53, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu4)
Input #0, mp3, from '02_-_Shoot_to_Thrill.mp3':
Duration: 00:05:23.4, start: 0.000000, bitrate: 128 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, asf, to '02_-_Shoot_to_Thrill.wma':
Stream #0.0: Audio: mp2, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 0kB time=323.3 bitrate= 0.0kbits/s
video:0kB audio:2526kB global headers:0kB muxing overhead -99.983839%
I need true wma format for my cell phone to play the files. Looks like I may have to revert to using windows for this task unless someone can chime in with some tips.
Bookmarks