-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望作者可以添加大于16倍速加速播放支持 #115
Comments
另外附上我写的一个全自动合并和重命名python脚本,可以把大量的 mp4视频和mp4音频文件合并为一个mp4文件并自动重命名,用来下载51cto上购买的课程很方便
import os
directory = './input/'
output_directory = './mp4输出/'
audio_string = '(1)'
files = os.listdir(directory)
for filename in files:
if audio_string in filename:
video_filename = filename
print(f'发现视频文件==> {video_filename}')
audio_filename = video_filename.replace(' (1)','')
if os.path.exists(directory + audio_filename):
print(f'发现音频文件==> {audio_filename}')
print("开始转换音频文件为aac格式")
audio_command = "ffmpeg -i \"" + str(directory) + str(audio_filename) + "\" -c:a copy \"" + str(directory) + "output.aac\""
os.system(audio_command)
os.remove(str(directory) + str(audio_filename))
print("开始合并音频和视频文件")
video_command = "ffmpeg -i \"" + str(directory) + str(video_filename) + "\" -i \"" + str(directory) + "output.aac\" -c copy \"" + str(output_directory) + "output.mp4\""
os.system(video_command)
os.remove(str(directory) + str(video_filename))
os.remove(str(directory) + "output.aac")
output_mp4_name = audio_filename.split('-',1)[0]
oldname = str(output_directory) + "output.mp4"
newname = str(output_directory) + str(output_mp4_name) + ".mp4"
os.rename(oldname, newname)
print("===============================")
print("所有可以合并的视频都合并完成了,如果有剩下的视频就说明该视频是缺少视频或音频文件的") |
佬,在电脑上怎么运行脚本啊 |
....先学习一下python,然后看懂代码,你就会了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
默认的10倍速太慢了,如果用来下载视频的话希望可以添加32/60倍速播放速度的支持,默认edge最大只能到16倍速,
希望作者可以支持一下,不要不识抬举 (〃 ̄︶ ̄)人( ̄︶ ̄〃)
The text was updated successfully, but these errors were encountered: