#7594 Decoding failed. ffmpeg returned error code: 3199971767

112.233**3 Posted at: 2 hours ago

Decoding failed. ffmpeg returned error code: 3199971767

Output from ffmpeg/avlib:

ffmpeg version 7.1.1-full_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-lcms2 --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-li
......
nable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-liblc3 --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
[in#0 @ 00000188029c08c0] Error opening input: Invalid data found when processing input
Error opening input file D:/pyVideoTrans/f5-tts/myaudio.wav.
Error opening input files: Invalid data found when processing input

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/TraeWork/逆光溯行/33/video/renders/video_2026-09-24_12-51-02.mp4,
输出结果保存到文件夹: D:/TraeWork/逆光溯行/33/video/renders/_video_out/video_2026-09-24_12-51-02-mp4,
临时文件夹: D:/pyVideoTrans/tmp/19340/17008a9bb0
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
发音语言和目标语言相同,不翻译字幕
配音渠道:F5-TTS(内置), 角色:myaudio.wav, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入软字幕
video_duration_ms=187933


=
system:Windows-10-10.0.19045-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因是 F5-TTS 无法解码你的参考音频文件 D:/pyVideoTrans/f5-tts/myaudio.wav,ffmpeg 报错 Invalid data found when processing input,说明该文件不是有效的音频(格式/编码错误、文件损坏或非音频文件)。

排查与解决:

  1. 确认文件真实格式

    • 用播放器(如 PotPlayer/VLC)打开 myaudio.wav,确认能正常播放。

    • 若不能播放,文件已损坏,需重新准备。

  2. 重新准备参考音频(严格符合要求)

    • 时长:3-10 秒(F5-TTS 对参考音频时长敏感,过短或过长都会出错)
    • 格式:单声道 WAV
    • 内容为清晰、无背景噪声、单一说话人的一段话,开头结尾不留多余静音。

    • 建议用 ffmpeg 重新转码为标准 WAV,例如:

      ffmpeg -i 原始音频 -ac 1 -ar 16000 -c:a pcm_s16le myaudio.wav
  3. 若音频是其他格式(mp3/m4a 等)

    • 不要仅改后缀为 .wav,必须用工具真正转码为 WAV,否则仍会报此错。

  4. 参考音频的配置写法要正确

    • 需在 菜单 → TTS 设置 → 设置参考音频 中按 文件名.wav#音频中的说话文本 格式填写,例如 myaudio.wav#你说四大皆空,却为何紧闭双眼,且文件必须放在软件目录的 f5-tts 文件夹内。

补充说明:当前日志显示你发音语言与目标语言相同(未做翻译),且用的是 F5-TTS 的 myaudio.wav 角色(自定义参考音频音色),因此该问题与翻译渠道无关,纯粹是参考音频文件不可解码所致。

修复音频文件后即可正常配音。

请查阅相关文档:

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