#5351 合并阶段出错 最后一步字幕配音嵌入时出错opening input: Invalid data found when processing input opening input file novoice.mp4. opening inpu

2409:8a55* Posted at: 2 days ago

合并阶段出错 最后一步字幕配音嵌入时出错opening input: Invalid data found when processing input opening input file novoice.mp4. opening input files: Invalid data found when processing input
Traceback (most recent call last):

File "videotrans\task\trans_create.py", line 1584, in _subprocess

File "subprocess.py", line 526, in run

subprocess.CalledProcessError: Command '['ffmpeg', '-nostdin', '-y', '-progress', 'compose1782049821.9832356.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-filter_complex', "[0:v]subtitles=filename='shuang.ass'[v_out]", '-map', '[v_out]', '-map', '1:a', '-c:v', 'h264_nvenc', '-c:a', 'copy', '-cq', '23', '-preset', 'p4', '-movflags', '+faststart', '-t', '0.000000', 'laste_target.mp4']' returned non-zero exit status 3199971767.

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

Traceback (most recent call last):

File "videotrans\task\trans_create.py", line 1402, in _join_video_audio_srt

File "videotrans\task\trans_create.py",
......
reads', '0', '-y', '-progress', 'compose1782049821.9832356.txt', '-i', 'novoice.mp4', '-i', 'will_embed.m4a', '-filter_complex', "[0:v]subtitles=filename='shuang.ass'[v_out]", '-map', '[v_out]', '-map', '1:a', '-c:v', 'libx264', '-c:a', 'copy', '-crf', '23', '-preset', 'medium', '-movflags', '+faststart', '-t', '0.000000', 'laste_target.mp4']' returned non-zero exit status 3199971767.

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

Traceback (most recent call last):

File "videotrans\task\trans_create.py", line 1406, in _join_video_audio_srt

File "videotrans\util\help_ffmpeg.py", line 88, in runffmpeg

videotrans.configure.excepts.FFmpegError: opening input: Invalid data found when processing input opening input file novoice.mp4. opening input files: Invalid data found when processing input

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

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 195, in process_task

File "videotrans\task\trans_create.py", line 709, in assembling

File "videotrans\task\trans_create.py", line 1409, in _join_video_audio_srt

videotrans.configure.excepts.VideoTransError: 最后一步字幕配音嵌入时出错opening input: Invalid data found when processing input opening input file novoice.mp4. opening input files: Invalid data found when processing input
TaskCfgVTT(uuid='2e4f0b38c0', name='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/video/5 - More Advanced Concepts/21. Persistence (Saving And Loading Data Permanentny).mp4', dirname='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/video/5 - More Advanced Concepts', noextname='21. Persistence (Saving And Loading Data Permanentny)', basename='21. Persistence (Saving And Loading Data Permanentny).mp4', ext='mp4', target_dir='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/_video_out/video/21. Persistence (Saving And Loading Data Permanentny)-mp4', cache_folder='D:/win-pyvideotrans-v4.01-0602/tmp/34548/2e4f0b38c0', is_cuda=True, source_language='英语', source_language_code='en', source_sub='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/_video_out/video/21. Persistence (Saving And Loading Data Permanentny)-mp4/en.srt', source_wav='D:/win-pyvideotrans-v4.01-0602/tmp/34548/2e4f0b38c0/en.wav', source_wav_output='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/_video_out/video/21. Persistence (Saving And Loading Data Permanentny)-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/_video_out/video/21. Persistence (Saving And Loading Data Permanentny)-mp4/zh-cn.srt', target_wav='D:/win-pyvideotrans-v4.01-0602/tmp/34548/2e4f0b38c0/target.wav', target_wav_output='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/_video_out/video/21. Persistence (Saving And Loading Data Permanentny)-mp4/zh-cn.m4a', translate_type=4, tts_type=9, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=1, fix_punc=True, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='E:/0DayDown/教程_Tutorials/Unreal/Verse Bootcamp UEFN Academy/_video_out/video/21. Persistence (Saving And Loading Data Permanentny)-mp4/21. Persistence (Saving And Loading Data Permanentny).mp4', novoice_mp4='D:/win-pyvideotrans-v4.01-0602/tmp/34548/2e4f0b38c0/novoice.mp4', is_separate=False, embed_bgm=False, instrument=None, vocal='D:/win-pyvideotrans-v4.01-0602/tmp/34548/2e4f0b38c0/vocal.wav', clear_cache=False, background_music='', subtitle_type=3, only_out_mp4=False, recogn2pass=False, output_srt=2, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)

1 Replies

novoice.mp4 文件在读取时报错 moov atom not found,说明该 MP4 文件已损坏或未完整写入。根本原因是输入视频路径过长且包含中文字符、空格和特殊符号(如点、括号),触发了 Windows 系统的 260 字符路径限制,导致 FFmpeg 在预处理阶段写入临时文件时出错。

解决方法:

  1. 精简路径和文件名:将原始视频移到磁盘根目录下的短路径中(例如 D:\video\),并将文件名改为纯英文字母和数字(例如 test.mp4)。

    • 错误路径示例:E:/0DayDown/教程_Tutorials/.../21. Persistence (Saving And Loading Data Permanentny).mp4
    • 正确路径示例:D:\video\test.mp4
  2. 清理临时缓存:删除软件根目录下 tmp/ 文件夹中的所有文件,防止旧缓存干扰。
  3. 确保磁盘剩余空间充足(至少保留 20GB 以上),然后重新运行任务。
如果问题仍存在,请提供 logs/ 目录下最新的日志文件(约 30 行报错内容),以便进一步分析。

请查阅相关文档:

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