#8541 [vost#0:0/copy @ 000002351b88d140] Non-monotonic DTS; previous: 93639782, current: 93639782; changing to 93639783. This

2409**d395 Posted at: 2 hours ago

[vost#0:0/copy @ 000002351b88d140] Non-monotonic DTS; previous: 93639782, current: 93639782; changing to 93639783. This may result in incorrect timestamps in the output file. [mov,mp4,m4a,3gp,3g2,mj2 @ 000002351c35fcc0] Auto-inserting h264_mp4toannexb bitstream filter [vost#0:0/copy @ 000002351b88d140] Non-monotonic DTS; previous: 93714534, current: 93714534; changing to 93714535. This may result in incorrect timestamps in the output file. frame=366101 fps=531 q=-1.0 size=25963520KiB time=01:41:41.90 bitrate=34856.8kbits/s speed=8.86x [mov,mp4,m4a,3gp,3g2,mj2 @ 000002351c360a80] Auto-inserting h264_mp4toannexb bitstream filter frame=366443 fps=531 q=-1.0 size=25979648KiB time=01:41:47.60 bitrate=34845.9kbits/s speed=8.86x frame=366576 fps=531 q=-1.0 size=25986560KiB time=01:41:49.82 bitrate=34842.6kbits/s speed=8.85x [mov,mp4,m4a,3gp,3g2,mj2 @ 000002351c35ff80] Auto-inserting h264_mp4toannexb bitstream filter [vost#0:0/copy @ 000002351b88d140] Non-monotonic DTS; previous: 9
......
ious: 93714534, current: 93714534; changing to 93714535. This may result in incorrect timestamps in the output file. frame=366101 fps=531 q=-1.0 size=25963520KiB time=01:41:41.90 bitrate=34856.8kbits/s speed=8.86x [mov,mp4,m4a,3gp,3g2,mj2 @ 000002351c360a80] Auto-inserting h264_mp4toannexb bitstream filter frame=366443 fps=531 q=-1.0 size=25979648KiB time=01:41:47.60 bitrate=34845.9kbits/s speed=8.86x frame=366576 fps=531 q=-1.0 size=25986560KiB time=01:41:49.82 bitrate=34842.6kbits/s speed=8.85x [mov,mp4,m4a,3gp,3g2,mj2 @ 000002351c35ff80] Auto-inserting h264_mp4toannexb bitstream filter [vost#0:0/copy @ 000002351b88d140] Non-monotonic DTS; previous: 93889894, current: 93889894; changing to 93889895. This may result in incorrect timestamps in the output file. frame=366748 fps=531 q=-1.0 size=25997056KiB time=01:41:52.67 bitrate=34840.4kbits/s speed=8.85x

trk=[TransCreate]: uuid='b9feb6bbe7', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: E:/Interior Lighting in Unreal Engine 5 with Lumen_ Day Night UE5 ArchViz Series Session 2.mp4,
输出结果保存到文件夹: E:/_video_out/Interior Lighting in Unreal Engine 5 with Lumen_ Day Night UE5 ArchViz Series Session 2-mp4,
临时文件夹: E:/win-pyvideotrans-v4.17/tmp/6544/b9feb6bbe7
已选 清理已存在
已启用CUDA加速
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 自动检测, , 数据类型:default
翻译渠道:微软(免费),原始语言:自动检测,目标语言:简体中文, 已选 发送完整字幕, settings.get('trans_thread')=5, settings.get('aitrans_thread')=1
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入硬字幕 , precent=18, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=6911850


=
system:Windows-10-10.0.17134-SP0
version:v4.17
frozen:True
language:zh_CN
root_dir:E:/win-pyvideotrans-v4.17

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因是:开启了「视频慢速」,让这段近 2 小时(video_duration_ms=6911850)的视频被切成了大量重编码切片再拼接,临时输出已达到 约 25GB(size=25997056KiB),在 concat 拼接阶段因片段时间戳不连续(Non-monotonic DTS)加上磁盘/写入资源耗尽,ffmpeg 返回退出码 1。

注意:Non-monotonic DTS 只是警告,日志里真正致命的是 subprocess.CalledProcessError: ... returned non-zero exit status 1,即合并 merged_video.mp4 时失败。

处理步骤

  1. 先检查磁盘剩余空间(最可能的原因)
    查看 E: 盘剩余空间。开了「视频慢速」+ 硬字幕 + 2 小时视频,中间切片和合并文件需要数十 GB。空间不足会直接导致 concat 写入失败。
    同时清空 E:/win-pyvideotrans-v4.17/tmp/ 下的残留临时切片。
  2. 取消「视频慢速」,只保留「配音加速」
    视频慢速会把每个切片重编码并拉伸时长,是体积暴增和拼接失败的主因。绝大多数场景仅靠「配音加速」+「对齐字幕声音」即可,不必慢放画面。
  3. 把 CRF 和 preset 调优
    在软件根目录 E:/win-pyvideotrans-v4.17/ 下新建两个 txt 文件:

    • crf.txt,内容写 23 或 25(默认 18,越小越清晰、体积越大)
    • preset.txt,内容写 veryfast 或 ultrafast(减小切片体积与耗时)
  4. 降低输出体积
    菜单 → 工具/选项 → 高级选项 → 视频输出控制:

    • 视频输出质量控制 由默认调到 25~28
    • 264/265编码 改为 265(同清晰度可减 30%~50% 体积)
    • 输出视频压缩率 选 veryfast
  5. 改用软编码或强制软编
    若报错仍出现在合并阶段,在高级选项勾选 强制软编码视频?,避免硬件编码切片时间基不一致导致 concat 的 DTS 冲突。
  6. 超长视频建议分段
    2 小时视频 + 慢速 + 硬字幕属于高强度重构,建议先用 菜单 → 工具 → 按字幕剪辑视频 或外部工具切成 20~30 分钟片段分别翻译,最后合并。
  7. 重试时务必勾选主界面 清理已生成,避免复用上次损坏的切片与 video_concat.txt。
另外提示:发音语言 选了「自动检测」,同时翻译渠道是「微软(免费)」,若视频中存在多语言混合文本可能不会被翻译。建议明确指定发音语言,并避免用免费渠道处理混合语言。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource