Fix issue 1) not recognizes some usb device, 2) reconnect when ffmpeg encoder error