added ffmpeg encode example and more nogil's