Giter Club home page Giter Club logo

Comments (5)

shrubb avatar shrubb commented on July 28, 2024

@aronfothi

Hi,
That's strange. On my machine, this code succeeds. I'm sure this isn't related to the bindings. Are you sure you have OpenCV tied to the necessary codec?

from torch-opencv.

shrubb avatar shrubb commented on July 28, 2024

@aronfothi
Did you solve this issue? I've run out of ideas :(

from torch-opencv.

aronfothi avatar aronfothi commented on July 28, 2024

Not yet. Could you give me a hint how i could detect the missing codec? The cap:isOpened() ->
false does not give me enough info.
(sry for late reply)

from torch-opencv.

shrubb avatar shrubb commented on July 28, 2024

@aronfothi
Try checking this:

  1. When installing OpenCV, you should see a report like:
...

--   Video I/O:
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  YES (ver 2.2.1)
--     FFMPEG:                      YES
--       codec:                     YES (ver 53.35.0)
--       format:                    YES (ver 53.21.1)
--       util:                      YES (ver 51.22.1)
--       swscale:                   YES (ver 2.1.0)
--       gentoo-style:              YES
--     GStreamer:                   
--       base:                      YES (ver 0.10.36)
--       app:                       YES (ver 0.10.36)
--       video:                     YES (ver 0.10.36)

Here you can see the codecs that OpenCV had been linked to.

  1. Check the codec that your MH.avi is encoded with. Compare.

from torch-opencv.

aronfothi avatar aronfothi commented on July 28, 2024

It was the problem. It was strange because i installed the ffmpeg just before the OpenCV but somehow it was missing. After reinstall it works well.
Thanks.

from torch-opencv.

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.