Git Product home page Git Product logo

Comments (40)

AndersonReyes avatar AndersonReyes commented on June 1, 2024 4

@beyondmetis @grovduck
I still get the error on windows 10

for frame in skvideo.io.vreader(v_path):
  File "C:\Users\Anderson\AppData\Local\Programs\Python\Python35\lib\site-packages\skvideo\io\io.py", line 240,
in vreader
    assert _HAS_FFMPEG, "Cannot find installation of ffmpeg."
AssertionError: Cannot find installation of ffmpeg.

but

C:\Users\Anderson>where ffmpeg
C:\Libs\ffmpeg-3.2.2-win64-static\bin\ffmpeg.exe

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024 2

The pip version has not been updated yet. Try github version of scikit video and see if that fixes your problem.

from scikit-video.

AndersonReyes avatar AndersonReyes commented on June 1, 2024 1

@grovduck you installed it using pip or fr

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

Thank you for taking the time to bring this to my attention!

I'd like to make this package more compatible with Windows. The only thing I'd change specifically is minimizing external package dependencies. The where package you linked looks like it uses the MIT license, which allows direct incorporation into scikit-video.

I'm not sure if you have time, but I noticed that you have experience with appveyor? Scikit-video would benefit from this, so that Windows gets tested prior to packaged releases.

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

Windows should be supported now, based on the information you provided. Let me know if you have problems.

from scikit-video.

grovduck avatar grovduck commented on June 1, 2024

@beyondmetis, sorry for just dropping this. I just tested against 87089a9 and it works like a charm. I also ran tests and had to make a couple of edits based on being on python 2.7. These were one of two things:

  • Testing accumulation in test_ffmeg.py, test_libav.py, and test_vreader.py, I made the denominator a float to ensure floating-point division (e.g. float(T * M * N * C))
  • In test_measure.py, I wasn't getting the decimal precision on a couple of tests, notably test_measure_BRISQUE and test_measure_VideoBliinds. I had to set BRISQUE to 7 and VideoBliinds to 4.

Thanks for making this change. My "experience" with appveyor is really just toying around with it, so I'm probably not the right person to pick that up. But I'm happy to write up notes on what I needed to do to make it work with Windows if that's helpful.

from scikit-video.

AndersonReyes avatar AndersonReyes commented on June 1, 2024

@beyondmetis actually nvm I use the pip version and I doubt it has been updated to reflect github I'll install github version

from scikit-video.

grovduck avatar grovduck commented on June 1, 2024

@AndersonReyes, yep that was the trick for me.

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

@AndersonReyes That is correct. The pip version hasn't been updated in roughly a month. It'll be updated soon after the next round of bug fixes.

@grovduck Thanks for testing! I'll see if I can figure out those precision issues. Since this is often due to an out-of-date numpy/scipy package, what version of numpy/scipy are you using?

from scikit-video.

grovduck avatar grovduck commented on June 1, 2024

@beyondmetis, here is my setup. I'm pulling wheels for numpy/scipy from the Christoph Golhke site, maybe something with the addition of the Intel Math Kernel Library is affecting precision issues?

numpy==1.12.0+mkl
scipy==0.18.1
sk-video==1.1.7

from scikit-video.

sanaullahmanzoor1988 avatar sanaullahmanzoor1988 commented on June 1, 2024

@grovduck kindly help me..

I am gettiung this for windows 10
File "C:\Users\bismil\AppData\Local\Programs\Python\Python35\lib\site-packages\skvideo\io\io.py", line 240, in vreader
assert _HAS_FFMPEG, "Cannot find installation of ffmpeg."
AssertionError: Cannot find installation of ffmpeg.

from scikit-video.

AndersonReyes avatar AndersonReyes commented on June 1, 2024

or from github?*

from scikit-video.

sanaullahmanzoor1988 avatar sanaullahmanzoor1988 commented on June 1, 2024

using pip

from scikit-video.

AndersonReyes avatar AndersonReyes commented on June 1, 2024

@sanaullahmanzoor1988 use the github version scroll up he explains why. Although I don't know if he haz updated pip version yet.

