有时想将一个mp3文件中的某一段截取出来,在Linux可以选择使用mp3splt这个工具。该工具其实还支持对ogg格式文件的分割。
下面以mp3为例简要介绍一下它的使用:
(1) 安装
可以从源里直接安装:sudo aptitude install mp3splt

(2) 分割
假如有一个待分割的test.mp3文件,如果想截取其中的2分15秒~2分45秒这一段,则最简单的命令是:

  1. mp3splt test.mp3 2.15 2.45

复制代码

这样,会自动将这一段存储为一个名为test_2.15_2.45.mp3的文件

当然也可以自己定义输出的文件名:

  1. mp3splt test.mp3 2.15 2.45 -o out.mp3

复制代码

(3) 更多
关于该工具的更多、高级用法,请参阅它的man手册及其中的示例:

mp3splt album.mp3 54.32.19 67.32 -o out
mp3splt album.ogg 54.32.19 67.32 -o out
This is the standard use of mp3splt for constant bitrate mp3 or for any ogg.You specify a begin time (which in this case uses hundredths, 54.32.19), an end time and an output file.

mp3splt -f -d newdir album.mp3 album2.mp3 145.59  234.2
This is frame mode for variable bitrate mp3 and multiple files.You can see that time format uses min.sec even if minutes are over 60.Output files in this case will be: album_145m_59s_0h__234m_2s_0h.mp3 and album2_145m_59s_0h__234m_2s_0h.mp3because user didn't specify it and they will be in the directory named newdir.

mp3splt  -nf album.mp3  0.12  21.34.7  25.3  30.40  38.58
This is the use of -n option and multiple splitpoints. Four files will be createdand will not contain ID3 informations.

mp3splt  -w  album_MP3WRAP.mp3
This is Wrap mode. You can use this when mp3 is a file wrapped with Mp3Wrap or AlbumWrap.You can specify an output directory with the -d option.

mp3splt  -lq  album.mp3
This is List mode. You can use this when you want to list all tracks of a wrapped file without extracting them.With quiet option (-q), program will not calculate CRC!

mp3splt -s f.mp3 or mp3splt -s -p th=-50,nt=10 f.mp3
This is silence option. Mp3splt will try to automatically detect splitpoints with silence detection and in the first casewill split all tracks found with default parameters, while in the second 10 tracks (or less if too much) with the mostprobable silence points at a threshold of -50 dB.

mp3splt  -c  file.cddb  album.mp3
This is CDDB mode with a local file. Filenames and splitpoints will be taken from file.cddb.

mp3splt  -c  query  album.mp3
This is CDDB mode with internet query. Will ask you the keyword to search and you will selectthe wanted cd.

mp3splt  -a -c  file.cddb album.mp3
This is CDDB mode with auto-adjust option (default parameters). Splitpoints will beadjusted with silence detection in a range of 30 seconds before and after cddb splitpoints.

mp3splt  -a -p gap=15,th=-23,rm -c  file.cddb album.mp3
This is CDDB mode with auto-adjust option. Splitpoints will be adjusted with silencedetection in a range of 15 seconds before and after cddb splitpoints, with a threshold of -23 dB,and silence will be removed.

mp3splt  -c  query  album.mp3 -n -o @n_@t
This is CDDB mode with internet query with Frame mode, NoID3 and Output format.Output filenames will be named like: 01_Title.mp3

mp3splt  -t  10.00  album.mp3
This is -t option. It will split album.mp3 in many files of 10 minutes each.

