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

This forum is about all development around libVLC.
kentontsui1985
Blank Cone
Blank Cone
Posts: 12
Joined: 25 Nov 2015 10:49

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

Postby kentontsui1985 » 25 Nov 2015 11:10

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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 25 Nov 2015 14:03

No. If you want custom rendering, use the custom rendering callbacks.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kentontsui1985
Blank Cone
Blank Cone
Posts: 12
Joined: 25 Nov 2015 10:49

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

Postby kentontsui1985 » 26 Nov 2015 03:13

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!
Last edited by kentontsui1985 on 26 Nov 2015 08:36, edited 1 time in total.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

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

Postby RSATom » 26 Nov 2015 08:35


kentontsui1985
Blank Cone
Blank Cone
Posts: 12
Joined: 25 Nov 2015 10:49

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

Postby kentontsui1985 » 26 Nov 2015 11:12

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?

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

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

Postby RSATom » 26 Nov 2015 11:42

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.

kentontsui1985
Blank Cone
Blank Cone
Posts: 12
Joined: 25 Nov 2015 10:49

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

Postby kentontsui1985 » 26 Nov 2015 11:55

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

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

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

Postby RSATom » 26 Nov 2015 11:58

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests