[Ffmpeg-devel] Decoding WMA9 (identifier: 0x000a)

Adam Wilmer adamwilmer
Tue Sep 5 09:47:38 CEST 2006


I am trying to convert a Windows Media 9 video to FLV in one ffmpeg step:
ffmpeg -i in.wmv -s 320x240 -vcodec flv -y -r 15 -b 250 -acodec mp3 -t 30 out.flv
but WMV audio stream:  Stream #0.0: Audio: 0x000a, 22050 Hz, mono, 20 kb/s can not be decoded.
0x000a = WMA9 voice stream
Should this be decode-able in ffmpeg? If so, what do I need to do get this working? The video stream (WMV3) is fine. 
 
Adam
 
PS: Mencoder can decode the video and audio streams but the video plays faster than the original WMV whereas the ffmpeg WMV3 video decoder does not seem to suffer from this which is why I?d like a ffmpeg solution if possible. My current solution is use ffmpeg to decode video, mencoder to dump audio and then multiplex back together with ffmpeg.

--
Details:
FFmpeg version SVN-r6147, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-mp3lame
  libavutil version: 49.0.0
  libavcodec version: 51.12.0
  libavformat version: 50.5.0
  built on Sep  5 2006 14:32:24, gcc: 3.3.3 (SuSE Linux)
[wmv3 @ 0x839a0dc]Header: 46091A01
[wmv3 @ 0x839a0dc]Header: 4C391A01
Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 25.00 (25/1)
Seems that stream 2 comes from film source: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from '../IN.wmv':
  Duration: 00:29:52.4, start: 5.000000, bitrate: 305 kb/s
  Stream #0.0: Audio: 0x000a, 22050 Hz, mono, 20 kb/s
  Stream #0.1: Video: wmv3, yuv420p, 320x240, 25.00 fps(r)
  Stream #0.2: Video: wmv3, yuv420p, 320x240, 25.00 fps(r)
Output #0, flv, to '../IN.wmv.flv':
  Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 250 kb/s, 15.00 fps(c)
  Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Unsupported codec (id=0) for input stream #0.0




More information about the ffmpeg-devel mailing list