-
Notifications
You must be signed in to change notification settings - Fork 71
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
track + trackComposite issues (writing audio). #142
Comments
To clarify, the audio is not sped up, more like silent frames are being dropped. This doesn't seem to be consistent, other participant audio recorded at the same time seems to be okay. The recording devices are both standard macOS with default camera and mic. |
UPDATE: I've been looking a little deeper and it seems every audio only recording is affected. |
A few questions, since I'm having trouble reproducing this: |
Hi @frostbyte73 thanks for looking into this.
Some additional info on some more recordings made today.... File reporting duration of 34 seconds, but actually playback is 24 seconds and different players will report either one (or in some cases both). VLC does playback to the full 34 (which is what we would expect - but most other players 24 - converting to other formats results in 24). We have checked the output opusdec is reporting quite a few opusinfo is reporting:
Hope this helps. |
@frostbyte73 I’ve been running a few tests with the sample builder and writer (actually I’m doing a quick test with pion sample builder, basic writer against livekit) very quick and rough. First I was logging silence data and then I adjusted to fill and this is solving the issue. I’m not familiar with the differences in the livekit sample builder & writer, at a quick glance I can see it’s making different decisions, handling muted etc, but I think silence also needs to be filled. |
yup, currently working on mixing silence in |
fixed in #146 |
Thanks for fixing so quickly @frostbyte73. I've been testing and I am encountering broken audio when it goes from silence to sound (cut outs), I can replicate this in every test. I tested an adjustment to the VP8 Key frame you are using...
To this ....
And this solves the problem for me. |
I'm noticing an issue with
track
andtrackComposite
.I'll try and explain – I'm still investigating – (I have files which I can supply).
Example: Audio recording which is 32 seconds where the user spoke through out. Resulting file has the correct duration, but the audio is within the first half of the recording.
I can confirm that if I record the
roomComposite
(as well) or/and add video to thetrackComposite
then the audio playback is fine, although additionally I am seeing drift on occasion in this area.My assumption right now is just how the frames are being written, but I haven't looked deeper at this stage. I wanted to raise this issue first to see if there is any knowledge of this before I look deeper.
The text was updated successfully, but these errors were encountered: