Closed Tobe2d closed 2 years ago
I updated ffmpeg and still not working.
ffmpeg
ffmpeg version 2022-11-03-git-5ccd4d3060-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 57. 40.100 / 57. 40.100
libavcodec 59. 51.101 / 59. 51.101
libavformat 59. 34.101 / 59. 34.101
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 49.101 / 8. 49.101
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
Did you already have an ffmpeg library installed for python previously? The module this extension uses is ffmpeg-python
; if you have python-ffmpeg
installed instead, that would cause this sort of error.
Yes I do have python-ffmpeg as I need it for other aplications
You may want to consider uninstalling it from your root pip install and adding it only to the virtualenvs and conda envs that require it, otherwise it'll cause conflicts like this with apps that use ffmpeg-python
.
I'm closing this ticket now, as the issue has been uncovered and can be considered resolved.
In my case this was caused from having a /ffmpeg dir within the Web-UI's root dir containing FFmpeg executables. I am not sure where this came from, possibly some earlier Web-UI script dealing with animations.
The problem with this was that when this extension executes import ffmpeg
, it imported the /ffmpeg dir instead of ffmpeg-python
, without any errors and consequently without even installing ffmpeg-python
, which was later causing the problem described in this issue.
While assessing whether /ffmpeg is no longer needed, renaming it to something else fixed this issue.
I get this error:
Extracting frames from 20221027195939.mp4 Exception encountered while attempting to extract frames: module 'ffmpeg' has no attribute 'input'
I cant get it to run even I have ffmpeg