PDA

View Full Version : VLC lib for Qt



somnathbanik
13th November 2010, 06:42
hi,
I am trying to using the VLC lib in my app. I don't know how to import the lib and how to call the function, any one could help me please,
this is the link where i got the lib
http://qt-apps.org/content/show.php/VLC-Qt+library?content=133649
I also got this link http://wiki.videolan.org/LibVLC_SampleCode_Qt but don't know how to implement it. Where is the lib and the header files?


Please suggest me.

tbscope
13th November 2010, 07:09
Do some effort and read some documentation:

In found this in 10 seconds:
http://wiki.videolan.org/Libvlc

somnathbanik
13th November 2010, 07:36
Do some effort and read some documentation:

In found this in 10 seconds:
http://wiki.videolan.org/Libvlc

The link you suggested me is already the in my first post.

tbscope
13th November 2010, 07:49
The lib you most likely need to build yourself, or install from your package repository.
The headers are in the source (install them) or also in the package repository.

Now don't be a dummy and go read some documentation.

somnathbanik
13th November 2010, 07:57
The lib you most likely need to build yourself, or install from your package repository.
The headers are in the source (install them) or also in the package repository.

Now don't be a dummy and go read some documentation.

I read the doc http://wiki.videolan.org/LibVLC_SampleCode_Qt and there its mentioned that i need to get You need libvlc headers and Qt headers.Take those 3 files, put them in a folder. Run what are those files.I downloaded libvlc-qt_0.4.0_win32 from http://sourceforge.net/p/vlc-qt/wiki...2010-10-08%29/ and extracted now I don't know what are the files that I need to take form the folder. and alsohttp://wiki.videolan.org/Libvlc its mentioed that its out of date.


Please suggest me.

somnathbanik
13th November 2010, 10:09
anyone please suggest me.

bred
13th November 2010, 12:32
anyone please suggest me.

by intuition:

add in your source code:
#include<vlc/libvlc.h>

and link the libs: (in your .pro file)
LIBS += -lvlc -lvlccore

if you are using win find the locations of the include path and the vlc.lib vlccore.lib
and set the correct INCLUDEPATH and LIBS in your .pro file.

The vlc libs don't depends on Qt!

somnathbanik
13th November 2010, 13:49
I an getting error in libvlc_exception_t i checked and didn;t fine libvlc_exception_t inside any .h file. Please suggest me what to do now?

bred
13th November 2010, 16:43
I an getting error in libvlc_exception_t i checked and didn;t fine libvlc_exception_t inside any .h file. Please suggest me what to do now?

Search in the VLC API documentation, or ask in the forum of the VLC developers (if it exits)
http://www.videolan.org/developers/vlc/doc/doxygen/html/index.html

In this forum you are completely off-topic.

baluk
6th December 2010, 07:48
Hi somnathbanik,

Did you succeed with using vlc library in your app. I too want to use vlc plugin to my qt app to play different encoded video files. So If you got succeed with the vlc lib usability in your app, please let me know I would be really grateful for the help.

Thank you,
Baluk