「Linux」- 爬取网站视频、合并 TS 文件

  CREATED BY JENKINSBOT

解决方案

下载 TS 文件:-)

安装 ffmpeg 命令

How to Install and Use FFmpeg on CentOS 7 | Linuxize

yum install epel-release
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
yum install ffmpeg ffmpeg-devel

合并 TS 文件并解码

command line – Use ffmpeg copy codec to combine *.ts files into a single mp4 – Super User

cat $(ls -w 1 | sort --version-sort ) >> all.ts
ffmpeg -i all.ts -acodec copy -vcodec copy all.mp4