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

FFCreator实例调用destroy,出现ffmpeg was killed with signal SIGKILL导致服务被kill #418

Open
YeYbfwad opened this issue Feb 2, 2024 · 5 comments

Comments

@YeYbfwad
Copy link

YeYbfwad commented Feb 2, 2024

请问各位大佬,如何可以实现就算出现这个异常,服务也不会被kill呢,kill了之后之前的任务全部会丢失

@drawcall
Copy link
Member

drawcall commented Feb 3, 2024

this.renderer.on('error', destroy);
this.renderer.on('complete', destroy);
渲染结束会自动destroy无需手动操作

@YeYbfwad
Copy link
Author

YeYbfwad commented Feb 4, 2024

@drawcall 你好,我现在的场景是需要按需取消生成,因为有些视频渲染过长,我需要手动操作取消生成,不然任务会堆集

@drawcall
Copy link
Member

drawcall commented Feb 4, 2024

使用FFCreatorCenter控制吗?
我可以在里面加一个 stop. 或者你有什么好想法

@YeYbfwad
Copy link
Author

YeYbfwad commented Feb 4, 2024

@drawcall 我设想是希望有一个方法,可以让FFCreator实例停止生成并且不会让进程挂掉,重新触发start,ffmpeg也能跑起来,现在主要问题是FFCreator这个实例调了destroy,整个进程就会挂掉了,我尝试改源码,将kill的传参加成SIGSTEAM,发现进程不会挂掉,但是ffmpeg起不来了,重新调用start也无法跑起来

@miemieda
Copy link

miemieda commented Dec 6, 2024

使用FFCreatorCenter控制吗? 我可以在里面加一个 stop. 或者你有什么好想法

@drawcall 你好,现在已经加stop了吗,我也需要手动取消生成这个功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants