一条windows指令合并ts文件

一条windows指令合并ts文件

当我们下载了许多ts文件片段,需要合并为一个文件时,一般可以通过第三方工具来完成。但今天给大家介绍一条命令,不借助任何第三方工具,仅通过一条指令也可对ts文件进行合并。

copy /b  *.ts movie_new.ts
Tools
windows命令行
操作方法/步骤
1.将下载好的ts文件放到一个文件夹中,并确保ts文件已按顺序进行命名,如“a1.ts,a2.ts,a3.ts”、“1.ts,2.ts,3.ts”,其中“1a,1b,1c”这样的命名也行,但要注意字母大小写要保持一致。这里需要的注意的是,如果文件超过10个,命名时建议在序号前加零,确保文件名长度一致,如“01.ts,02.ts,03.ts,04.ts,05.ts,06.ts,07.ts,08.ts,09.ts,10.ts,11.ts”,否则可能会按照“1.ts->10.ts->2.ts”顺序进行合并。
————————————————

一条windows指令合并ts文件

2.在ts所在文件夹中新建文本文件,输入“copy /b *.ts movie_new.ts”,其中“movie_new”可以随意更改(代表合并后的文件名称),并修改文件后缀为“.bat”。

命令解释: copy后面的 /b 参数表示把文件按二进制格式来合并,如果不加这个参数,会把目标当做文本文件来合并,并在文件内添加不必要的标记,导致播放出错。

一条windows指令合并ts文件

3.双击“.bat”文件,执行合并操作。短暂等待后,会在文件夹中出现一个名为“movie_new.ts”的文件,这个就是合并后的文件了。

一条windows指令合并ts文件

一条windows指令合并ts文件
Collect (0) Tip

Thank you for your support, I will continue to work hard!

Scan with WeChat/Alipay to make a reward by scanning the code. Sharing starts here, and the excitement is with you.
Like0)

This site's permanent URL:https://www.dadong777.com
Some content on this website may be sourced from the internet for learning and reference purposes. If there is any infringement, please contact the webmaster for removal.
3. All resources on this site do not represent the site's position, nor do they represent the site's agreement with their views or responsibility for their authenticity.
4. This site strictly prohibits the posting or reprinting of any illegal information in any form. Visitors who discover such content should report it to the site administrator.
5. Most of the resources on this site are stored in cloud drives. If you find a broken link, please contact us, and we will update it as soon as possible.

Frequently Asked Questions
  • All resource copyrights on this site belong to the original author. The resources provided here are for reference and learning purposes only and should not be used for direct commercial purposes. If commercial use leads to copyright disputes, all responsibility shall be borne by the user.
View details
  • After payment, the download address did not appear. Please wait 5 seconds before refreshing the page. Source code is a virtual product, which is replicable and disseminable. Once obtained, refunds or exchanges are not supported. Please confirm your needs before purchasing.
View details

Related articles

Post a comment
No comments yet