Note I tagged wrong person ealier lol

from scikit-video.

sanaullahmanzoor1988 avatar sanaullahmanzoor1988 commented on June 1, 2024

Detailed error view)
C:\Users\bismil\Documents\Python Scripts\LipNet-master\evaluation>python predict.py models/weights04.h5 samples/id2_vcd_swwp2s.mpg
Using TensorFlow backend.

Loading data from disk...
Traceback (most recent call last):
File "predict.py", line 46, in
video, result = predict(sys.argv[1], sys.argv[2])
File "predict.py", line 20, in predict
video.from_video(video_path)
File "c:\users\bismil\documents\python scripts\lipnet-master\lipnet\lipreading\videos.py", line 119, in from_video
frames = self.get_video_frames(path)
File "c:\users\bismil\documents\python scripts\lipnet-master\lipnet\lipreading\videos.py", line 172, in get_video_frames
frames = np.array([frame for frame in videogen])
File "c:\users\bismil\documents\python scripts\lipnet-master\lipnet\lipreading\videos.py", line 172, in
frames = np.array([frame for frame in videogen])
File "C:\Users\bismil\AppData\Local\Programs\Python\Python35\lib\site-packages\skvideo\io\io.py", line 240, in vreader
assert _HAS_FFMPEG, "Cannot find installation of ffmpeg."
AssertionError: Cannot find installation of ffmpeg.

from scikit-video.

sanaullahmanzoor1988 avatar sanaullahmanzoor1988 commented on June 1, 2024

ffmpeg is working

(detail view)
C:\Users\bismil\Documents\Python Scripts\LipNet-master\evaluation>ffmpeg
ffmpeg version N-85653-gb4330a0 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 61.100 / 55. 61.100
libavcodec 57. 93.100 / 57. 93.100
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 87.100 / 6. 87.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.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'

from scikit-video.

sanaullahmanzoor1988 avatar sanaullahmanzoor1988 commented on June 1, 2024

after installing scikit video
from https://github.com/scikit-video/scikit-video
I executed

import skvideo
print(skvideo.file)
C:\Users\bismil\AppData\Local\Programs\Python\Python35\lib\site-packages\skvideo_init_.py

means now scikit-video is working but still got

Error:

File "C:\Users\bismil\AppData\Local\Programs\Python\Python35\lib\site-packages\skvideo\io\io.py", line 240, in vreader
assert _HAS_FFMPEG, "Cannot find installation of ffmpeg."
AssertionError: Cannot find installation of ffmpeg.

from scikit-video.

sanaullahmanzoor1988 avatar sanaullahmanzoor1988 commented on June 1, 2024

Above error is resolved but got
New error:

videogen = skvideo.io.vreader(path)
AttributeError: module 'skvideo.io' has no attribute 'vreader'

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

from scikit-video.

sanaullahmanzoor1988 avatar sanaullahmanzoor1988 commented on June 1, 2024

After removing sk-video in python 3.5
my code working ...

because scikit-video is getting conflict with sk-video

for python 3 remove sk-video

@AndersonReyes @beyondmetis @grovduck thanks all <3 :)

from scikit-video.

nitingulati7 avatar nitingulati7 commented on June 1, 2024

I am getting the similar error can you please suggest the alternative or work around.

File "C:\ProgramData\Anaconda3\lib\site-packages\skvideo\io\io.py", line 133, in vread
assert _HAS_FFMPEG, "Cannot find installation of real FFmpeg (which comes with ffprobe)."

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

I do suggest the alternative. Install from github and also delete all mention of your current scikit-video install.

from scikit-video.

nitingulati7 avatar nitingulati7 commented on June 1, 2024

from scikit-video.

AndersonReyes avatar AndersonReyes commented on June 1, 2024

@nitingulati7 https://github.com/scikit-video/scikit-video/blob/master/README.rst

Under installation and dependecies the github part its relative straight forward. Install dependencies using pip install

from scikit-video.

nitingulati7 avatar nitingulati7 commented on June 1, 2024

@AndersonReyes I followed the steps but I still getting the same error, There some issue where _HAS_FFMPEG is setting to O or null
here is my code snippet
import skvideo.io

