Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When I want to convert a video with the following command:

ffmpeg -i file.wmv -sameq file.mpg

it ends with this error message:

FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.   configuration:
--extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static   libavutil     49.15. 0 / 49.15. 0   libavcodec    52.20. 1 / 52.20. 1   libavformat   52.31. 0 / 52.31. 0  libavdevice   52. 1. 0 / 52. 1. 0   libavfilter    0. 4. 0 /  0. 4. 0  libswscale     0. 7. 1 /  0. 7. 1   libpostproc   51. 2. 0 / 51. 2. 0  built on Mar 31 2011 18:53:20, gcc: 4.4.3 [wmv3 @ 0x82dbc50]Extra data: 8 bits left, value: 0

Seems stream 1 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 30.00 (30/1) Input #0, asf, from 'file.wmv':   Duration: 00:16:53.68, start: 3.065000, bitrate: 3827 kb/s
    Stream #0.0: Audio: 0x0162, 44100 Hz, stereo, s16, 48 kb/s
    Stream #0.1: Video: wmv3, yuv420p, 1920x1080, 3750 kb/s, 30 tbr, 1k tbn, 1k tbc Could not open 'file.mpg'

What is wrong? How can I fix it?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

The problem lies here

Audio: 0x0162

It's the audio format identifier called TwoCC, looking up there we find

0x0162 Windows Media Audio Professional V9

This codec is just not supported by your version of ffmpeg, according to the ffmpeg home page the WMA pro decoder was added in ffmpeg version 0.6, check it out.

HTH

share|improve this answer
    
Is it possible to upgrade to new version with apt-get command? My version is 0.5.1 –  xralf Jul 17 '11 at 17:14
    
@xralf: I don't have Ubuntu, but basically I'd say yes. here is a tutorial on how to get ffmpeg with everything enabled. If you need help, ask on Ask Ubuntu. The important thing is, your problem here has been solved, right? –  Philomath Jul 17 '11 at 17:47
    
I have to upgrade to be sure it was solved. –  xralf Jul 17 '11 at 18:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.