Linux下小巧的mp3分割工具mp3splt简介相关推荐

  1. ubuntu等linux下自定义设置程序代理工具proxychains简介

    在linux下,有时候我们想给一个程序设置代理,但是程序自身却不具备设置代理的配置选项,这时候并不是无法给程序设置代理,今天奶牛为大家推荐一款比较实用的linux下的自定义设置程序代理的工具proxy ...

  2. 那些 Linux 下好用的 小工具 收集

    PS: 由于个人主要使用的平台为基于 Debian 的发行版[准确来说是基于 Ubuntu 的再发行版 Linux Mint],所以默认以 Debian 环境下介绍,不过由于大多数软件都是开源且在多个 ...

  3. linux有没有类似于串口的,linux下类似Bus Hound的工具

    linux下类似Bus Hound的工具 0 推荐在linux大家有时候需要调试usb接口的串口消息,但是没有类似于windows下的bus hound工具,感觉比较痛苦,其实linux内核提供了us ...

  4. 20120520 Linux下mysql的自动备份工具

    文章摘自:http://hi.baidu.com/vb98/blog/item/2ed90cea835fa4cfd439c97f.html linux下的MySQL自动备份工具-第二版2011-10- ...

  5. Linux下压缩工具gzip和归档工具tar及其实战shell应用

    Linux下压缩工具gzip和归档工具tar及其实战shell应用       第一章:gzip的使用技巧 gzip [option]... file... -d: 解压缩,相当于gunzip; -# ...

  6. linux下grep文件内容搜索工具及基本正则表达式详解

    linux下grep文件内容搜索工具及基本正则表达式详解 grep命令: 根据模式(文本字符和基本正则表达式的元字符组合而成之匹配条件)搜索文本, 并将符合模式的文本行显示出来. 格式:grep [选 ...

  7. Perf -- Linux下的系统性能调优工具,第 2 部分

    https://www.ibm.com/developerworks/cn/linux/l-cn-perf2/ Perf -- Linux下的系统性能调优工具,第 2 部分 刘 明, 软件工程师, 上 ...

  8. Linux下文件备份和同步的工具软件

    Linux下文件备份和同步的工具软件 1)通过本次实训,熟悉软件项目配置管理相关内容; 2)熟悉shell编程 makefile的应用. 3)掌握文件IO.标准IO库的使用,掌握Linux下多进程.多 ...

  9. Linux下四款常见远程工具比较

    摘要:Linux远程可不像Windows下那么方便,主要是连接的速度.显示的画质不能令人满意(延迟.撕裂).本文只是说一下我用过的四款远程工具.Anydesk官网:https://anydesk.co ...

最新文章

  1. 串口服务器支持多台上位机,RS485多机通信一台上位机两台下位机问题,
  2. post from open live writer
  3. Linux 下安装matlab2014a
  4. 笔记-高项案例题-2009年上-需求管理
  5. 使用Boxfuse轻松在云中运行Spring Boot应用程序
  6. BPEL4WS基础知识
  7. 特征向量的辨析(数学,机器学习)
  8. iOS 使用UILocalizedIndexedCollation实现区域索引标题(Section Indexed Title)即拼音排序...
  9. RedisTemplate 常用方法、序列化方式、基于 Redis 实现分布式锁
  10. React 入门第一天(小案例和注意细节)
  11. Java Wbe 学习心得 day06
  12. 数值分析原理课程实验——四阶龙格-库塔(Runge-Kutta)方法
  13. 存储介质(sd卡,硬盘等)读写速度测试
  14. 【推荐】区块链技术及行业应用资料合集
  15. 在matlab中的polyval函数,Python/Numpy中三输出等价的Matlab polyval函数
  16. 新浪微博开放平台接口使用小结
  17. c语言 close,C++ close()关闭文件方法详解
  18. 安恒信息网络空间测绘解决方案:Sumap全球网络空间超级雷达
  19. DeepLab V1模型原理
  20. java学习之路8——Java集合框架

热门文章

  1. 各种正则判断(前端)
  2. Linux文件搜索命令find:根据文件名搜索、根据文件大小搜索、根据文件所有者(所属组)搜索、根据访问时间搜索、查找并显示文件、根据文件类型搜索、根据i节点搜索
  3. 题库——“计算机基础”
  4. 百度 阿里 腾讯 BAT笔试题目
  5. 三相永磁同步电机(PMSM) SVPWM矢量控制 MATLA 仿真算法
  6. 沁恒微电子CH9120是一款网络串口透传芯片
  7. 点云在任意平面上获取二维投影
  8. 【图像配准】基于matab SAR-SIFT改进的SAR图像配准【含Matlab源码 2336期】
  9. 一个文明延续时间的计算
  10. 《域名投资,从入门到建站》老顾域名投资和网站运营十年经验实战宝典 !