python - FileNotFoundError/系统找不到指定的文件
问题描述
第 1307 行
# Start the process
try:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
# no special security
None, None,
int(not close_fds),
creationflags,
env,
cwd,
startupinfo)
File "C:\Users\asus\anaconda3\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Sistem belirtilen dosyayı bulamıyor
input_string = input("Enter the input string :")
f_name=input("enter the name of video")
frame_extraction(f_name)
call(["ffmpeg", "-i",f_name, "-q:a", "0", "-map", "a", "tmp/audio.mp3", "-y"],stdout=open(os.devnull, "w"), stderr=STDOUT)
encode_string(input_string)
call(["ffmpeg", "-i", "tmp/%d.png" , "-vcodec", "png", "tmp/video.mov", "-y"],stdout=open(os.devnull, "w"), stderr=STDOUT)
call(["ffmpeg", "-i", "tmp/video.mov", "-i", "tmp/audio.mp3", "-codec", "copy", "video.mov", "-y"],stdout=open(os.devnull, "w"), stderr=STDOUT)
clean_tmp()
解决方案
推荐阅读
- oracle - 运行 DBMS 计划作业时,我是哪个 Windows 用户?
- c++ - 如何删除排序向量中的重复项
- node.js - 使用 JWT (react + nodejs) 处理 Google OAuth
- javascript - jquery html注入后事件没有反应
- pytorch - 如何在pytorch中计算马氏距离?
- java - 按尾长和字母顺序排序列表
- java - Java享元设计模式:空地图测试用例前/后执行失败
- next.js - 无服务器与自定义服务器 Next.js
- algorithm - 对数千张 Chuck E. Cheese 门票进行排序
- json - 有没有办法在 Python 中使用 pandas(或其他库)提取数据帧的一部分?