skvideo.setFFmpegPath("D:/ffmpeg/bin")

a frame from the bigbuckbunny sequence

vid = skvideo.io.vread("D:/scikit-video-master/scikit-video-master/doc/examples/vid_luma_frame1.png")
T, M, N, C = vid.shape

print("Number of frames: %d" % (T,))
print("Number of rows: %d" % (M,))
print("Number of cols: %d" % (N,))
print("Number of channels: %d" % (C,))

from scikit-video.

AndersonReyes avatar AndersonReyes commented on June 1, 2024

@nitingulati7 what's in your bin folder? I can take a look, unless @beyondmetis already on it

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

@nitingulati7 does it matter that you are using forward slashes on a windows computer? Also, have you tried running the setFFmpegPath function two times in a row, as in #38 ?

from scikit-video.

nitingulati7 avatar nitingulati7 commented on June 1, 2024

@AndersonReyes : in the bin folder i have exe for ffmpeg, ffprobe & ffplay which i had downloaded from ffmpeg.org

@beyondmetis: SetFFmpegpath command works fine after changing code in skvideo_init_.py line no: 308
if os.path.isfile(_FFMPEG_PATH + "/ffmpeg**.exe**") and os.path.isfile(_FFMPEG_PATH + "/ffprobe.exe"):
_HAS_FFMPEG = 1

But it failed when I am trying to use the reader, some where in the code _HAS_FFMPEG get reset to false

I also tried to run "test_ffmpeg.py" but it doesn't find _HAS_FFMPEG as true and skips the function execution

from scikit-video.

nitingulati7 avatar nitingulati7 commented on June 1, 2024

and I am using python 3.6

from scikit-video.

tmatthias29 avatar tmatthias29 commented on June 1, 2024

Just a note, a way to solve/avoid the forward slashes on window would be to use os.path.normpath() and/or the rawstring character in front of the string.

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

@nitingulati7 this may have been fixed just recently. Let me know if you are still having issues.

from scikit-video.

nitingulati7 avatar nitingulati7 commented on June 1, 2024

@beyondmetis No it didn't work for me.

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

@nitingulati7 I will need to inspect using python3.6 and possibly also a Windows 10 machine to understand what's missing.

from scikit-video.

gregnordin avatar gregnordin commented on June 1, 2024

Just a note that I ran into the same problem of sk-video not being able to find ffmpeg, but on Mac OS 10.12.4. I uninstalled sk-video and then followed the directions on the README page and installed sk-video from github and now it works.

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

Thanks. It might be getting close to time for a new release.

from scikit-video.

gregnordin avatar gregnordin commented on June 1, 2024

Yeah, I would definitely say that if pip install... results in this error on Mac OS and Windows, it would be really good to update the code pip install... creates a working package. If I weren't so motivated to get it working, and didn't know to look in the issues, I would have given up and tried an alternative. This is not to be critical, just realistic. I really appreciate what you've done in creating this package.

from scikit-video.

beyondmetis avatar beyondmetis commented on June 1, 2024

I don't have access to a mac right now, so I haven't been able to test pip on that platform. I have tested that pip install sk-video works great on Windows and several Linux flavors. I'm not sure why your system has this issue, but I'm glad you were able to get it working in the end.

from scikit-video.

gregnordin avatar gregnordin commented on June 1, 2024

I wish I could point to a concrete reason for the problem, but am glad that this issue was open to direct me toward doing a direct install from the github repository. I probably should have thought of that myself... :)

from scikit-video.

carlodri avatar carlodri commented on June 1, 2024

installed with pip install sk-video on Windows 10x64 with python 3.6, no problems at all

UPDATE: no problems with pip install also on macOS 10.13.1, python 3.6

from scikit-video.

deweysia avatar deweysia commented on June 1, 2024

@carlodri I'm getting the same error:
assert _HAS_FFMPEG, "Cannot find installation of ffmpeg."
AssertionError: Cannot find installation of ffmpeg.
I'm using Windows 10 and did what you suggested.

When I do where.where('ffmpeg')
It returns: []

from scikit-video.

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.