我似乎无法弄清楚如何在45秒的时间内提取音频30秒,并且淡入和淡出2秒。这就是我所拥有的,但我无法让它发挥作用。
ffmpeg -y -i $ORIGINAL -ab 64 $STREAM
ffmpeg -y -i $STREAM -ss 00:00:45 -t 00:00:30 $CLIP
ffmpeg -y -i $CLIP -af "afade=t=in:ss=0:d=2,afade=t=out:st=28:d=2" $CLIP
($ STREAM文件应该与$ CLIP文件不同)
我最终得到的是一个2秒的剪辑。
非常感谢帮助。
答案 0 :(得分:3)
如果您的第三个命令表明输出文件与您的输入文件相同,那么您的问题就出现了。 FFmpeg不进行就地编辑。输出文件必须不同。
无论如何,你可以一气呵成,避免世代损失
import time
print ("Hello!")
time.sleep(1)
print ("Welcome to the Username and Password python test!")
time.sleep(3)
Username = input ("Please enter your desired Username ")
time.sleep(1)
print ("Your username is "+ Username)
time.sleep(1)
Q1 = input ("Is this correct? 'Y' or 'N' ")
if Q1 == "N":
Q2 = input ("Would you like to change it? ")
if Q2 == "Y": Username = input ("Please re enter your Username ")
print ("Your Username is now "+ Username)
time.sleep(2)
print ("You cannot change your Username now")
time.sleep(2)
if Q1 == "Y": time.sleep(1)
Password = input ("Please input your Password ")
time.sleep(3)
Q3 = input ("Please enter your Username ")
if Q3 == Username:
time.sleep(1)
Q4 = input ("Please now input your Password ")
time.sleep(1)
if Q4 == Password:
print ("Correct")
time.sleep(2)
print ("Thank you for using the Username and Password python test")
else:
print ("Incorrect Password")
else:
print ("Username not found")