add ringbuffer and ffmpeg support
add config port and fix struct tm