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

[BUG] Cannot terminate/signal ffmpeg process in container #89

Closed
1 task done
strarsis opened this issue Sep 23, 2024 · 3 comments · Fixed by #90
Closed
1 task done

[BUG] Cannot terminate/signal ffmpeg process in container #89

strarsis opened this issue Sep 23, 2024 · 3 comments · Fixed by #90
Assignees

Comments

@strarsis
Copy link

strarsis commented Sep 23, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

It is not possible to signal the ffmpeg process inside the container (probably because of the wrapper shell script).
This is required for cleanly terminating ffmpeg inside the container (and the container) itself (ffmpeg handling disconnections, etc.).

Expected Behavior

Process signals correctly passed to ffmpeg process inside container.

Steps To Reproduce

  1. Start a container from linuxserver/ffmpeg image.
  2. Use docker kill to send a signal to ffmpeg to cleanly shut down.
  3. Note that the signal is not handled, ffmpeg and the container continues running.
  4. Attach shell in running container.
  5. Send termination signal using Ctrl + c, note that it is not handled by ffmpeg but by shell script/Docker instead.

Environment

- OS: `Ubuntu 22.04.5 LTS`
- How docker service was installed: By official `docker` package.

Docker creation

Default docker run test command.

Container logs

got 3 SIGTERM/SIGINTs, forcefully exiting
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@aptalca aptalca self-assigned this Sep 23, 2024
@aptalca
Copy link
Member

aptalca commented Sep 23, 2024

Can you give this test image a try?
lsiodev/ffmpeg:7.0.2-cli-pkg-85b1e43f-dev-2f3a3ee9b1d99fb5cdad454804a22c6759218881

Built off of https://github.com/linuxserver/docker-ffmpeg/tree/exec

@strarsis
Copy link
Author

@aptalca: Yes, this fixed the issue. Ctrl+C terminates ffmpeg.

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