I need to do this from the API (libvlc). I have tried the following.
Code: Select all
char const *vlc_argv[] = {
"--no-xlib",
"--video-filter=clone", // I want to clone video
"--clone-count=2" // in two seperate windows
};
int done = 0, action = 0, pause = 0, n = 0;
libvlc_instance_t* vlc;
libvlc_media_t* md;
libvlc_media_list_t* ml;
libvlc_media_list_player_t* mlp;
libvlc_media_player_t* mp;
vlc = libvlc_new(sizeof(vlc_argv) / sizeof(*vlc_argv), vlc_argv);
md = libvlc_media_new_path(vlc, "D:\\bbb.avi");
ml = libvlc_media_list_new(vlc);
libvlc_media_list_add_media(ml, md);
mlp = libvlc_media_list_player_new(vlc);
libvlc_media_list_player_set_media_list(mlp, ml);
mp = libvlc_media_player_new(vlc);
libvlc_media_list_player_set_media_player(mlp, mp);
libvlc_media_list_player_play(mlp);
libvlc_media_player_set_hwnd(mp, NULL); // this would be the handle of my first window
libvlc_media_player_set_hwnd(mp, NULL); // and this would be the handle of my second window
Code: Select all
[02869764] core video output error: Failed to create video filter2 'clone'
[02869764] core video output error: Failed to add filter 'clone'