Hello
Intro:
Reading single frame each time is achieved by 1. streaming to smem 2. in player event handler, read image and pause the player.
Very much like in http://stackoverflow.com/questions/2645 ... ay-a-frame
But with pausing the player in the event handler func.
LibVlc version is 2.2.2 .
The issue:
the purpose is doing a binary search in the video. So there is a need to seek back and forward all the time.
Jumping is done in the following way:
libvlc_media_player_stop(Player); // seeking back does not work without stopping first.
libvlc_media_player_play(Player);
Sleep(1000); // event handler is invoked and calls libvlc_media_player_pause(Player);
libvlc_media_player_set_time(Player, msec);
libvlc_media_player_play(Player);
Sleep(1000); // event handler is invoked again, reads the new image, and calls libvlc_media_player_pause(Player);
After tens of times, libvlc_media_player_stop hangs.
Video is a standard mp4 (h264) , placed on local drive.
Thanks