#2407 Input and output sizes should be greater than 0, but got input (W: 0) and output (W: 0)

219.78* Posted at: 7 hours ago 👁9

Input and output sizes should be greater than 0, but got input (W: 0) and output (W: 0)


=
system:Windows-10-10.0.26200-SP0
version:v3.91
frozen:True
language:zh
root_dir:D:/shipinfanyi/win-pyvideotrans-v3.91

1 Replies

这个错误通常发生在视频处理过程中,输入或输出的视频宽度为0,表明视频文件可能已损坏、编码异常或文件路径存在问题。

请按以下步骤排查:

  1. 检查视频文件本身

    • 尝试用其他播放器(如 VLC、PotPlayer)打开该视频,确认是否能正常播放。
    • 如果视频来自网络下载,请尝试重新下载或使用其他来源的视频。
  2. 简化文件路径和名称

    • 这是最常见的原因。将视频文件重命名为简短的英文或数字(例如 test.mp4)。
    • 将视频移动到磁盘根目录下的简单路径(例如 D:/test.mp4),然后重新拖入软件处理。
    • 绝对避免路径中包含中文、空格或特殊符号(如 #, &, [, ] 等)。
  3. 使用工具箱功能进行预处理

    • 在软件主界面,点击菜单栏的 “工具箱”
    • 选择 “音视频合并/分离” 功能。
    • 将你的视频文件拖入,尝试 “提取视频中的音频”“重新封装视频”,生成一个新的、格式标准的视频文件,再用这个新文件进行翻译。
  4. 检查FFmpeg

    • 确保软件目录下的 ffmpeg.exeffprobe.exe 文件完整且未被杀毒软件误删。
    • 可以尝试在命令提示符中手动使用 FFmpeg 检查视频信息:ffprobe -v error -show_format -show_streams "你的视频文件路径",查看视频流信息是否正常。

如果以上步骤均无法解决,请提供 D:/shipinfanyi/win-pyvideotrans-v3.91/logs/ 目录下的最新日志文件,以便进一步分析。

请查看更多参考文档:

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions