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
use scaletempo2 by default #8376
Comments
I don't think so, but |
I've been running a patch to auto-insert scaletempo2 since it was added, and have experienced no issues at all with it. In case that adds any confidence towards making this change. |
Could you link or post that patch here, please ? Or just forcing autoload by default with |
Part 1 of "look how well it performs, then start cleaning up the old one." Ref mpv-player#8376
Part 1 of "look how well it performs, then start cleaning up the old one." Closes mpv-player#8376
Opened a PR to do this since the documentation notes scaletempo2 as being superior to scaletempo. Original scaletempo will at least for the short-term future stick around, but if we do not see any larger issues we'll start removing the original scaletempo filter. Brief testing by a volunteer showed one issue being that apparently speeds below 0.25x silence the audio. Which does not block initial switch-over of the automatic filter logic. |
Muting below 0.25x and above 8x speed is default behaviour and can be changed via filter options. There does seem to be a bug related to exceeding 8x when the maximum is set higher (which also has an open pull request in which I see you just posted as well). |
Part 1 of "look how well it performs, then start cleaning up the old one." Closes mpv-player#8376
Part 1 of "look how well it performs, then start cleaning up the old one." Closes mpv-player#8376
FWIW this is:
|
I apologize if there might have been some noise. Compared to scaletempo, it appears that scaletempo2 lacks internal support for the af_format_s16 format, which is nearly ubiquitous in the Android platform for OMX or C2 audio decoders, whether they are software or hardware-based. Consequently, on the Android platform, a conversion is necessary from the decoder to scaletempo2, where the s16 format must be converted to floatp. If I remember correctly, in the audio output (AO) section, when writing data to the audiotrack, it must be converted back from floatp to s16. This format conversion seems to be quite CPU-intensive, potentially causing scaletempo2 to use nearly 10% more CPU resources than scaletempo, especially noticeable with 5.1 or 7.1 surround sound channels where the load increase is more pronounced. Therefore, as a default , is there a way to support s16 internally like scaletempo does, or would it require significant modifications that might be nearly impossible to implement? |
You can try |
@ruihe774 |
I don't think the performance cost is mainly due to format conversion. Scaletempo2 is a much more complex algorithm than scaletempo. Did you try floatp input without format conversion for comparison? |
Manpage says:
and if playback speed will be changed (with default
[
]
{
}
controls for example)scaletempo
will be used. Butscaletempo2
sounds significant better. Is there something that prevents usingscaletempo2
instead ofscaletempo
by default?mpv 0.33.0 from Christian's repository (deb-multimedia), debian sid
The text was updated successfully, but these errors were encountered: