[FFmpeg-user] stopping ffmpeg correctly while piping
barsnick at gmx.net
Thu Jan 11 22:40:14 EET 2018
On Thu, Jan 11, 2018 at 21:11:55 +0100, Nicolas George wrote:
> > So apparently, ffmpeg is getting some different signal under Linux,
> > and/or handling it differently.
> SIGPIPE, obviously.
It was originally obvious to me. Except that I don't get what Windows
does differently. But I never engaged with Windows stuff anyway, I'm
It wasn't obvious to me, as my addition of a SIGPIPE handler didn't
work. But now it does. Hmm:
Exiting normally, received signal 13.
Nice. Nicolas, do you think adding
signal(SIGPIPE, sigterm_handler); /* Termination (pipe closed). */
to ffmpeg.c would be accepted as a patch? I don't know all the
implications, it might be worth a review therefore.
More information about the ffmpeg-user