currently most efficient implementation. most of the time it can work on the entire 6.avi test, however, due to the unpredictable of the multi-threads schedule strategy, it will fail occasionally.