Combining 2 Video Streams Side by Side, Getting Choppy Results
Mathieu Duponchelle
mathieu at centricular.com
Tue Feb 16 14:14:17 UTC 2021
That is a good point, you should also use compositor instead of videomixer,
especially for live streams. In any case, using sync=false on the sinks is not
a desirable solution, rather an admission of defeat :)
Cheers,
--
Mathieu Duponchelle · https://www.centricular.com <https://www.centricular.com>
On 2/16/21 11:20 AM, Ian Davidson wrote:
>
> I don't see any *queue* in your pipeline. A queue causes the pipeline to have a new thread - so all of your pipeline is one thread and is therefore only using one processor. Experiment with putting a queue after each videoscale.
>
> On 16/02/2021 09:02, Jim Ruxton wrote:
>>
>> Just discovered that putting sync=false after autovideosink solved my problem.
>>
>> Jim
>>
>> On 2021-02-16 2:50 a.m., Jim Ruxton wrote:
>>>
>>> I am trying to combine 2 video streams. One from my laptop camera and one from an external webcam. I'm using the following pipeline and getting very choppy results. Neither my CPU or GPU seem to be working hard. Any ideas how to make this less choppy?
>>>
>>> *./gst-launch-1.0 v4l2src device=/dev/video**4**! videoscale ! videoconvert ! video/x-raw,format=YUY2, framerate=30/1, width=***640***, height=***480****! ****alpha********alpha=1***! videobox border-alpha=0 left=-640 ! videomixer name=Mix ! videoconvert ! autovideosink v4l2src device=/dev/video***2***! videoscale ! videoconvert ! video/x-raw, format=YUY2, framerate=30/1, width=***640***, height=***480****! ****alpha********alpha=1***! videobox border-alpha=0 right=-640 ! Mix.*
>>>
>>> Thanks,
>>>
>>> Jim
>>>
>>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210216/8c6983ba/attachment.htm>
More information about the gstreamer-devel
mailing list