Page 1 of 1

how to control video output type with the vlc sdk in my c++ codes

Posted: 25 Nov 2015 11:10
by kentontsui1985
I write a simple test case with libvlc to play a video, now i want to select the "windows GDI video output" when play media, is there some function like "libvlc_media_player_set_ ....." which can control the video output?
Thanks!

Re: how to control video output type with the vlc sdk in my c++ codes

Posted: 25 Nov 2015 14:03
by RĂ©mi Denis-Courmont
No. If you want custom rendering, use the custom rendering callbacks.

Re: how to control video output type with the vlc sdk in my c++ codes

Posted: 26 Nov 2015 03:13
by kentontsui1985
No. If you want custom rendering, use the custom rendering callbacks.
thanks you for your reply, Is it related "libvlc_video_set_callbacks (libvlc_media_player_t *mp, libvlc_video_lock_cb lock, libvlc_video_unlock_cb unlock, libvlc_video_display_cb display,....." ?
i am not sure which function work, to vlc media player, i can select the "windows GDI video output" in the tools->preferences->Video->Output item, then it can play the video on multi-screens smoothly, how can i implement it to select ""windows GDI video output" with libvlc sdk, can you give me some examples? Can you please supply more details? Thanks again!

Re: how to control video output type with the vlc sdk in my c++ codes

Posted: 26 Nov 2015 08:35
by RSATom

Re: how to control video output type with the vlc sdk in my c++ codes

Posted: 26 Nov 2015 11:12
by kentontsui1985
thanks for your information.
I notice there is wingdi, direct3d, directdraw module under video_output folder of plugins, is there a exposed api that i can invoke directly to select the output style, or i have to implement like the link you supplied?

Re: how to control video output type with the vlc sdk in my c++ codes

Posted: 26 Nov 2015 11:42
by RSATom
You could get sources of existing video output plugins and reuse it. But you have no access to them via libvlc api as I know.

Re: how to control video output type with the vlc sdk in my c++ codes

Posted: 26 Nov 2015 11:55
by kentontsui1985
Do you know change which part of codes can choose "windows Gdi output", i compile one source codes and the default is "Direct3D Output". thanks

Re: how to control video output type with the vlc sdk in my c++ codes

Posted: 26 Nov 2015 11:58
by RSATom
No, I don't. But maybe the easiest way for you could be just delete all video_output plugins from your libvlc package except direct3d. Then you could be sure it will be used.