#3545 linux系统部署版,无法上传音视频,python test显示报错

103.151* Posted at: 6 hours ago 👁9

[2026-03-10 18:51:41,716] ERROR in start: [api]error: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.
['-i', '/home/qzy/stt/static/tmp/yls.mp3', '-ar', '16000', '-ac', '1', '/home/qzy/stt/static/tmp/yls.mp3-1773140168.1545923.wav']

1 Replies

这是由于 FFmpeg 未正确安装或环境变量未配置导致的。Linux 源码部署版本依赖系统已安装的 FFmpeg,上述错误表明软件调用 FFmpeg 处理音频文件时失败。

解决方案:

  1. 安装 FFmpeg:在终端中运行以下命令安装 FFmpeg。

    sudo apt update
    sudo apt install ffmpeg
  2. 验证安装:安装后,在终端运行 ffmpeg -version,确认能正常输出版本信息。
  3. 重启软件:确保 FFmpeg 安装成功后,重启 pyVideoTrans 软件。

如果问题依旧,请检查:

  • 确保 FFmpeg 的安装路径已添加到系统的 PATH 环境变量中。
  • 检查软件是否有权限访问 /home/qzy/stt/static/tmp/ 目录并写入文件。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource