#1341 videotrans.util.help_ffmpeg._FFprobeInternalError: OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。

2408:8220* Posted at: 4 hours ago 👁15

预处理阶段出错:操作失败,请稍后重试('OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。',):
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 500, in _run_ffprobe_internal
File "subprocess.py", line 501, in run
File "subprocess.py", line 966, in init
File "subprocess.py", line 1435, in _execute_child
OSError: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。

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

Traceback (most recent call last):
File "videotrans\task\job.py", line 63, in run
File "videotrans\task\trans_create.py", line 204, in prepare
File "videotrans\util\help_ffmpeg.py", line 557, in get_video_info
File "videotrans\util\help_ffmpeg.py", line 530, in runffprobe
File "videotrans\util\help_ffmpeg.py", line 521, in _run_ffprobe_internal
videotrans.util.help_ffmpeg._FFprobeInternalError: OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。


=
system:Windows-10-10.0.19044-SP0
version:v3.83
frozen:True
language:zh
root_dir:D:/7-zip/win-videotrans-v3.83

3 Replies

这个错误是由于文件系统不稳定导致 ffprobe 无法正常读取视频文件。请按以下步骤解决:

  1. 检查文件路径:确保视频文件路径不包含特殊字符或空格,并且位于稳定的存储位置(避免使用网络驱动器或移动硬盘)。
  2. 关闭其他程序:关闭可能正在访问该视频文件的其他程序(如播放器、编辑器等)。
  3. 重新复制文件:将视频文件复制到一个新的本地目录(如 D:/videotrans/input/),然后重新尝试处理。
  4. 检查磁盘错误:如果问题持续出现,请运行磁盘检查工具:

    • 打开命令提示符(管理员)
    • 输入 chkdsk D: /f(将 D: 替换为实际驱动器号)
    • 按提示重启电脑完成检查
  5. 尝试其他视频文件:用其他视频文件测试,确认是否是特定文件损坏导致。

如果问题依旧,请提供完整的日志文件(位于 D:/7-zip/win-videotrans-v3.83/logs/ 目录下)。


Application started at 2025-11-06 10:39:31

2025-11-06 10:39:31,839 - INFO - 返回缓存的编解码器 Windows-264: libx264
self.proxy_str='http://127.0.0.1:7897'
2025-11-06 10:39:57,800 - INFO - 最终配置信息:self.cfg=TaskCfg(cache_folder='D:/7-zip/win-videotrans-v3.83/tmp16204/46b9e8c7ec', target_dir='E:/421/拍摄/11.2访谈/_video_out/音频', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='-', source_language_code='en', target_language_code=None, source_sub='E:/421/拍摄/11.2访谈/_video_out/音频/en.srt', target_sub='E:/421/拍摄/11.2访谈/_video_out/音频/None.srt', source_wav='D:/7-zip/win-videotrans-v3.83/tmp16204/46b9e8c7ec/en.wav', source_wav_output='E:/421/拍摄/11.2访谈/_video_out/音频/en.wav', target_wav='D:/7-zip/win-videotrans-v3.83/tmp16204/46b9e8c7ec/target.wav', target_wav_output='E:/421/拍摄/11.2访谈/_video_out/音频/None.wav', subtitles='', novoice_mp4='D:/7-zip/win-videotrans-v3.83/tmp16204/46b9e8c7ec/novoice.mp4', noextname='音频', shibie_aud
......
el_name='medium.en', split_type='all', voice_autorate=False, video_autorate=True, cuda=False, name='E:/421/videotrans/input/421.mp3', basename='421.mp3', ext='mp3', dirname='E:/421/videotrans/input', shound_del_name=None, uuid='246bf24038')
2025-11-06 10:45:44,171 - ERROR - OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 500, in _run_ffprobe_internal
File "subprocess.py", line 501, in run
File "subprocess.py", line 966, in init
File "subprocess.py", line 1435, in _execute_child
OSError: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。
2025-11-06 10:45:44,171 - ERROR - OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 500, in _run_ffprobe_internal
File "subprocess.py", line 501, in run
File "subprocess.py", line 966, in init
File "subprocess.py", line 1435, in _execute_child
OSError: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。
2025-11-06 10:45:45,301 - ERROR - OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 500, in _run_ffprobe_internal
File "subprocess.py", line 501, in run
File "subprocess.py", line 966, in init
File "subprocess.py", line 1435, in _execute_child
OSError: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。

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

Traceback (most recent call last):
File "videotrans\task\job.py", line 63, in run
File "videotrans\task\trans_create.py", line 204, in prepare
File "videotrans\util\help_ffmpeg.py", line 557, in get_video_info
File "videotrans\util\help_ffmpeg.py", line 530, in runffprobe
File "videotrans\util\help_ffmpeg.py", line 521, in _run_ffprobe_internal
videotrans.util.help_ffmpeg._FFprobeInternalError: OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。
2025-11-06 10:45:45,301 - ERROR - OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。
Traceback (most recent call last):
File "videotrans\util\help_ffmpeg.py", line 500, in _run_ffprobe_internal
File "subprocess.py", line 501, in run
File "subprocess.py", line 966, in init
File "subprocess.py", line 1435, in _execute_child
OSError: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。

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

Traceback (most recent call last):
File "videotrans\task\job.py", line 63, in run
File "videotrans\task\trans_create.py", line 204, in prepare
File "videotrans\util\help_ffmpeg.py", line 557, in get_video_info
File "videotrans\util\help_ffmpeg.py", line 530, in runffprobe
File "videotrans\util\help_ffmpeg.py", line 521, in _run_ffprobe_internal
videotrans.util.help_ffmpeg._FFprobeInternalError: OS error running ffprobe: [WinError 1006] 文件所在的卷已被外部更改,因此打开的文件不再有效。

从日志可以看出,问题出现在处理文件 E:/421/videotrans/input/421.mp3 时。这个错误表明文件系统不稳定导致 ffprobe 无法正常读取音频文件。请按以下步骤解决:

  1. 检查文件完整性:确认 421.mp3 文件没有损坏,可以尝试用其他播放器打开测试。
  2. 关闭文件占用程序:确保没有其他程序正在访问该 MP3 文件(如音乐播放器、编辑器等)。
  3. 移动文件到稳定位置

    • 421.mp3 文件从 E:/421/videotrans/input/ 复制到软件根目录下的 tmp 文件夹:D:/7-zip/win-videotrans-v3.83/tmp/
    • 然后重新选择这个新位置的文件进行处理
  4. 检查E盘状态

    • E盘可能是移动硬盘、网络驱动器或存在问题的存储设备
    • 建议将文件复制到本地硬盘(如D盘)进行处理
  5. 运行磁盘检查

    • 打开命令提示符(管理员)
    • 输入 chkdsk E: /f 检查E盘错误
    • 按提示重启电脑完成检查

如果问题持续出现,请尝试使用其他音频文件测试,以确定是特定文件问题还是系统环境问题。

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