Code Monkey home page Code Monkey logo

Comments (4)

grancia avatar grancia commented on June 21, 2024

If you set FBCaptureSDK.vodVideoFrameRate to 60 fps, capture sdk will expect to get 60 textures per second for making 60 fps videos, but in your case, it seems like it can't pass 60 textures per sec to sdk side. What's your current resolution setting? And what's your graphics card? Can you try with lower resolutions?
I think you can still use "vodVideoFrameRate = 30" with your settings for GraphicsSettings.vSyncCount and Time.captureFramerate for your purpose though.

from 360-capture-sdk.

psychicteeth avatar psychicteeth commented on June 21, 2024

Hi! Thanks for the very fast reponse!

I will try with lower resolutions, but when I tried doing a 24fps video it still came out super fast and had like 8 frames in it, instead of running at the expected speed.

it seems like it can't pass 60 textures per sec to sdk side

Do you mean that instead of queuing up the frames that are passed to the SDK, the extra ones are discarded?

If you set FBCaptureSDK.vodVideoFrameRate to 60 fps, capture sdk will expect to get 60 textures per second for making 60 fps videos

It seems like the SDK is not expecting to receive frames more frequently than the FPS set by FBCaptureSDK.vodVideoFrameRate. I expect this is the problem - we're sending frames more frequently than the FPS we specify in FBCaptureSDK.vodVideoFrameRate. e.g. for a 60fps video that's 10s long, we're sending 600 frames, but we're sending them over about 1s instead of over 10s.

Would it be possible for the SDK to accept frames more frequently than the specified FPS?

from 360-capture-sdk.

grancia avatar grancia commented on June 21, 2024

Hi,
Basically, we're managing fps in encoding thread in FBCapture.dll and textures are totally encoded based on fps setting with timer function. For example, if we set fps to 30, then we're handling texture encode every 1/30 secs. Yes, SDK is not expecting to receive frames more frequently than the FPS set.
Your case seems to be edge case... I would recommend you to play with source code for custom.
Thanks,

from 360-capture-sdk.

psychicteeth avatar psychicteeth commented on June 21, 2024

Hey, thanks for the reply! I see you've added c++ source to the repo, that's awesome! I'll have a look. Thanks!

from 360-capture-sdk.

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.