moyada / stealer

抖音、快手、火山、皮皮虾,视频去水印程序
MIT License
973 stars 274 forks source link

docker是不是没有打包ffmpeg? #106

Closed Mr-brillianter closed 6 months ago

Mr-brillianter commented 9 months ago

我下了ffmpeg以及ffmpeg-python,拉取docker后运行甚至会报错,docker run 命令写错了,应该是docker run -d -p 8000:8000 xueyikang/stealer 下面是错误信息

Exception Type: | FileNotFoundError -- | -- [Errno 2] No such file or directory: 'ffmpeg' /usr/local/lib/python3.8/subprocess.py, line 1720, in _execute_child route.controller.download_file /usr/local/bin/python 3.8.18 ['/code', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages'] Sun, 19 Nov 2023 10:59:19 +0800

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.

Exception Type: FileNotFoundError Exception Value: [Errno 2] No such file or directory: 'ffmpeg' Exception Location: /usr/local/lib/python3.8/subprocess.py, line 1720, in _execute_child Raised during: route.controller.download_file Python Executable: /usr/local/bin/python Python Version: 3.8.18 Python Path: ['/code', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages'] Server time: Sun, 19 Nov 2023 10:59:19 +0800 Traceback [Switch to copy-and-paste view](http://127.0.0.1:8000/video/download?token=bilibili15eadc1e24b85bad1a7302f17c361f7e#) /usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py, line 55, in inner response = get_response(request) … Local vars /usr/local/lib/python3.8/site-packages/django/core/handlers/base.py, line 197, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) … Local vars /code/route/controller.py, line 59, in download_file return vid_download.download(info) … Local vars /code/core/vid_download.py, line 26, in download service.complex_download(info) … Local vars /code/service/bilibili.py, line 218, in complex_download tools.ffmpeg.concat(vfile, afile, output) … Local vars /code/tools/ffmpeg.py, line 7, in concat ffmpeg.output(input_video.video, input_audio.audio, output_path).run(overwrite_output=True, capture_stdout=True) … Local vars /usr/local/lib/python3.8/site-packages/ffmpeg/_run.py, line 313, in run process = run_async( … Local vars /usr/local/lib/python3.8/site-packages/ffmpeg/_run.py, line 284, in run_async return subprocess.Popen( … Local vars /usr/local/lib/python3.8/subprocess.py, line 858, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, … Local vars /usr/local/lib/python3.8/subprocess.py, line 1720, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) … Local vars