Skip to content

Distortion in ogg encoder after 4 seconds in first recording of several recordings #46

Open
@clecap

Description

@clecap

I use the recorder for doing repeated recordings.

In the first recording, at 2-4 seconds after the start of the recording there is a weird distortion of approximately 0.5 seconds. All the subsequent recordings with the same instance of the recorder are fine. My current work-around is to simply throw away the first recording (which in my workflow anyhow is a test of the audio settings of my mic preamp). Nevertheless it is annoying.

It seems to be different from the known issues #23 (comment) and #6 (comment) since I do not connect a destination to the mixer.

My naive suspicion was a bug in the initialization of the ogg code. However, I then realized that the problem is there with the mp3 and wav encoding as well.

I attached 4 samples packed in a zip file. In the wav case, the distortion is barely recognizable and one might have to listen to it several times.
Compressed file.zip

After a few more tests it seems to be connected with the bufferSize setting. I see the problem with a bufferSize of 1024 (which, oddly enough, is the browser default value of the system). I do not see the problem with larger buffer sizes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions