Lossless merging of batches of videos (supporting different resolutions) (nodejs + ffmpeg will not matter, just copy a few lines of code) (windows)

Are you still using the paid software provided by unscrupulous merchants to synthesize videos? The free ones are either slow, stuck, or unusable. (We just wanted to merge a little video, what's wrong) It's ok, you saw it

就算你不会nodejs,就算你不会也没关系,直接复制几句代码

  1. Environment preparation (don't be too troublesome, the video is merged, just hehe)
 1.安装 node,百度就行简单得很
 还是放个链接链接: http://nodejs.cn/download/
 直接安装,配置别改,直接点确定
 2. 安装ffmpeg 官网链接下不了了,下载地址好像改了,
 我上传一个百度云(永久有效)
 https://pan.baidu.com/s/17W77YkZ4wGiODgw4_neZJw
 提取码6666
  1. The installation steps of ffmpeg
    First download the above Baidu network disk file to decompress, there is no decompression code,
    directly throw the decompressed file on the d drive
    insert image description here
    , enter the bin folder, click the file path, insert image description here
    copy the path
    , and then (set the environment variable) right click on My Computer>Properties>Advanced System Settings>Environment Variables>System VariablesDouble-click the path and save the just copied, then
    insert image description here
    click
    insert image description here
    OK to save the set environment variables

环境就准备好了,下面就简单了(最好重启一下,有些电脑配置了环境变量要重启才会生效)

Check whether node and ffmpeg are installed well.
Open cmd or powershell
and enter node -v and ffmpeg in turn, and
the following picture will appear (if the node version is wrong, it will not affect it!!!)
insert image description here

进入正题

Continue to download Baidu Netdisk
link: https://pan.baidu.com/s/1zhHd4gQuD3-ym5jSxPHUBw
Extraction code: 6666
Decompression video.7z, still no decompression code, just decompress it directly
Get it insert image description here
and then use the tutorial ah ah ah

在file文件夹中放入你要合并的小电影 mp4格式的(如果直接是ts格式,滴我一下,只需要修改一下app.js)
ps:文件名不要带中文!!!!!!!!!!
然后退到解压的video路径,shift + 鼠标右键 选择在此处打开powershell,输入node app

If your multiple small video formats have a lot of Chinese and irregular naming, I also provide a quick modification method.
Click me to check: One-click to change multiple file names

insert image description here
Press Enter
insert image description here
and you can see that there is one more merge.mp4 under the video file

恭喜修成正果

What do you agree with? As long as you have a conscience, if it is a good thing, add me to the network disk and share it with me

Guess you like

Origin blog.csdn.net/weixin_44441196/article/details/116268175#comments_25062009