这是我试过的查询..不知道为什么它不起作用..
SELECT function_code,start_time,end_time,TIMEDIFF('end_time','start_time'),total_units FROM function
答案 0 :(得分:4)
试试这个
String[] command = {"-i", yourVideoPath, "-i", yourAudioPath, "-c:v", "copy", "-c:a", "aac", "-map", "0:v:0", "-map", "1:a:0", "-shortest", file.getAbsolutePath()}
这应该可行,因为您使用SELECT function_code,start_time,end_time,TIMEDIFF(end_time,start_time) ,total_units FROM function
和end_time
的单引号,start_time
函数将其视为时间而非列,因此您的输出未达到您的预期。