Combining 2 Video Streams Side by Side, Getting Choppy Results

Jim Ruxton jim.ruxton at gmail.com
Tue Feb 16 17:34:02 UTC 2021


Thanks so much for the tips. I first put queue in after the videoscales 
but it didn't seem to help. Using compositor seemed to fix it. I'm going 
to have to read up on compositor more to understand why that works.

Cheers,

Jim

On 2021-02-16 9:14 a.m., Mathieu Duponchelle wrote:
> 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
>
> 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
>
> _______________________________________________
> 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/3a66e4c4/attachment.htm>


More information about the gstreamer-devel mailing list