ffmpeg solves the audio and video separation problem downloaded from bilibili and synthesizes audio and video with one click

[1.ffmpeg installation]

1: Go to FFmpeg to download the installation package . I installed windows.

img

Download package file

img

2: Unzip the file to local

The following is a view of the decompressed file

img

3: Click into the first bin file, copy the directory, and install it into the local environment variable

imgimgimgimgimg

Then click OK to save the settings

4: ctrl+r to open the run, enter cmd to open the command window, enter ffmpeg -version to view the version

img

img

Successful installation

2.ffmpeg use

Copy the downloaded folder of station b and the two video and audio files (suffix m4a) in the folder to the following directory file

[External link image transfer failed. The source site may have an anti-leeching mechanism. It is recommended to save the image and upload it directly (img-Q78MkDIW-1681289496006) (C:\Users\Zheng Jincai\AppData\Roaming\Typora\typora-user-images\ 1664965606584.png)]

Then open the cmd window at the current location, enter the following command, press Enter to run, and you can synthesize the video and audio from the video downloaded from station b.

ffmpeg -i video.m4s -i audio.m4s -codec copy output file name.mp4

The effect is as follows

[The external link image transfer failed. The source site may have an anti-leeching mechanism. It is recommended to save the image and upload it directly (img-hTyixF0W-1681289496007) (C:\Users\Zheng Jincai\AppData\Roaming\Typora\typora-user-images\ 1664965753476.png)]

Guess you like

Origin blog.csdn.net/qq_44243059/article/details/130111399