#4864 videotrans.util.help_ffmpeg._FFprobeInternalError: [mov,mp4,m4a,3gp,3g2,mj2 @ 000001c1c4120200] moov atom not found E:/p

129.128* Posted at: 9 hours ago

Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 265, in _run_ffprobe_internal
File "subprocess.py", line 526, in run
subprocess.CalledProcessError: Command '['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'default=noprint_wrappers=1:nokey=1', 'E:/pyvideotrans/tmp/93576/7082ea6975/novoice.mp4']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 113, in run
File "videotrans\task\trans_create.py", line 759, in align
File "videotrans\util\help_ffmpeg.py", line 446, in get_video_duration
File "videotrans\util\help_ffmpeg.py", line 435, in _get_ms_from_media
File "videotrans\util\help_ffmpeg.py", line 290, in runffprobe
File "videotrans\util\help_ffmpeg.py", line 282, in _run_ffprobe_internal
videotrans.util.help_ffmpeg._FFprobeInternalError: [mov,mp4,m4a,3gp,3g2,mj2 @ 000001c1c4120200] moov atom not found E:/pyvideotrans/tmp/93576/7082ea6975/novoice.mp4: Invalid data found when processing input


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:E:/pyvideotrans

1 Replies

该错误表示 ffmpeg 在处理临时视频文件 novoice.mp4 时发现该文件缺少必要的 moov atom 元数据头,即文件不完整或未正常写入,因此 ffprobe 无法读取时长。

核心原因:在音画对齐(align)阶段,程序尝试用 ffmpeg 从原始视频分离出无声视频流并生成 novoice.mp4,但该文件没有成功完成写入,导致后续步骤读取失败。

可能的原因与解决方案:

  1. 磁盘空间不足 — 临时文件写入时空间用尽。
    → 检查 E:/pyvideotrans/ 所在磁盘的剩余空间,确保至少有几 GB 可用。
    → 清理软件根目录下的 tmp 文件夹(可手动删除整个 tmp 文件夹,软件会自动重建)。
  2. 原视频文件损坏或编码异常 — 分离无声视频流时 ffmpeg 输出不完整。
    → 尝试用其他播放器(如 VLC)播放原视频,确认是否正常。
    → 将原视频用格式工厂等工具重新转码为 H.264/MP4 格式后再试。
  3. 路径或权限问题 — 临时文件路径被安全软件拦截,或写入权限不足。
    → 确保软件安装在非系统盘且路径无中文/空格(你目前路径 E:/pyvideotrans/ 符合要求,暂可排除)。
    → 暂时关闭杀毒软件/安全卫士,或将整个 E:/pyvideotrans 目录添加到白名单。
  4. 版本较旧 — 你使用的是 v3.99,最新版本为 v4.00,可能存在已修复的 bug。
    → 建议备份配置后,下载最新完整软件包 并覆盖安装。

操作步骤(按顺序尝试):

  1. 关闭软件,删除 E:/pyvideotrans/tmp/ 文件夹(确认里面无正在使用的临时文件)。
  2. 检查磁盘剩余空间,确保大于 5GB。
  3. 重新启动软件,不选“清理已生成”,再次处理同一个视频。
  4. 如果仍然报错,换一个简短命名的视频文件(如 test.mp4)测试,排除原视频本身的问题。
  5. 若问题依旧,升级到 v4.00 后再试。

请查阅相关文档:

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

Similar issues already exist