Code Monkey home page Code Monkey logo

Comments (7)

fresh08 avatar fresh08 commented on August 26, 2024 1

Well, it seems to be synchronous, but I do not know how it works. @hhprg

from 360-capture-sdk.

fresh08 avatar fresh08 commented on August 26, 2024

Hello, I meet a bad issue that video not sync with audio。My app running about 60fps, it's far greater than 30. My testing method is play a movie in Unity and encoding it.
Best regards.

from 360-capture-sdk.

grancia avatar grancia commented on August 26, 2024

from 360-capture-sdk.

fresh08 avatar fresh08 commented on August 26, 2024

https://raw.githubusercontent.com/fresh08/Unity_Test/master/360-Capture-SDK-Unity/Gallery/movie_2560x1440_2017-04-26%2002_09_46.mp4
This is my test project generated mp4 file, in front of a few seconds of audio and video is synchronized, the back is not synchronized. This is the git address of the project, (https://github.com/fresh08/Unity_Test), the test scene is SyncDemo.unity.
Thank you.

from 360-capture-sdk.

grancia avatar grancia commented on August 26, 2024

In your case, it can be fixed with adjusting videoFPS value in SurroundCapture.cs/NonSurroundCapture.cs as below.
int videoFPS = 27;

But we will investigate more why sync issue is happening with default value.

from 360-capture-sdk.

hhprg avatar hhprg commented on August 26, 2024

I believe this code in SurroundCapture.Update is the culprit:
if (fpsTimer >= fps) { fpsTimer = 0.0f;

It makes the audio and video gradually drift out of sync. Replacing it with this code appears to fix the problem:
if (fpsTimer >= fps) { fpsTimer -= fps;

from 360-capture-sdk.

grancia avatar grancia commented on August 26, 2024

Because it has been about over two months since v2.0 was released, I want to close v1.x related issues now. If you have any issue on v2.0, please create separate thread.
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.