v4lsrc and videomixer
nicolas at ndufresne.ca
Tue Nov 20 22:24:28 UTC 2018
Le mar. 20 nov. 2018 04 h 56, Skained <josericardoperezcastillo at gmail.com>
a écrit :
> I started working with gstreamer a month ago. Now I need to make a
> videoomixer with two transmissions, but when I try this I have a problem.
> First I deal with videotestsrc and it works well, this is my code:
> "gst-launch-1.0 v4l2src device = / dev / video1! video / x-raw, width =
> height = 240, framerate = 25/1! xvimagesink sync = false"
> Then, I change videotestsrc with v4l2src and I have the problem:
> "0: 00: 00.021282177 19456 0x1dfd400 WARN basesrc gstbasesrc.c: 2948:
> gst_base_src_loop: <v4l2src0> error: transmission job paused, reason not
> negotiated (-4)"
Not-negotiated means two elements have an incompatible format. Normally
adding videoconvert after v4l2src should solve it in some cases you might
want to use a jpeg decoder followed by a color converter.
> This is my code, some possible solution, in this case I use the same
> transmission to make a videomixer.
> "gst-launch-1.0 v4l2src do-timestamp = true device = / dev / video2! video
> x-raw, width = 80, height = 60, framerate = 10/1! videobox border-alpha = 0
> top = 0 bottom = 0 Name of the video mixer = mix sink_0 :: xpos = 240
> :: ypos = 180 sink_0 :: zorder = 10! Videoconvert! Device V4l2sink = / dev
> video1 v4l2src device = / dev / video2! Video / x-raw , framerate = 5/1,
> width = 320, height = 240! Videoconvert! Mix ".
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel