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

OSS4 Playback has slight crackles #1767

Closed
Xylemon opened this issue Apr 4, 2015 · 6 comments
Closed

OSS4 Playback has slight crackles #1767

Xylemon opened this issue Apr 4, 2015 · 6 comments

Comments

@Xylemon
Copy link

Xylemon commented Apr 4, 2015

MPV crackles when I use OSS for my sound output, but using ALSA with emulation plays fine. The cause seems to be related to this message when playing with OSS:

[ao/oss] Can't set audio device to float output.
AO: [oss] 44100Hz stereo 2ch s32

With ALSA Emulation:

[ao/alsa] Format float is not supported by hardware, trying default.
AO: [alsa] 44100Hz stereo 2ch s16

I've been reading the documentation for MPV, but I'm still not sure how to fix this issue, any help?

@Xylemon
Copy link
Author

Xylemon commented Apr 4, 2015

Setting "--aid=1" seems to have corrected the issue.

Edit: Nevermind, this was only an illusion for it seemed this worked when really it was only the fact that video was decoding with MP3 for audio where crackling still happens with AAC. Interestingly enough, when decoding with MP3 audio, OSS shows as:

AO: [oss] 48000Hz stereo 2ch s16

Rather than s32.

@Xylemon Xylemon closed this as completed Apr 4, 2015
@Xylemon Xylemon reopened this Apr 4, 2015
@ghost
Copy link

ghost commented Apr 4, 2015

Maybe something about s32 support is broken, either in the OSS driver or the OSS-specific mpv code. For testing, you can try --audio-format=s16.

@ghost
Copy link

ghost commented Apr 4, 2015

Looking at the code, I can't see why s32 would fail like this.

@Xylemon
Copy link
Author

Xylemon commented Apr 5, 2015

Thank you, "--audio-format=s16" works fine. Could the issue simply be my soundcard is shite? I have basic on-board HDAudio, and it's difficult with OSS sometimes.

@ghost
Copy link

ghost commented Apr 5, 2015

Although I can't test or confirm it myself, I have no reason to believe that mpv does anything wrong. So I don't know what else to try. Maybe you can ask OSS4 developers to have a look at this and to analyze the issue.

@Xylemon
Copy link
Author

Xylemon commented Apr 5, 2015

I'll have to ask and further investigate the issue. So until I get a response or someone else with a real sound card can confirm this issue, feel free to close this issue. I just wish MozPlugger would respect the "--audio-format=s16" parameter since I use MPV instead of Flash for sites like YouTube.

@ghost ghost added the meta:info-needed label Apr 9, 2015
@ghost ghost closed this as completed Jul 18, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant