Die Suche ergab 111 Treffer

von vuott
Mo 21. Aug 2017, 00:02
Forum: Multimedia
Thema: Playing MP3 audio file by using MediaPipeline and MediaControl Classes of gb.media Component
Antworten: 0
Zugriffe: 2524

Playing MP3 audio file by using MediaPipeline and MediaControl Classes of gb.media Component

Hello, here a my simple code to play MP3 audio file by using MediaPipeline and MediaControl Classes of gb.media Component. Public Sub Main() Dim pl As MediaPipeline Dim src, dcd, snk As MediaControl Dim fileMP3 As String Dim dur, i As Integer Dim tm As Date fileMP3 = "/path/of/file.mp3" If Not Exist...
von vuott
Mo 14. Aug 2017, 20:25
Forum: Projekte und Code-Schnipsel
Thema: Reading barcodes by using a webcam with gb.media Component
Antworten: 4
Zugriffe: 4381

Re: Reading barcodes by using a webcam with gb.media Component

gambi hat geschrieben:
Mo 14. Aug 2017, 15:10
Isn't it funny that two projects at the same time deal with ZBAR?
Yes, it is.
You and me seem like pioneers about it. :D

Ciao
von vuott
Mo 14. Aug 2017, 11:25
Forum: Projekte und Code-Schnipsel
Thema: Reading barcodes by using a webcam with gb.media Component
Antworten: 4
Zugriffe: 4381

Re: Reading barcodes by using a webcam with gb.media Component

Hello gambi, Maybe you saw my little project Gambas-Food-Info No, I did not see that your project. But now I have downloaded it. ... in my project, I added some lines: Excuse me, I don't understand :? the addition of those lines, because - if I'm not wrong - your project does not use gb.media Compon...
von vuott
So 13. Aug 2017, 19:51
Forum: Projekte und Code-Schnipsel
Thema: Reading barcodes by using a webcam with gb.media Component
Antworten: 4
Zugriffe: 4381

Reading barcodes by using a webcam with gb.media Component

Hello, here a code, I wrote, to read barcodes by using a webcam with gb.media Component: Private pl As MediaPipeline Private tb As ToggleButton Private drar As DrawingArea Public Sub _new() With Me .W = 600 .H = 600 End With drar = New DrawingArea(Me) drar.Background = Color.Transparent With tb = Ne...
von vuott
Fr 7. Jul 2017, 11:58
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

In this code if you want not to use the loop "While...Wend", you can obviously use a Timer object.
von vuott
Do 6. Jul 2017, 22:40
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

"v4l2src" GStreamer plugin has the particular property "device":

https://gstreamer.freedesktop.org/data/ ... rc--device
von vuott
So 2. Jul 2017, 01:55
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

...remember that for each plugin you can set one or more properties. Example: ...... bal = New MediaControl(pl, "videobalance") ' <------- We use Videobalance plugin !!! bal["brightness"] = 0.8 ' <------- We set "brightness" property bal["contrast"] = 0.4 ' <------- We set "contrast" property bal["s...
von vuott
Fr 30. Jun 2017, 20:00
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

Eὕρηκα !!! https://forum.ubuntu-it.org/images/smilies/zomp.gif Well, to obtain balance function with MediaPipeline Class, you have to use " videobalance " plugin as a New MediaControl( ) . Then you can set the values for each its used property. Here the plugin (in this page you can see also the prop...
von vuott
Fr 30. Jun 2017, 18:34
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

linuxer hat geschrieben:
Fr 30. Jun 2017, 17:59
If you still have an idea about the balance
...I'm studying about.

Bild
von vuott
Fr 30. Jun 2017, 11:46
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

linuxer hat geschrieben:
Fr 30. Jun 2017, 11:28
gb.gui: warning: 'gb.qt5' component not found, using 'gb.qt4' instead
It seems you obtain error also by using gb.gui Component. :?
Strange ! By using gb.gui I do not get errors !

Uhmm... now can you try to use gb.gtk or gb.gtk3 ?
von vuott
Fr 30. Jun 2017, 09:34
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

That means I can not use the balance function. How can I still use the balance function? uhmmm... now I don't know: I never used this property of Mediaplayer Class. :| I get an error when i pressed button_1_click(). Unsupportet default image format in webcam .57 My same error ! What graphic Compone...
von vuott
Do 29. Jun 2017, 23:48
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

Function GetLastImage() as image Return the last image displayed by a video output control. ...yes, but I obtain an error: " Unsupported default image format " Well, I returned on this strange error, and I noticed that the error raised only with gb.qt4 Component ! :? I do not know why... If I use o...
von vuott
Mi 28. Jun 2017, 20:23
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

...other possibilities could be offered by the external functions of libv4l2, or X11 and ImLib2 libraries .
von vuott
Mi 28. Jun 2017, 19:27
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

...but maybe we have a possibility... by using " .GetScreenshot( ) " method of DesktopWindow Class. Here a practic little example: Private dr As DrawingArea Private pl As MediaPipeline Private pc As New Picture[] Public Sub Form_Open() Dim src, tim, snk As MediaControl Dim ftr As MediaFilter With dr...
von vuott
Mi 28. Jun 2017, 19:01
Forum: Multimedia
Thema: webcam. gb.v4l ist tot es lebe gb.media..
Antworten: 24
Zugriffe: 17583

Re: webcam. gb.v4l ist tot es lebe gb.media..

linuxer hat geschrieben:
Mi 28. Jun 2017, 17:26
Function GetLastImage() as image
Return the last image displayed by a video output control.
...yes, but I obtain an error:
" Unsupported default image format "