Displaying pictures and text with a player based on libvlc

This forum is about all development around libVLC.
pauldovan
New Cone
New Cone
Posts: 3
Joined: 04 Jun 2009 20:14

Displaying pictures and text with a player based on libvlc

Postby pauldovan » 04 Jun 2009 20:45

Hello!

I am currently developing a video player using the libvlc API (0.99).

I have used the sample code (VLC on Qt) on the wiki, but I need some advanced functions that are not in the libvlc : I want to display text and pictures on my video. I have searched in the doxygen doc on the wiki, and I think that the functions of OSD Menu could help me.

But I don't see how to use these functions. For example, osd_ShowTextAbsolute needs a spu_t structure, and I don't understand how to initialize it, and how to "connect" it with my libvlc structures (libvlc_instance_t, libvlc_media_player_t, libvlc_media_t ...).

Is there a mean to connect the libvlc library with the other libraries of VLC ? In this case is there a tutorial somewhere? And if it’s not the case, how could I display text and subpictures?

I know I ask a lot of questions, but I have been thinking about this problem for several days, without any idea to solve it.
Thank you by advance for any answers! :)

tamiro44
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 15 Feb 2009 15:21

Re: Displaying pictures and text with a player based on libvlc

Postby tamiro44 » 05 Jun 2009 23:12


pauldovan
New Cone
New Cone
Posts: 3
Joined: 04 Jun 2009 20:14

Re: Displaying pictures and text with a player based on libvlc

Postby pauldovan » 03 Jul 2009 23:46

Thank you for you answer tamiro44, but I have solved my problem by cheating with Qt ;)

I have displayed my pictures in Qt windows with translucent background, and with no Windows decoration frame. Then I have just surimposed these windows on my main video window.

It's not the cleanest way to do that but really the simplest !

tamiro44
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 15 Feb 2009 15:21

Re: Displaying pictures and text with a player based on libvlc

Postby tamiro44 » 06 Jul 2009 20:40

pauldovan,
Can you give a sample?
Tamir.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 26 guests