Delphi 2007 and VLC 1.0.1 simple example needed, not working

This forum is about all development around libVLC.
kkro
New Cone
New Cone
Posts: 5
Joined: 14 Sep 2009 10:57

Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby kkro » 14 Sep 2009 11:37

Hello experts,

I am new to libVLC but not to Delphi.
I want to play a simple video on a panel on my form with libVLC.
All functions throw no error but no video comes up.

Test System:
i7 12 GB mem
Vista 64
XP 32 in vMWare (to try if the OS is the problem)
Test-video is running as expected in standaloneplayer vlc.exe.

Tried in and outside the Dev Studio.
Tried with/without path:
// args[0] := pchar('--plugin-path=' + VLD_LibPath ); -> more evil, floatingpoint overflow?!?
Also tried args: dummy -I --ignore-config

Tried in debugger.
Tried in the vMWare with XP.
Tried standalone outside Dev Studio.
Nothing brings me a picture, no errors. All handles not zero if I print them out.

Actual the default path of my app is in the path where the vlclib.dll is.
Dll is loaded dynamically, correct.
I manualy set the workingdirectory in delphi for this app to: "C:\Program Files (x86)\VideoLAN\VLC"

my code, just for "play with init":
After every function I have a "CheckError" not shown here.

Code: Select all

const fnTest = 'E:\IMG_0046.MOV'; var hVlc : libvlc_instance; VLCError : libvlc_exception; m : libvlc_media; hMPlayr : libvlc_media_player; ... FillChar(VLCError, SizeOf(VLCError),0); Args[0] := nil; hVlc := libvlc_new( 0, @Args[0], VLCError); m := libvlc_media_new( hVlc, PCHAR( fnTest), VLCError ); hMPlayr := libvlc_media_player_new_from_media( m, VLCError ); libvlc_media_release( m ); libvlc_media_player_set_hwnd( hMPlayr, panel1.Handle, VlcError ); libvlc_media_player_play( hMPlayr, VlcError ); ...
Where can I find error messages that appear inside the vlc-dlls?

please help

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby Jean-Baptiste Kempf » 14 Sep 2009 11:49

plugin path should be "C:\Program Files (x86)\VideoLAN\VLC\plugins"
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kkro
New Cone
New Cone
Posts: 5
Joined: 14 Sep 2009 10:57

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby kkro » 14 Sep 2009 14:06

plugin path should be "C:\Program Files (x86)\VideoLAN\VLC\plugins"
...then I got a "floatingpoint overrun" exception in delphi

I also tried the older 0.8.6i on the vmWare with XP 32. (with the correct plugin-path for this x86 system) It doesnt show this error but also plays no movie.
I tried only the first arg and then all 4 args. Nothing works.

Do I have to change any project options in delphi like stacksize or anything other?

Code: Select all

args[0] := pchar('--plugin-path=C:\Program Files (x86)\VideoLAN\VLC\plugins' ); args[1] := pchar('-I' ); args[2] := pchar('dummy' ); args[3] := pchar('--ignore-config' ); Args[4] := nil; hVlc := libvlc_new( 4, @Args[0], VLCError); -> floatingpoint overrun exception ...
in Delphi:
...many other loaded modules...
Modul laden: libdolby_surround_decoder_plugin.dll. Ohne Debug-Infos. Basisadresse: $648C0000. Prozess VLC_delphi1.exe (5888)
Modul laden: libdrawable_plugin.dll. Ohne Debug-Infos. Basisadresse: $6F700000. Prozess VLC_delphi1.exe (5888)
Modul laden: libdshow_plugin.dll. Ohne Debug-Infos. Basisadresse: $64FC0000. Prozess VLC_delphi1.exe (5888)


I am not sure but may be the last loaded "libdshow_plugin.dll" can be the source of the execption?

Beardless2
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 02 Feb 2007 09:53

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby Beardless2 » 14 Sep 2009 14:36

I also have this problem and started this thread

viewtopic.php?f=32&t=63044

So far no fix has been made, if you use a nightly build it will be fine, or alternatively remove the libdirac_plugin.dll from the folder

kkro
New Cone
New Cone
Posts: 5
Joined: 14 Sep 2009 10:57

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby kkro » 14 Sep 2009 14:47

I also have this problem and started this thread

viewtopic.php?f=32&t=63044

So far no fix has been made, if you use a nightly build it will be fine, or alternatively remove the libdirac_plugin.dll from the folder
I removed it too and it plays the video :) ,
THANK YOU,
but what is this .dll doing? what functionallity do I loose now?

Beardless2
Cone that earned his stripes
Cone that earned his stripes
Posts: 125
Joined: 02 Feb 2007 09:53

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby Beardless2 » 14 Sep 2009 15:08

tbh i have absolutely no idea.....but it was a case of it works if i remove it and doesn't if i dont so i didn't really have much choice until it is fixed in vlc 1.0.x

kkro
New Cone
New Cone
Posts: 5
Joined: 14 Sep 2009 10:57

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby kkro » 14 Sep 2009 15:16

tbh i have absolutely no idea.....but it was a case of it works if i remove it and doesn't if i dont so i didn't really have much choice until it is fixed in vlc 1.0.x
This we loose until it is fixed:
http://diracvideo.org/about_dirac

About Dirac
Dirac is an advanced royalty-free video compression format designed for a wide range of uses, from delivering low-resolution web content to broadcasting HD and beyond, to near-lossless studio editing.
The most important part of the Dirac project is the specification, which can be found here .
The Dirac Project
Originally created by the BBC Research department, the Dirac project has expanded to include companies providing hardware equipment and software for handling Dirac video, as well as an active open-source development group.
Origin of the Name "Dirac"
The name "Dirac" is a reference to Paul A. M. Dirac, British physicist and winner of the 1933 Nobel Prize in Physics. The prize was shared with Erwin Schrödinger, for whom the Schroedinger implementation of Dirac was named.

kkro
New Cone
New Cone
Posts: 5
Joined: 14 Sep 2009 10:57

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby kkro » 14 Nov 2009 02:44

...a litte time and two versions later...
...Updated to VLC 1.0.3, now under W7

still a (too?) big DLL for libdirac_plugin.dll (1.1 MB)
still not fixed
still have to delete the libdirac_plugin.dll to get it working

can anyone confirm?

capflam
New Cone
New Cone
Posts: 7
Joined: 16 Nov 2009 12:17

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not working

Postby capflam » 17 Nov 2009 20:22

Hello,
do you try to show webcam?
personnaly i try
m = libvlc_media_new(_vlcinstance, "dshow://", &_vlcexcep);
libvlc_media_add_option(m,":dshow-vdev=USB 2.0 1.3M UVC WebCam ");
but it not work.
by.

gaw
New Cone
New Cone
Posts: 1
Joined: 09 Mar 2010 13:51

Re: Delphi 2007 and VLC 1.0.1 simple example needed, not wor

Postby gaw » 09 Mar 2010 13:56

Set8087CW($133f); //Floating Point Exception Checking disable


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests