温馨提示:网站使用自适应技术,手机与电脑显示界面不同,电脑界面显示效果更佳。

做了个小站,积累一些技术,分享一些原创
    体会生活,记录一些小随笔,闲说心得

文件批处理合并命令(无损合并视频ts等)

原创:张荣国

今天有个朋友,告诉我他在某视频网站好不容易探到地址,下了一个m3u8文件,下载了里面几段ts视频,问我有没有什么软件,在无损的情况下合并成完整的一个文件。

我一想,就告诉他根本不用软件,可以用dos时代的copy命令就可以了。

进入命令提示符(也就是ms-dos),然后用dos命令打开你的视频文件目录,直接用命令:

copy /b 1.ts+2.ts+3.ts \new.ts

这样的命令合并就行了,上面的意思,就是将目录里的:1.ts还有2.ts,加上3.ts,合并成新文件名为new.ts,当然,以上名称只是举例,自己按实际改喜欢的名。这样合并出来的视频文件是无损的。因为不涉及重新编码等,完全就是文件相加,比起一些合并软件重新编码等,完美太多了。简单好用。

copy 就是复制的意思

/b 这个参数表示把文件按二进制格式来合并,如果不加这个参数,则会把目标当成文本文件来合并,并在文件内添加不必要的标记,对于视频来说这会导致播放出错,所以如果是视频必须加 /b 参数

当然,对于一个目录里有几十个,或几百个文件的来说,这样手工打,那可就累死了,所以,我们也可以用批处理命令来,一条短命令就搞定:

隐藏内容,回复可见(无需登录注册)    “回复本文”后“刷新页面”查看隐藏内容!

点击数:4721

你可能也喜欢下面相关文章:

32 讨论

  1. gmailVes说道:

    Echoes of those debates ripple outward from pools to weight lifting rooms and tracks, to cycling courses and rugby pitches, and to the Olympics, where officials face a fateful decision on how wide to open the door to transgender women.

    Sebastian Coe, the Olympic champion runner and head of World Athletics, which governs international track, speaks of biological difference as inescapable. “Gender,” he said recently, “cannot trump biology.”

    The American Civil Liberties Union offers a counterpoint. “It’s not a women’s sport if it doesn’t include ALL women athletes,” the group tweeted. “Lia Thomas belongs on the Penn swimming and diving team.”

    The rancor stifles dialogue. At meets, Ms. Thomas has been met by stony silence and muffled boos. College female athletes who speak of frustration and competitive disadvantage are labeled by some trans activists as transphobes and bigots, and are reluctant to talk for fear of being attacked.

    Dr Lucia Schroeter Gmail com

  2. gmailVes说道:

    Echoes of those debates ripple outward from pools to weight lifting rooms and tracks, to cycling courses and rugby pitches, and to the Olympics, where officials face a fateful decision on how wide to open the door to transgender women.

    Sebastian Coe, the Olympic champion runner and head of World Athletics, which governs international track, speaks of biological difference as inescapable. “Gender,” he said recently, “cannot trump biology.”

    The American Civil Liberties Union offers a counterpoint. “It’s not a women’s sport if it doesn’t include ALL women athletes,” the group tweeted. “Lia Thomas belongs on the Penn swimming and diving team.”

    The rancor stifles dialogue. At meets, Ms. Thomas has been met by stony silence and muffled boos. College female athletes who speak of frustration and competitive disadvantage are labeled by some trans activists as transphobes and bigots, and are reluctant to talk for fear of being attacked.

    Dr Lucia Schroeter Gmail com

  3. hydraHix说道:

    Hydra Real Estate GmbH Airbnb
    Hydra Real Estate GmbH Airbnb
    Hydra Real Estate GmbH Airbnb

  4. hydrasok说道:

    Hydra Real Estate GmbH
    Hydra Real Estate GmbH
    Hydra real Estate GmbH
    Hydra Real Estate GmbH

  5. markusWed说道:

    Markus Abwerzger
    Rechtsanwalt
    Innsbruck
    Markus Abwerzger
    Rechtsanwalt
    Innsbruck

  6. radicjails说道:

    Hydra Real Estate GmbH Innsbruck
    Alexander Radic
    Hdra Real Estate GmbH Innsbruck Tirol
    Alexander Radic
    Airbnb

  7. XRumerTest说道:

    Hello. And Bye.

  8. divalentinotit说道:

    office divalentino.at office divalentino.at
    office divalentino.at office divalentino.at
    office divalentino.at office divalentino.at
    office divalentino.at office divalentino.at

  9. 123说道:

    阿萨

  10. zzzzzzzzzzz说道:

    zzzzzzzzzzzzzzzz

  11. 666666666说道:

    6666666666666666

  12. 666666666说道:

    6666666666

  13. 123说道:

    666666666

  14. 说道:

    期待

  15. 2222说道:

    2222

  16. 爱幽幽说道:

    学习学习,期待. 原文出自[张荣国] 转载请保留原文链接: https://zhangrongguo.com/archives/1435#respond

  17. 2238说道:

    谢谢

  18. 脚印依然那么深说道:

    谢谢

  19. kk说道:

    -00000

  20. 544361056说道:

    谢谢在找这方面的东西

  21. delta 8 gummies in texas说道:

    Have you ever considered publishing an e-book or guest authoring on other sites?

    I have a blog based upon on the same subjects you discuss and would
    really like to have you share some stories/information. I know my subscribers would enjoy your work.

    If you’re even remotely interested, feel free
    to shoot me an e mail.

  22. delta 8 disposable vape not charging说道:

    Hello there! This article couldn’t be written any better!
    Looking through this article reminds me of my previous roommate!
    He always kept preaching about this. I most certainly will send this article to him.

    Pretty sure he will have a good read. I appreciate you for sharing!

  23. 明禅说道:

    看看什么情况

  24. QHGhcdfJjCs说道:

    ZafTBWNLdvKOlmS

  25. buy instagram followers说道:

    I was curious if you ever considered changing the layout of your blog?

    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could
    connect with it better. Youve got an awful lot of text for only having 1 or two pictures.

    Maybe you could space it out better?

  26. 007说道:

    啥意思

  27. 007说道:

    回复了没有显示隐藏内容呢?

    • 张荣国说道:

      回复时,有勾选在浏览器保存,才会看到的。回复后应该是可看到的,直接和上文对接的,你可能没注意看

  28. 007说道:

    学习学习,期待

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注