BUG: Feature: wrap up mpeg4 file at ^C
When mencoder (of the Mplayer package) is encoding and the user presses ^C, mencoder completes the file gracefully and exits only then, thus leaving behind a non-broken output file. It would be good if motion worked this way also. It seems to work very reliably on mencoder, so while perhaps kludgish, it can be made to work nicely in practice.
| Motion version:
| Shared libraries:
| Server OS:
- 06 Jan 2005
I will consider if this can be done better. Motion is mainly meant to run as a daemon and then it ormally gets stopped either by xmlrpc or the kill command. Maybe I can find out if any ffmpeg files are open and need to be closed.
- 10 Jan 2005
I haven't tested this, but I think adding
to around line 482 in motion.c would solve the problem. SIGINT is sent when the user presses ^C, and the signal is already taken care of in
- 14 Jan 2005
Yes. That works. I have included this fix in MotionRelease3x1x18snap10
- 15 Jan 2005