WinFF / winff

Automatically exported from code.google.com/p/winff
213 stars 50 forks source link

ffmpeg reports "Unknown encoder 'vorbis' " #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select audio/OGG for preset, 
2. open desired file (flv from gnash from YouTube)
3. "convert"

What is the expected output? What do you see instead?
<file>.ogg in destination directory.
Error message in terminal window.

What version of the product are you using? On what operating system?
winFF 1.2 --> ffmpeg 0.6-4:0.6-2ubuntu6   Ubuntu 10.10 Linux 2.6.35-25-generic

Please provide any additional information below.

The default preset command line for ogg: "-acodec vorbis -aq 60 -vn -ac 2"
yields the following output:

"FFmpeg version 0.6-4:0.6-2ubuntu6, Copyright (c) 2000-2010 the FFmpeg 
developers
  built on Oct  5 2010 22:35:47 with gcc 4.4.5
  configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  libavutil   configuration: --extra-version=4:0.6-2ubuntu3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libmp3lame --enable-gpl --enable-postproc --enable-x11grab --enable-libfaad --enable-libxvid --enable-libx264 --enable-librtmp --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavcodec  configuration: --extra-version=4:0.6-2ubuntu3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libmp3lame --enable-gpl --enable-postproc --enable-x11grab --enable-libfaad --enable-libxvid --enable-libx264 --enable-librtmp --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavformat configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavdevice configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavfilter configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libswscale  configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libpostproc configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[flv @ 0x8952bc0]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 59.92 
(29961/500) -> 29.92 (359/12)
Input #0, flv, from '/home/scott/Desktop/FiveForFighting_TheRiddle':
  Metadata:
    duration        : 234
    starttime       : 0
    totalduration   : 234
    width           : 640
    height          : 360
    videodatarate   : 802
    audiodatarate   : 108
    totaldatarate   : 917
    framerate       : 30
    bytelength      : 26926870
    canseekontime   : true
    sourcedata      : BD075FA41HH1298325175101269
    purl            : 
    pmsg            : 
  Duration: 00:03:54.40, start: 0.000000, bitrate: 931 kb/s
    Stream #0.0: Video: h264, yuv420p, 640x360 [PAR 1:1 DAR 16:9], 821 kb/s, 29.92 tbr, 1k tbn, 59.92 tbc
    Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 110 kb/s
Unknown encoder 'vorbis'
"

