简体   繁体   English

Sox:在mp3文件末尾修剪

[英]Sox: Trimming at the end of a mp3 file

I'm struggling a bit with sox. 我在用袜子挣扎。 I am trying to simply cut off 1.2 seconds of the end of a file. 我试图简单地切断文件结尾的1.2秒。 I know there is a trim function in sox, but I am not sure how to use it so it cuts off the exact time at the end? 我知道袜子中有trim功能,但是我不确定如何使用它,这样可以减少最后的确切时间? I know it works like this roughly: 我知道它大致像这样工作:

sox input output trim <start> <duration>

However, the only solution I could come up with would be something like this (Pseudocode) : 但是,我唯一能想到的解决方案是这样的(伪代码):

sox input output trim <length of whole mp3 file -1.2 seconds> <1.2 seconds>

弄清楚了:

sox input output trim 0 -1.2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM