Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

Registering SIGINT handler to cleanly exit application doesn't work because ffmpeg gets killed right away #644

Description

@rightaway

In my application I've done process.on('SIGINT', mySigintHandler) to cleanly exit the application when the current tasks have finished rather than killing the application immediately and leaving the tasks in an inconsistent state.

However, as soon as I do ctrl+c in the console, the application doesn't cleanly exit because ffmpeg is killed right away. The error messages I get depend on when exactly it's killed. A few examples

ffmpeg exited with code 1: /tmp/video100.mp4: Immediate exit requested
ffmpeg exited with code 1: /tmp/video100.mp4: Input/output error
ffmpeg exited with code 255: Press [q] to stop, [?] for help

How can I disable the automatic terminating of ffmpeg so that I can kill them from my SIGINT handler? This would be a useful feature to add if it's not possible currently.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions