Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFmpeg视频合成失败: 3199971767 #195

Open
carrt123 opened this issue Dec 26, 2024 · 4 comments
Open

FFmpeg视频合成失败: 3199971767 #195

carrt123 opened this issue Dec 26, 2024 · 4 comments
Labels
question Further information is requested

Comments

@carrt123
Copy link

🤔 问题描述 Problem Description

WebM格式视频,强制使用硬字幕
使用硬字幕
WebM格式视频,使用libvpx-vp9编码器
检查CUDA是否可用
CUDA可用
使用CUDA加速
添加硬字幕执行命令: ffmpeg -hwaccel cuda -i F:\vedio_jianji\pingping\task1.webm -acodec copy -vcodec libvpx-vp9 -preset medium -vf subtitles='C:/Users/us/AppData/Local/Temp/VideoCaptioner/temp_subtitle.ass' -y F:\vedio_jianji\pingping\【卡卡】task1.webm
视频总时长: 1401.69秒
2024-12-26 12:01:30 - video_utils - ERROR - 视频合成失败,
2024-12-26 12:01:30 - video_utils - ERROR - 关闭 FFmpeg: 3199971767
Traceback (most recent call last):
File "F:\VideoCaptioner\app\core\utils\video_utils.py", line 208, in add_subtitles
raise Exception(return_code)
Exception: 3199971767
2024-12-26 12:01:30 - video_synthesis_thread - ERROR - 视频合成失败: 3199971767
Traceback (most recent call last):
File "F:\VideoCaptioner\app\core\thread\video_synthesis_thread.py", line 40, in run
add_subtitles(video_file, result_subtitle_save_path, video_save_path, soft_subtitle=soft_subtitle,
File "F:\VideoCaptioner\app\core\utils\video_utils.py", line 208, in add_subtitles
raise Exception(return_code)
Exception: 3199971767

@carrt123 carrt123 added the question Further information is requested label Dec 26, 2024
@WEIFENG2333
Copy link
Owner

应该是WebM格式的视频的支持问题,后续会改善。

建议先转换为别的格式处理吧~

@philpw99
Copy link

根据
https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
或许把subtitle=sub.ass 换成 ass=sub.ass 会比较容易成功

@carrt123
Copy link
Author

应该是WebM格式的视频的支持问题,后续会改善。

建议先转换为别的格式处理吧~

好的谢谢

@carrt123
Copy link
Author

根据 https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo 或许把subtitle=sub.ass 换成 ass=sub.ass 会比较容易成功

好的谢谢

@WEIFENG2333 WEIFENG2333 changed the title 请问,这什么原因导致的错误 FFmpeg视频合成失败: 3199971767 Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants