ActiveX IPICTURE ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2061
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

ActiveX IPICTURE ?

Post by AUGE_OHR »

hi,

VLC have Method "takeSnapSho"t where i get a IPICTURE
VLC_SNAPSHOT.jpg
VLC_SNAPSHOT.jpg (81.97 KiB) Viewed 1586 times
Question : how to show/save ActiveX IPICTURE :idea:
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: ActiveX IPICTURE ?

Post by danielmaximiliano »

Code: Select all

  cImage_path = "E:\frames\image.jpg"
   lResult = oVlc:TakeSnapshot(media, 0, cImage_savepath, 0, 0)
creo es asi
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: ActiveX IPICTURE ?

Post by danielmaximiliano »

Hola Jimmy : prepare una libreria a partir del LibVLC https://wiki.videolan.org/LibVLC/
The libVLC (VLC SDK) media framework can be embedded into an application to get multimedia capabilities.

Since VLC is based on libVLC
libvlc.rar
(74.45 KiB) Downloaded 92 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2061
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: ActiveX IPICTURE ?

Post by AUGE_OHR »

hi
danielmaximiliano wrote: Thu Apr 29, 2021 1:07 pm

Code: Select all

  cImage_path = "E:\frames\image.jpg"
   lResult = oVlc:TakeSnapshot(media, 0, cImage_savepath, 0, 0)
is it so easy if know how :D
thx for Advice
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2061
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: ActiveX IPICTURE ?

Post by AUGE_OHR »

hi,
danielmaximiliano wrote: Thu Apr 29, 2021 6:26 pm
The libVLC (VLC SDK) media framework can be embedded into an application to get multimedia capabilities.
Since VLC is based on libVLC
Ahh ... use VLC "direct" ... have to look for that Way, thx
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2061
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: ActiveX IPICTURE ?

Post by AUGE_OHR »

hi,

i have test Method TakeSnapshot() of VLC and found out that it have no Parameter :o

Code: Select all

   lResult := ::oVideo:TakeSnapshot()
it will create "RAWVLC*.BMP" which "is" a "PNG" File.

Problem :
"RAWVLC*.BMP" seems to be "locked" so i have to "wait" to open/delete File after import into Memo / BLOB
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: ActiveX IPICTURE ?

Post by danielmaximiliano »

AUGE_OHR wrote: Thu May 06, 2021 5:42 pm hi,

i have test Method TakeSnapshot() of VLC and found out that it have no Parameter :o

Code: Select all

   lResult := ::oVideo:TakeSnapshot()
Hola Jimmy , en todos los lenguajes de programacion el metodo TakeSnapShot tiene parametros..

https://forum.videolan.org/viewtopic.php?t=111824

- in Android test java file
new Thread(new Runnable() {
public void run() {
boolean result = mLibVLC.takeSnapshot(0, "/sdcard/Android/data/com.ebs.android/capture.png", 640, 480);
if(result)
Log.d("EBSSAMPLE", "snapshot success");
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2061
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: ActiveX IPICTURE ?

Post by AUGE_OHR »

hi,
danielmaximiliano wrote: Thu May 06, 2021 7:24 pm Hola Jimmy , en todos los lenguajes de programacion el metodo TakeSnapShot tiene parametros..
i "think" ActiveX is limited so i need "native" Version to use what VLC have.
i have try different Version but when add a Parameter into Method TakeSnapShot() ActiveX crash.
it "seems" only to work without any Parameter.

--
i will have a look how "native" Version work.
would be interesting how to use different Device e.b. WebCAM instead of "File:///"

---

as my "own" Snapshot Function (Print-Screen) work also for VLC i do not need "internal" VLC Function.
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: ActiveX IPICTURE ?

Post by danielmaximiliano »

Jimmy : LibVLC es open source, puede usted mirar aqui https://videolan.videolan.me/vlc/group__libvlc.html
sus funciones aqui https://videolan.videolan.me/vlc/group_ ... video.html
sobre TakeSnapshot aqui https://videolan.videolan.me/vlc/group_ ... b2d5a59143
acerca sobre TakeSnapShot
In order to do this we will use video_take_snapshot method with the MediaPlayer object

Syntax : media_player.video_take_snapshot(n, location, width, height)

Argument : It takes video output number, folder location and width and height of screenshot as argument

Return : It returns 0 on success, -1 if the video was not found
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: ActiveX IPICTURE ?

Post by danielmaximiliano »

AUGE_OHR wrote: Thu May 06, 2021 8:12 pm i "think" ActiveX is limited so i need "native" Version to use what VLC have.
Si, estoy mirando la Wiki https://wiki.videolan.org/ActiveX/
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply