找到你要的答案

Q:creating a silent wav file with ffmpeg

Q:创建一个与FFmpeg沉默的WAV文件

i want to know how to create ffmpeg file that is silent for a certain length that is dependant on a variable called DIFF, this is what i got so far that doesn't seem to work

// creates a wav file for the lenth of the silence
File silence = new File(root + "silence.wav");
String lthacommand = "ffmpeg -filter_complex aevalsrc=0 -t " + diff
+ " " + silence.getAbsolutePath();
new ThreadControl().executeCommand(lthacommand);

我想知道如何创建ffmpeg文件,一定的长度,是一个变量称为比较依赖的是无声的,这是我到目前为止,似乎没有工作

// creates a wav file for the lenth of the silence
File silence = new File(root + "silence.wav");
String lthacommand = "ffmpeg -filter_complex aevalsrc=0 -t " + diff
+ " " + silence.getAbsolutePath();
new ThreadControl().executeCommand(lthacommand);
java  ffmpeg  wav