1. 程式人生 > >ffmpeg混音命令

ffmpeg混音命令

ffmpeg -i INPUT1 -i INPUT2 -i INPUT3 -filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT
inputs
The number of inputs. If unspecified, it defaults to 2.//輸入的數量,如果沒有指明,預設為2.
 
duration
How to determine the end-of-stream.//決定了流的結束
 
			longest
			The duration of the longest input. (default)//最長輸入的持續時間
			shortest
			The duration of the shortest input.//最短輸入的持續時間
			first
			The duration of the first input.//第一個輸入的持續時間
 
dropout_transition
The transition time, in seconds, for volume renormalization when an input stream ends. The default value is 2 seconds.
//指一個輸入流結束時音量從正常到無聲漸止效果,預設為2秒