Now my method is:
libvlc_video_set_callbacks //set the lock,unlock,display callback functions
libvlc_media_player_set_position //goto the snap time
libvlc_media_player_play //start playing
then in unlock callback function invoke 'libvlc_media_player_stop'
to stop the play, and save the data which provider by display callback function.
This method had succeeded some times, but more times it will take my whole program crash.
I know it looks a bit stupid, but I cannot found any frame by frame control function in the libvlc
include files.