Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio issues when using videos with different frame rates #320

Closed
natasha-93 opened this issue Apr 28, 2021 · 2 comments
Closed

Audio issues when using videos with different frame rates #320

natasha-93 opened this issue Apr 28, 2021 · 2 comments

Comments

@natasha-93
Copy link

When using different videos, the audio doesn't fade out as expected. When testing, I found that it faded out some 400 frames after it should have. This could be related to the videos having different frame rates?

When using the same videos, the audio works as expected.

<>
  <Audio
    src="https://firebasestorage.googleapis.com/v0/b/ice-phoenix-6072f.appspot.com/o/music%2FCity%20Sunshine.mp3?alt=media"
    volume={interpolate(
    currentFrame,
    [durationInFrames - 50, durationInFrames],
    [1, 0],
      {
        extrapolateLeft: 'clamp',
        extrapolateRight: 'clamp',
      }
    )}
  />
  <div style={{zIndex: 5}}>
    <h1>{currentFrame}</h1>
  </div>
  <Sequence from={0} durationInFrames={150}>
    <Video src="https://firebasestorage.googleapis.com/v0/b/ice-phoenix-6072f.appspot.com/o/agencies%2FexampleAgency%2Fagents%2F5kLZBgkEfcguiGsc53kA%2Finput%2Fvideo%2Foutro-0.mp4?alt=media" />
  </Sequence>
  <Sequence from={150} durationInFrames={200}>
    <Video src="https://firebasestorage.googleapis.com/v0/b/ice-phoenix-6072f.appspot.com/o/agencies%2FexampleAgency%2Fagents%2F5kLZBgkEfcguiGsc53kA%2Fprojects%2F7KFKcmB0flUf2t5go3T6%2Fuploads%2Fvideo%2Fmain-1.mp4?alt=media" />
  </Sequence>
</>
@JonnyBurger
Copy link
Member

Thanks for the report!
I created a repo and indeed something the audio doesn't fade out for me. I'll investigate and provide a bugfix hopefully soon!

JonnyBurger added a commit that referenced this issue Apr 28, 2021
@JonnyBurger
Copy link
Member

Fixed in v2.0.7!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants