Video Player based on VLC

Windows specific forum
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Post by Philippe-felixer76-2 »

Philippe-felixer76-2 wrote:
Philippe-felixer76-2 wrote:
Inner wrote:Fixed: Monitor Problem.
Good news!!

I think i'm going to stop the efford getting VLC to run on Win, Linux
and MacOSX. Windows, tooo unstable, Linux, seems to run good,
but MacOSX is ..... pffffff...

This code will output log and exception info:

http://www.purebasic.fr/english/viewtop ... ght=libvlc
Update: Got LibVLC test running on a PB OSX window..

http://members.chello.nl/p.calsteren/LibVLC_PB_OSX.jpg
Update: Got it running smooth now on OSX. Needed a few libvlc
API OSX specific calls.
D Ogre
User
User
Posts: 17
Joined: Tue Jan 01, 2008 3:15 am
Location: Michigan, USA

Re: Video Player based on VLC

Post by D Ogre »

I downloaded the Win32 version of the VideoLAN VLC media player and installed it. I tried compiling both of the PB VLC (Alpha 6) examples posted here using PB 4.40 without success. I'm I doing something wrong or is the code broken with PB 4.40?

The debug log states a linker error: libvlc.lib not found.

The pbaddons include file is supposed to build libvlc.lib under the VLC folder with PB polib.exe right?
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Re: Video Player based on VLC

Post by Philippe-felixer76-2 »

> downloaded the Win32 version of the VideoLAN VLC media player and installed it. I tried compiling both of the PB VLC (Alpha
> 6) examples posted here using PB 4.40 without success. I'm I doing something wrong or is the code broken with PB 4.40?
> The debug log states a linker error: libvlc.lib not found.
>
> The pbaddons include file is supposed to build libvlc.lib under the VLC folder with PB polib.exe right?

See this:

[
inc. wrote:
On Windows, when compiling finishes it claims that libvlc.dll cant be found.
The .lib file has been genrated correctly in the VLC dir.
You need to set the directory in compiler options to VLC. I know..
Philippe-felixer76-2
Enthusiast
Posts: 131
Joined: Sat Aug 18, 2007 6:09 am
Location: Netherlands
]..............

Yeah it was supposed to do that..
I think the code is broken with pb 4.4. I might look into it one of these day's, VLC also updated
and it might work a lot better today..
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: Video Player based on VLC

Post by lexvictory »

D Ogre wrote:The debug log states a linker error: libvlc.lib not found.
that means that you don't have the file the linker needs to link to the dll.
it does NOT come with the vlc installer; you have to find it somewhere or build it yourself.

there is a comment in one of the sources on the first page!

Code: Select all

;"C:\Program Files\Purebasic\Compilers\polib /out:libvlc.lib libvlc.dll"
run that in cmd with the current dir set to your vlc dir (or use absolute paths)
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Philippe-felixer76-2
Enthusiast
Enthusiast
Posts: 135
Joined: Sat Aug 18, 2007 7:09 am
Location: Netherlands

Re: Video Player based on VLC

Post by Philippe-felixer76-2 »

lexvictory wrote:
D Ogre wrote:The debug log states a linker error: libvlc.lib not found.
that means that you don't have the file the linker needs to link to the dll.
it does NOT come with the vlc installer; you have to find it somewhere or build it yourself.

there is a comment in one of the sources on the first page!

Code: Select all

;"C:\Program Files\Purebasic\Compilers\polib /out:libvlc.lib libvlc.dll"
run that in cmd with the current dir set to your vlc dir (or use absolute paths)
Thats what i meant..
Happy 2010 to you too..
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re:

Post by jamirokwai »

Philippe-felixer76-2 wrote:Update: Got it running smooth now on OSX. Needed a few libvlc
API OSX specific calls.
Hi Philippe,

I'd love to hear and see, how you did that for Mac OS X... :)
Regards,
JamiroKwai
D Ogre
User
User
Posts: 17
Joined: Tue Jan 01, 2008 3:15 am
Location: Michigan, USA

Re: Video Player based on VLC

Post by D Ogre »

Ok. I must have missed that. I will attempt another compile...
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Re: Video Player based on VLC

Post by inc. »

Theres no doubt that VideoLan is one of the best free video playback frontends.

But from a programmers view IMHO its not an optimal way to provide a specific functionality to PureBasic via an existing frontend.
The better way would be providing an oportunity to acces to the same backend Videolan uses: LibAvCodec, LibDVDread, LibAvFormat. And do access those Libs from scratch

Or do you really want to force a user of your video playback application to install a different video playback application before ... which btw. would suit to the exactly same needs and therefore makes your own appl. obsolete.
Check out OOP support for PB here!
nemesis
New User
New User
Posts: 1
Joined: Thu Jul 14, 2011 5:30 pm

Re: Video Player based on VLC

Post by nemesis »

Sorry for bumping this thread up

I use the libvlc.dll & libvlc.lib version 1.1.9 but i get this:

---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '_libvlc_exception_init'.
POLINK: error: Unresolved external symbol '_libvlc_playlist_add'.
POLINK: error: Unresolved external symbol '_libvlc_playlist_get_media_player'.
POLINK: error: Unresolved external symbol '_libvlc_video_set_parent'.
POLINK: fatal error: 4 unresolved external(s).

I think that these functions are no more included in lib.
How to fix this?
deano1987
User
User
Posts: 19
Joined: Thu Jul 30, 2009 11:39 pm
Location: england, cannock, west midlands

Re: Video Player based on VLC

Post by deano1987 »

Hey guys, could someone link me to the latest source which runs in Windows please? I would like to utilize this for a project of mine but I'm getting confused with all the posts and dont know where the best Windows code is. Thanks :mrgreen:
Post Reply