reticivis-net / mediaforge

A Discord bot for editing and creating videos, images, GIFs, and more!
https://discord.com/oauth2/authorize?client_id=780570413767983122
GNU General Public License v3.0
84 stars 28 forks source link

$pitch command changes the audio speed when trying to adjust the sample-rate to 48000 #253

Closed RaymanChrome closed 2 weeks ago

RaymanChrome commented 2 months ago

Describe the bug

When using the $pitch command on videos that don't match the sample rate of 48000, such as 44100, the bot will try to adjust it to 48000, but it won't match the speed of the original video length.

Traceback

no traceback

Expected Behavior

The audio should retain the same speed as the input video, while still changing the audio pitch.

Steps To Reproduce

  1. Download/upload a file that doesn't match the sample rate of 48000 (e.g. YouTube video download)
  2. Run $pitch command (any half step will cause it)

Anything Else

No response