ffmpeg realizes converting video to .MP4

Link: https://pan.baidu.com/s/18ZGDGsyZzlPWhtCJyempYQ
Extraction code: nw4a

 
          After downloading the zip file, unzip it to a folder (recommended path is in English), then find the bin folder under the path, and put the video you want to convert into this folder

          Cmd into the command line, switch to your path, here are generally first enter the 盘符:enter the corresponding disk, and then cd 路径I show you with a moving map

Insert picture description here

          After entering the command line, enter the following command, change input to your file name, and output to the file name you want.

ffmpeg -i "input.flv" -c copy "output.mp4"

          For some flv files, an error will be reported when converting to mp4. At this time, you can use the following code. Remember to change filrename to your file name when using it.

ffmpeg -i filename.flv -c:v libx264 -crf 19 -strict experimental filename.mp4

         

Batch processing

          If you want to batch process, enter the following command

for %i in (*.flv) do ffmpeg -i "%i" -c copy "%~ni.mp4"

note

          I was flv format, so the command is inside the input .flvtime into its own format with the extension, .mp4is what I want to format, you can also change the format you want, such as.avi

          More command usage and parameters can be Baidu

Guess you like

Origin blog.csdn.net/qq_43657442/article/details/109169060