Giter Site home page Giter Site logo

Comments (5)

Khhs167 avatar Khhs167 commented on June 12, 2024

I'd love to attach the video I've been using, but I am currently on limited and slow data.

from ffmediatoolkit.

Khhs167 avatar Khhs167 commented on June 12, 2024

After further investigation, it seems like TryGetFrame(or possibly GetFrame) is the root of the problem.

When using TryGetNextFrame it seems like it suddenly works.

I'll do some more testing!

from ffmediatoolkit.

Khhs167 avatar Khhs167 commented on June 12, 2024

Even more investigation later, and these kinds of errors seem to be more random that I thought.
All of a sudden TryGetNextFrame stopped working...

I wonder if it has something to do with threading?

The decoding thread shouldn't be ongoing though? Shouldn't that be invoked and then waited for?

from ffmediatoolkit.

radek-k avatar radek-k commented on June 12, 2024

It might be a threading issue, but I'm not sure. Did you test other video files? What decoding thread do you mean? Is the Video.Step method called from another thread? FFMediaToolkit isn't thread-safe, so make sure that the TryGetFrame isn't called on different threads at the same time. You can try wrapping it with lock statement to ensure that.

from ffmediatoolkit.

Khhs167 avatar Khhs167 commented on June 12, 2024

I am calling TryGetFrame from the same thread I do all FFmpeg stuff.
I managed to get ogv to work smoothly, mp4 and mov had their own issues(mp4 was "reiniting context", mov I don't remember, but it was 2.4 GB which I ain't dealin' with).

I didn't try other webm's but I tried re-encoding etc.

from ffmediatoolkit.

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.