How create a MediaControl in MediaPipeline?
Posted
#1
(In Topic #750)
Trainee
gst-launch-1.0 v4l2src ! videoflip method=rotate-180 ! videoconvert ! ximagesink
How can I create a MediaControl object for the videoflip filter?
Posted
Regular

(I want to insert an "Enumeration ", so I have to change in the name of some its elements the dash to underscores)
Code (gambas)
- vertical_flip, upper_left_diagonal, upper_right_diagonal, automatic
- pl = New MediaPipeline
- src["device"] = "/dev/video0"
- flp["method"] = rotate_180
- ' We connect "GStreamer" plugins together:
- src.LinkTo(ftr)
- ftr.LinkTo(flp)
- flp.LinkTo(cnv)
- cnv.LinkTo(snk)
- ' Start video:
- pl.Play()
- ' The elapsed time from the start of video is shown in console/Terminal:
- Wait 0.001
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Trainee
I had tryed a code very very similar, but I didn't use the Enumeration…. I used
flp["method"] = 1
Why in this way it didn't work?
thanks again and bye!
Posted
Regular

I do not know. It works for me. :?nino83 said
flp["method"] = 1
Why in this way it didn't work?
Regarding the "Enumeration" resource, obviously this does not affect the functioning of the code.
Ah… more about "video" with "gb.media" Component:
La gestione del video e dei file video con il componente gb.media - Gambas-it.org - Wikipedia
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
1 guest and 0 members have just viewed this.



