GithubHelp home page GithubHelp logo

lecepin / tss-merge-to-mkv Goto Github PK

View Code? Open in Web Editor NEW
204.0 5.0 38.0 39.39 MB

ts文件合并工具,同时支持其他视频格式转换为mkv/ts/mp4

JavaScript 96.46% HTML 2.23% Less 1.22% Procfile 0.09%
electron ffmpeg mp4-converter ts m3u8

tss-merge-to-mkv's Introduction

TS 视频合并工具

在线免安装版本:https://github.com/lecepin/web-tss-merge2mkv

当下载 m3u8 资源时,通常产生的是多个 ts 视频文件,所以需要借助某些工具来将这些 ts 视频片段整合为一个视频文件。

本软件主要解决的就是这个问题,底层基于ffmpeg,可正常运行在 Windows 和 Mac 平台。不仅可以合并 ts 为单个通用的视频文件,还支持视频格式转换。

下载

目前支持 win-x64 & mac-x64:地址

ts文件合并工具,同时支持其他视频格式转换原理mkv/ts/mp4

软件界面

主界面:

转换成功:

支持拖动添加文件:

支持的合并的格式:

其他

国内环境构建,可以配置如下环境变量:

echo ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/\\nELECTRON_BUILDER_BINARIES_MIRROR=https://npm.taobao.org/mirrors/electron-builder-binaries/ >> ~/.npmrc

OR:

npm config set ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/
npm config set ELECTRON_BUILDER_BINARIES_MIRROR=https://npm.taobao.org/mirrors/electron-builder-binaries/

⚠ 文件数量过多的解决方法

如果合并的文件数量过多,成千上万上,会导致软件内的命令无法正常执行,可以使用以下脚本在终端中执行。

ls -l | sort -V -k 9,9 | awk '/^-/{print "file \"" $9 "\""}' | sed "s/\"/'/g" | grep -v "file_list.txt"  > file_list.txt

ffmpeg -f concat -i file_list.txt -c copy output.mp4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.