[FFmpeg-devel] [PATCH] Close vfwcap devices on exit()
Mon Apr 14 19:55:26 CEST 2008
Ramiro Polla wrote:
> With some devices and some versions of Windows, if you exit() an
> application before you disconnect a VFW driver, that device will
> remain unusable until you reboot. This happens in FFmpeg in some cases
> like: ffmpeg -r 15 -f vfwcap -i 0 output.mpg
> MPG doesn't accept 15 fps, so FFmpeg just exit()s.
There a similar problem with rstp. In some case ffmpeg won't send the
rstp stop command before exiting. This will result the streaming
continue until a timeout is reach.
I believe ffmpeg/ffplay application should avoid to do exit(), but
should exit by calling demuxer/decoder close function.
More information about the ffmpeg-devel