Giter VIP home page Giter VIP logo

Comments (4)

mlinaje avatar mlinaje commented on May 19, 2024 2

I did a git fetch and reinstall it using pip install --ignore-installed .
but the same message appears in the commandline.
After the issue detected by @AtilioA (thanks!) I tried ffmpeg_version.py from the command line with the following output in the python console:


> >>> import subprocess
> >>> console_output = subprocess.run(
> ...             ["ffmpeg", "-version"],
> ...             stdout=subprocess.PIPE,
> ...             stderr=subprocess.STDOUT,
> ...         ).stdout
> >>> import re
> >>> regex = r"ffmpeg version \D?(\d+(?:\.\d+)*)"
> >>> match = re.search(regex, str(console_output))
> >>> groups = match.groups()
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AttributeError: 'NoneType' object has no attribute 'groups'

Recommended downloads of ffmpeg for windows are at https://ffmpeg.zeranoe.com/builds/ and default download is last git version. So, my version is: git-2020-07-16-d11cc74

Solution: I downloadade the lastest release (not git version, 4.3 at the moment) choosing it from the dropdown list top-left and reinstalled it. Now unsilence detects 4.3 version and it working. The output is:


> >>> version = groups[0].split(".")
> >>> print (version)
> ['4', '3']

I have just included this information for other Windows users with the same issues.
Best,

from unsilence.

lagmoellertim avatar lagmoellertim commented on May 19, 2024

Hey, it seems like the ffmpeg version detector does not find a matching ffmpeg version.
Could you check if the ffmpeg version is >4.2.0 and that it is globally available?
If that doesn't fix the problem, could you send me the output of ffmpeg -version?

from unsilence.

mlinaje avatar mlinaje commented on May 19, 2024

Thanks,
It's in the PATH (it's working and I checked it).
This is the output (I update it trying to make it work):

PS C:\Users\usuario2> ffmpeg -version
ffmpeg version git-2020-07-16-d11cc74 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.1 (GCC) 20200621
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 55.100 / 56. 55.100
libavcodec 58. 96.100 / 58. 96.100
libavformat 58. 48.100 / 58. 48.100
libavdevice 58. 11.101 / 58. 11.101
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100

Best,

from unsilence.

AtilioA avatar AtilioA commented on May 19, 2024

Hey, it seems like the ffmpeg version detector does not find a matching ffmpeg version.
Could you check if the ffmpeg version is >4.2.0 and that it is globally available?
If that doesn't fix the problem, could you send me the output of ffmpeg -version?

@lagmoellertim This has to do with the regex. It doesn't properly parse FFmpeg's string. Now take a look at this one: https://regex101.com/r/lO6pxG/1
I'm using FFmpeg 3.7 and the regex couldn't match it, leading to the NoneType exception.

I'll be opening a PR to fix this.

from unsilence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.