Quantcast
Viewing all articles
Browse latest Browse all 10

How can I stop FFMPEG?

Image may be NSFW.
Clik here to view.
Question

Someone setup a server and has FFMPEG is trying to encode a video and it has effectively killed the web server. I didn’t set it up but have sudo access and need to kill FFMPEG so that the web server starts responding again. How can I do this? Thank you!

It is an Ubuntu 11.10 server with a standard LAMP stack.

Asked by gokujou

Image may be NSFW.
Clik here to view.
Answer

On Linux, you can use sudo killall ffmpeg to kill every process called “ffmpeg” or ps -ef | grep ffmpeg to get the process ids and then sudo kill <PID> to kill each one individually.

If they don’t die, sudo kill -9 <PID> will terminate them.

If you don’t want to kill ffmpeg, you can pause a running process with sudo kill -s SIGSTOP <PID> and start them again with sudo kill -s SIGCONT <PID>.

Beware: On Solaris, killall doesn’t take arguments. It just kills everything.

Answered by Ladadadada

Viewing all articles
Browse latest Browse all 10

Trending Articles