Single conversion
command
ffmpeg -i {input file} {output file}
Example
Mp4 to MP3
ffmpeg -i foo.mp4 foobar.mp3
flv 转 mp3
ffmpeg -i foo.flv foobar.mp3
mp4 transfer wav
ffmpeg -i foo.mp4 foobar.wav
wav transfer mp3
ffmpeg -i foo.wav foobar.mp3
Batch conversion
For example, there are *. MP4
files under the folder. To batch convert them to XX. MP3
files, you can use the following methods
for i in ./*.mp4
do
ffmpeg -i $i ${i}.mp3
done
For another example, all files under the folder should be converted into XX. MP3
files in batch. You can use the following methods
for i in ./*
do
ffmpeg -i $i ${i}.mp3
done
Connect two videos
ffmpeg -i "concat:1.ts|2.ts" -acodec copy -vcodec copy -absf aac_adtstoasc output.mp4
Multiple audio merging
ffmpeg.exe -i "concat:1.mp3|2.mp3" -acodec copy output.mp3
Read More:
- Convert Tencent video QLV format to MP4 format
- Converting H264 bit stream to. MP4 format by ffmpeg
- Extract audio from ffmpeg video to mp3 format or m4a format command
- Conversion of audio file format with ffmpeg command
- A method of generating subtitle file for MP3
- How to use C # to get image format without system. Drawing. Common
- How to convert audio to subtitle (text) with Python?
- How to Solve MacOS ffmpeg killed Error
- Xcode ffmpeg Error:/clang:1:1: linker command failed with exit code 1 (use -v to see invocation)
- How to Fix Spring Boot OTS parsing error: Failed to convert WOFF 2.0
- How to convert iconfont to PNG transparent image
- Tensorflow: How to use expand_Dim() to add dimensions
- How to use vimdiff to solve conflict?
- Tensorflow ValueError: Failed to convert a NumPy array to a Tensor
- C#: How to Use Httpclient to upload files with other parameters
- How to Use Truffle to Deploy contracts on moonbeam
- How to use Latex to Write Matrices
- How to use matlab to solve equation
- How to use torch.sum()
- How to Solve failed Precondition Error: attempting to use uninitialized value beta1_power