Page 1 of 1

Displaying pictures and text with a player based on libvlc

Posted: 04 Jun 2009 20:45
by pauldovan
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! :)

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

Posted: 05 Jun 2009 23:12
by tamiro44

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

Posted: 03 Jul 2009 23:46
by pauldovan
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 !

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

Posted: 06 Jul 2009 20:40
by tamiro44
pauldovan,
Can you give a sample?
Tamir.