[英]How to set audio speed to 0.3 in Ffmpeg?
I am using ffmpeg to set the audio and video speed to 0.3x.我正在使用 ffmpeg 将音频和视频速度设置为 0.3 倍。 I can set the video speed but can't set the audio speed to 0.3x.
我可以设置视频速度,但不能将音频速度设置为 0.3 倍。 Here is the command
这是命令
ffmpeg -y -i video.mp4 -vf "setpts=PTS/0.3" -r 50 -c:v mpeg4 -b:v 1500k -af "atempo=0.3" output.mp4
It says:它说:
Value 0.300000 for parameter 'tempo' out of range [0.5 - 100]
Is there a workaround?有解决方法吗? Any help will be appreciated.
任何帮助将不胜感激。 Regards.
问候。
Use atempo + atempo:使用 atempo + atempo:
ffmpeg -y -i video.mp4 -vf "setpts=PTS/0.3" -r 50 -c:v mpeg4 -b:v 1500k -af "atempo=0.6,atempo=0.5" output.mp4
Or use the rubberband filter for a better sounding output.或者使用橡皮筋滤波器以获得更好的声音输出。
Or use the standalone rubberband
tool:或者使用独立的
rubberband
工具:
rubberband -t 3 input.wav output.wav
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.