#4671 videotrans.util.help_ffmpeg._FFprobeInternalError: [mov,mp4,m4a,3gp,3g2,mj2 @ 000001cd6304e600] moov atom not found F:/P

36.143* Posted at: 20 days 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', 'F:/PyVideoTrans/tmp/11948/7635ef1ca4/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 119, in run
File "videotrans\task\trans_create.py", line 770, 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 @ 000001cd6304e600] moov atom not found F:/PyVideoTrans/tmp/11948/7635ef1ca4/novoice.mp4: Invalid data found when processing input


=
system:Windows-10-10.0.19043-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/PyVideoTrans

3 Replies

这是由于ffmpeg分离音视频时生成的无声视频文件(novoice.mp4)不完整,导致ffprobe读取失败(moov atom not found)。常见原因包括原始视频损坏、磁盘空间不足、路径过长或杀毒软件拦截。

解决方案:

  1. 检查原始视频文件是否能正常播放,确保未损坏。
  2. 检查磁盘剩余空间是否充足(至少大于视频大小两倍)。
  3. 将原始视频文件移动到简短的英文路径(例如 D:\test\video.mp4),并重命名为简短英文名(避免中文、空格、特殊符号)。
  4. 在软件主界面左上角勾选“清理已生成”,清除之前失败的缓存文件,然后重新开始任务。
  5. 暂时关闭杀毒软件或添加pyVideoTrans目录至白名单,再试一次。
  6. 若仍失败,可在命令行手动测试ffmpeg分离:ffmpeg -i "你的视频路径" -an -c copy novoice.mp4,看是否报错。

请查阅相关文档:

我发现有些时候,字幕两行可以放下,为什么非要调整为3行呢?

这是由软件中字幕单行最大字符数设置导致的。软件会根据你设定的“中日韩单行字符”或“其他语言单行字符”限制自动换行。如果设置的数值偏小(例如默认30),而你的视频宽度足够容纳更多字符,就可能把原本两行能显示的字幕拆成三行。

解决方法

  1. 在主界面点击 “设置更多参数”
  2. 找到 “中日韩单行字符”“其他语言单行字符”(根据你的字幕语言)。
  3. 增大该数值(例如从30改为50或更大),直到字幕在两行内能完整显示。

同时,你也可以在菜单 → 工具/选项 → 高级选项 → 字幕声音画面对齐 中找到这两个参数,修改后立即生效(无需重启软件)。

无需参考文档,直接调整参数即可。

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist