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

Benoît Minisini gambas at ...1...
Thu May 15 13:34:01 CEST 2014


Le 15/05/2014 13:20, Benoît Minisini a écrit :
>
>
>
> -------- 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.
>

MediaPlayer builds its own pipeline, but it does what he wants...

> 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.

You can mimic this pipeline with gb.media and see if then it works.

-- 
Benoît Minisini




More information about the User mailing list