[Gambas-user] Fwd: gb.media v4l2 mediaplayer webcam image choopy

Benoît Minisini gambas at ...1...
Thu May 15 13:20:07 CEST 2014




-------- Message original --------
Sujet: 	gb.media v4l2 mediaplayer webcam image choopy
Date : 	Thu, 15 May 2014 14:10:36 +0300
De : 	Sorin Alecu <alecusorin at ...626...>
Pour : 	gambas at ...1...



Hi everyone,
I'm using gambas3 gb.media mediaplayer control mainly with these
instructions:

$hPlayer = New Mediaplayer
   $hPlayer.url = "v4l2:///dev/video0"
hSink = New MediaControl($hPlayer, "xvimagesink")
$hPlayer.video.output= hsink
try $hPlayer.play

which is something similar whit what Mr.Benoit use in the Media 3.4.90
code example, in order to see a webcam image.

But the image is choppy, not fluent, the image is changed with around 1
second pause.

If i'll use
Shell "gst-launch -e v4l2src device =/dev/video0 !
'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! xvimagesink"

everything it ok.

I've try also the MTest.module from Media 3.4.90 code , which use
mediapipeline instead of mediaplayer and everything it OK.


I saw somewhere in the web an advice to use at the definition of
Mediaplayer.URL "v4l2src" instead of "file" or " v4l2", but the
"v4l2src:///dev/video0" is not accepted by Gambas.Only
"v4l2:///dev/video0" is accepted.

Using direct gstreamer command everithing it OK.

Any HELP please.

Thank you
Sorin

-- 
Benoît Minisini






More information about the User mailing list