mp3 encoding works fine.
Since the mp3 preset command line looks like: 
"-acodec libmp3lame -ab 160kb -ac 2 -ar 44100", and
/usr/lib contains a library named "libmp3lame",
I looked for "lib*" vorbis-related files, and found libvorbisenc and libvorbis 
and libvorbisfile (whatever that is).  I modified the preset command line to 
say "libvorbisenc" (since we're encoding) instead of "vorbis".
Same result.  Same with "libvorbis" (although I think that that is supposed to 
be for decoding anyway, not encoding...)
I even tried to use the terminal alone, ffmpeg with your command line options,
but wit libvorbisenc instead.  This time it said "Unknown encoder 
'libvorbisenc'"
when I tried "vorbis", it reported "[vorbis @ 0x8e4e3a0]Extradata corrupt."
although it's possible that that was caused by missing command line options 
from the preset file that I obviously was not using (not going through winFF)...

I don't know what is going on...

When I used WinFF/FFmpeg in Germany on a different computer with Ubuntu 9.10,
I had no problem converting to .ogg vorbis...

Any ideas?

Original issue reported on code.google.com by scott092...@aol.com on 22 Feb 2011 at 2:40

GoogleCodeExporter commented 9 years ago
libraries in /usr/lib are not relevant as ffmpeg has them internally. However 
(I haven't checked yet) maybe you need indeed to specify libvorbis instead of 
vorbis AND have the package libavcodec-extra-52 installed.

Please report back if this solves your problem.

Original comment by poipodec...@hotmail.com on 23 Feb 2011 at 7:59

GoogleCodeExporter commented 9 years ago
Well, I got it to work.

First, I verified that I had "libavcodec-extra-52" installed.  I did.

Next I changed "vorbis" to "libvorbis" in the preset and clicked on "Save" as 
usual.

Result:  it still complained about "vorbis", not "libvorbis".
(I had been curious before why, when I changed "vorbis" to something else, the 
error message remained "vorbis".)

I then noticed, for the first time, the "Add/Updat" (button is too small to 
show "...Update").

In looking at the documentation ("If all else fails, read the instructions.")
it appears that "Add/Updat" changes the preset in memory (only - presumably the 
change would be lost if the program
were closed at this point), and "Save" takes the current preset in memory and 
saves it to disk.
So what I  had been doing by making changes and pressing "Save", was taking the 
unchanged in-memory preset, 
and saving it to disk.

When I made the change and pressed  "Add/Updat", the conversion process worked 
fine.
[Oops, I'd better go press "Save" now, or I'll have to do it again, next 
session...!]

I suppose that this system is so that you can make lots of changes to a preset, 
to see how it affects the results, before
committing it to disk, and if you mess it up too much, you can always restart 
the program, to get back the original preset.
Perhaps the preset window could be altered to make this process more obvious to 
duffers like myself.
Perhaps... change the "Add/Updat" button to "Save to Memory / Test", and the 
"Save" button to "Save To Disk"...
Perhaps a "Restore Default Preset" button (for standard types).

-

[Aside: it seems as if the command line options changed between the version 
that I used with Ubuntu 9.10.
Before, not messing with any preset details, a flv converted to .ogg resulted 
in a smaller file than .mp3, and seemed
to sound just as good.  Now that I have a successful .ogg conversion, the .ogg 
files seem to be more than double
the size of the .mp3 files.

  (By the way, until I changed it, it wanted to make the extension .OGG, not .ogg - I think extensions
are typically lowercase...right?)]

Thanks for your advice.

-Scoit Jacobs

Original comment by scott092...@aol.com on 23 Feb 2011 at 9:52

GoogleCodeExporter commented 9 years ago
Bug confirmed. Will fix this for Debian and Ubuntu.

Matt, can you confirm that this also needs fixing on Windows?

Change is simple:
presets.xml, ogg1 preset needs libvorbis instead of libvorbis.

Original comment by poipodec...@hotmail.com on 27 Feb 2011 at 8:14

GoogleCodeExporter commented 9 years ago
yes

Original comment by bgg...@gmail.com on 27 Feb 2011 at 8:48

GoogleCodeExporter commented 9 years ago
Fixed in r526

Original comment by poipodec...@hotmail.com on 18 Mar 2011 at 9:23

GoogleCodeExporter commented 9 years ago
i have the same problem, but i already installed the libavcodec-extra-52 but 
unknow encoder 'vorbis' still post after a click convert? please help!!!

Original comment by mustkill...@gmail.com on 25 Mar 2013 at 1:36

GoogleCodeExporter commented 9 years ago
FFmpeg version 0.6.6-4:0.6.6-0ubuntu0.11.04.1, Copyright (c) 2000-2010 the 
Libav developers
  built on Jun 12 2012 16:28:21 with gcc 4.5.2
  configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.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 --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  libavutil   configuration: --extra-version=4:0.6.6-1ubuntu1+medibuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavcodec  configuration: --extra-version=4:0.6.6-1ubuntu1+medibuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavformat configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.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 --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavdevice configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.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 --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavfilter configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.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 --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libswscale  configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.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 --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libpostproc configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.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 --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mp3 @ 0x9ebcbc0]max_analyze_duration reached
Input #0, mp3, from '/home/catrina/Downloads/AUDIO/A Day to Remember - I'm Made 
Of Wax Larry What Are You Made Of.mp3':
  Metadata:
    TIT2            : I'm Made of Wax, Larry, What Are You Made Of?
    TPE1            : A Day To Remember
    TALB            : Homesick
    TCON            : post-hardcore
    TRCK            : 3/19
    TDRC            : 0
    Rip date        : 2010-04-29
    Source          : CD (LP)
    Ripping tool    : EAC
    Release type    : Normal release
    TLAN            : eng
    TPUB            : Promo Only
    TSSE            : Lame 3.97 -V2 --vbr-new
  Duration: 00:02:56.53, start: 0.000000, bitrate: 259 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, 2 channels, s16, 192 kb/s
Unknown encoder 'vorbis'
Press Enter to Continue  

Original comment by mustkill...@gmail.com on 25 Mar 2013 at 1:40

GoogleCodeExporter commented 9 years ago
@mustkillyou666 : please replace vorbis in the preset by libvorbis and you will 
be fine.

Original comment by poipodec...@hotmail.com on 25 Mar 2013 at 6:53