SoniTranslate icon indicating copy to clipboard operation
SoniTranslate copied to clipboard

Unknown encoder 'libmp3lame'

Open Holopyt opened this issue 1 year ago • 6 comments

Please help, installing locally on win 11. Spend different ways none worked.

Exception: ffmpeg version 7.0.2 Copyright (c) 2000-2024 the FFmpeg developers built with clang version 18.1.8 configuration: --prefix=/d/bld/ffmpeg_1723846376620/_h_env/Library --cc=clang.exe --cxx=clang++.exe --nm=llvm-nm --ar=llvm-ar --disable-doc --disable-openssl --enable-demuxer=dash --enable-hardcoded-tables --enable-libfreetype --enable-libharfbuzz --enable-libfontconfig --enable-libopenh264 --enable-libdav1d --ld=lld-link --target-os=win64 --enable-cross-compile --toolchain=msvc --host-cc=clang.exe --extra-libs=ucrt.lib --extra-libs=vcruntime.lib --extra-libs=oldnames.lib --strip=llvm-strip --disable-stripping --host-extralibs= --disable-libopenvino --enable-gpl --enable-libx264 --enable-libx265 --enable-libaom --enable-libsvtav1 --enable-libxml2 --enable-pic --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libopus --pkg-config=/d/bld/ffmpeg_1723846376620/_build_env/Library/bin/pkg-config libavutil 59. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 libpostproc 58. 1.100 / 58. 1.100 [aist#0:0/pcm_s16le @ 00000200D76C0080] Guessed Channel Layout: stereo Input #0, wav, from 'audio.wav': Metadata: encoder : Lavf61.1.100 Duration: 00:01:08.87, bitrate: 1411 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s [aist#1:0/pcm_s32le @ 00000200D7704B80] Guessed Channel Layout: mono Input #1, wav, from 'audio_dub_solo.ogg': Duration: 00:01:08.61, bitrate: 1312 kb/s Stream #1:0: Audio: pcm_s32le ([1][0][0][0] / 0x0001), 41000 Hz, mono, s32, 1312 kb/s [aost#0:0 @ 00000200D7738FC0] Unknown encoder 'libmp3lame' [aost#0:0 @ 00000200D7738FC0] Error selecting an encoder Error opening output file audio_mix.mp3. Error opening output files: Encoder not found

Holopyt avatar Aug 20 '24 12:08 Holopyt

  1. Remove the ffmpeg package: conda remove ffmpeg
  2. Download the ffmpeg binaries for windows. unpack and add the folder to your enviroment variable "PATH"

MartinForsterNL avatar Aug 23 '24 19:08 MartinForsterNL

2. Download the ffmpeg binaries for windows. unpack and add the folder to your enviroment variable "PATH"

installed on windows, question with the "patch" folder Should the folder be a system one or in the program folder?

(base) PS C:\Users\User> conda activate sonitr
(sonitr) PS C:\Users\User> cd SoniTranslate
(sonitr) PS C:\Users\User\SoniTranslate> setx /m PATH "C:\Users\User\SoniTranslate\ffmpeg\bin;%PATH%"
setx : Имя "setx" не распознано как имя командлета, функции, файла сценария или выполняемой программы. Проверьте правил
ьность написания имени, а также наличие и правильность пути, после чего повторите попытку.
строка:1 знак:1
+ setx /m PATH "C:\Users\User\SoniTranslate\ffmpeg\bin;%PATH%"
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (setx:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

(sonitr) PS C:\Users\User\SoniTranslate>

Where exactly should I unpack the codec folder?

Why am I asking - when installing on a windows system and patching at the installation address - nothing works it was unpacked into this folder, and I applied the patch there too... C:\Users\User\SoniTranslate\ffmpeg\bin

alexejtka4 avatar Oct 23 '24 06:10 alexejtka4

[aost#0:0 @ 00000200D7738FC0] Unknown encoder 'libmp3lame'

'libmp3lame' in conda build is linux only.....

3333

(sonitr) PS C:\Users\User\SoniTranslate> conda install gaiar::libmp3lame
Channels:
 - defaults
 - gaiar
 - conda-forge
 - nvidia/label/cuda-11.8.0
 - nvidia
 - anaconda
 - pytorch
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - gaiar::libmp3lame

Current channels:

  - defaults
  - https://conda.anaconda.org/gaiar
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/nvidia/label/cuda-11.8.0/win-64
  - https://conda.anaconda.org/nvidia/win-64
  - https://conda.anaconda.org/anaconda/win-64
  - https://conda.anaconda.org/pytorch/win-64

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.


(sonitr) PS C:\Users\User\SoniTranslate>

for windows you need to download release essentials: only this release contains the necessary library but I couldn't run all this in the conda environment... now I'm digging into this issue. I'll be glad to get help

alexejtka4 avatar Oct 23 '24 06:10 alexejtka4

[aost#0:0 @ 00000200D7738FC0] Unknown encoder 'libmp3lame'

'libmp3lame' in conda build is linux only.....

3333

(sonitr) PS C:\Users\User\SoniTranslate> conda install gaiar::libmp3lame
Channels:
 - defaults
 - gaiar
 - conda-forge
 - nvidia/label/cuda-11.8.0
 - nvidia
 - anaconda
 - pytorch
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - gaiar::libmp3lame

Current channels:

  - defaults
  - https://conda.anaconda.org/gaiar
  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/nvidia/label/cuda-11.8.0/win-64
  - https://conda.anaconda.org/nvidia/win-64
  - https://conda.anaconda.org/anaconda/win-64
  - https://conda.anaconda.org/pytorch/win-64

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.


(sonitr) PS C:\Users\User\SoniTranslate>

for windows you need to download release essentials: only this release contains the necessary library but I couldn't run all this in the conda environment... now I'm digging into this issue. I'll be glad to get help

I found solution https://github.com/GyanD/codexffmpeg/releases/tag/2024-10-21-git-baa23e40c1 use full version in windows

diegosouzapw avatar Oct 24 '24 04:10 diegosouzapw

I found solution https://github.com/GyanD/codexffmpeg/releases/tag/2024-10-21-git-baa23e40c1 use full version in windows

there are other sources - the question is where exactly to unpack and where exactly to apply the patch?

alexejtka4 avatar Oct 30 '24 21:10 alexejtka4

Same problem, unsolved

zclucky avatar Jul 10 '25 13:07 zclucky