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 Skipping on ADPCM Codec .wav #470

Open
stark-silence opened this issue Jul 2, 2024 · 2 comments
Open

Audio Skipping on ADPCM Codec .wav #470

stark-silence opened this issue Jul 2, 2024 · 2 comments
Labels
awaiting feedback Waiting for response GStreamer Issue with GStreamer

Comments

@stark-silence
Copy link

I'm on Manjaro Gnome, AMD CPU, 6.6.34-1-MANJARO kernel, clapper 0.6.1 from the AUR.

I audibly heard what sounded like audio skipping on playback of a music track, so I took a quick recording, layered it on top of the original in Audacity and found that Clapper was seemingly randomly skipping small chunks of the file, like less than a second at a time, which adds up. It was only on this specific .wav type so I checked out the codec, and it turned out be specifically Microsoft ADPCM.

I could not reproduce the skipping in mpv, so I figured it must be an issue with clapper or something it uses. I went deeper and converted the .wav ADPCM to signed 16-bit PCM and then played that once again through clapper, recorded it, and put that back into Audacity, and on doing so found that it lined up 1:1, or in other words, it was not skipping anymore, so I am assuming it has 'something' to do with clapper's Microsoft ADPCM codec, or something.

I did try a different MS ADPCM file and had the same skipping problem so it is not localized just to one file. I then tried converting from 16-bit PCM back to MS ADPCM and that resultant file did NOT skip when played back by clapper... so...

It is still anomalous behavior but the specificity is weird. I'll just post this here anyway. For the sake of reproducing the issue, if you're curious about the specific files I'm having trouble with here, it's tracks from C&C Remastered, extracted from game files.

Pictured: Top - source file,
middle - converted .wav,
bottom - clapper's output recorded.
Screenshot from 2024-07-02 20-56-37

@Rafostar
Copy link
Owner

Rafostar commented Jul 2, 2024

Probably should be reported to GStreamer. Please check the name of audio decoder used (in "i" dialog).

@Rafostar
Copy link
Owner

Rafostar commented Jul 5, 2024

Doesn't look like a Clapper bug, but if you can check which decoder is used we can try reproducing in GStreamer-only to confirm and also see if alternative decoder also does this.

@Rafostar Rafostar added GStreamer Issue with GStreamer awaiting feedback Waiting for response labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback Waiting for response GStreamer Issue with GStreamer
Projects
None yet
Development

No branches or pull requests

2 participants