Mosaic View 4 RTSP Streams to one RTSP Stream help needed

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
When i use the following snipped nothing happends.

I want to reach that i have 1 rtsp stream with an mosaic of 4 in it.

Is anybody ther that knows the problem in my command?

thx and an nice day strab

gst-launch-1.0 -e \
compositor name=mix \
sink_0::xpos=0 sink_0::ypos=0 sink_0::alpha=0\
sink_1::xpos=0 sink_0::ypos=0 \
sink_2::xpos=320 sink_1::ypos=0 \
sink_3::xpos=0 sink_2::ypos=240 \
sink_4::xpos=320 sink_3::ypos=240 \
uridecodebin uri=rtsp://ip \
! videoconvert ! videoscale \
! video/x-raw,width=320,height=240 \
! mix.sink_1 \
uridecodebin uri=rtsp://ip  \
! decodebin max-size-time=30000000000 \
! videoconvert ! videoscale \
! video/x-raw,width=320,height=240 \
! mix.sink_2 \
uridecodebin uri=rtsp://ip  \
! decodebin max-size-time=30000000000 \
! videoconvert ! videoscale \
! video/x-raw,width=320,height=240 \
! mix.sink_3 \
uridecodebin uri=rtsp://ip  \
! decodebin max-size-time=30000000000 \
! videoconvert ! videoscale \
! video/x-raw,width=320,height=240 \
! mix.sink_4 \

mix. ! queue ! videoconvert ! gst-launch-1.0 -v rtspsrc
location=rtsp://ip:8554 latency=0 ! rtph264depay ! decodebin ! autovideosink



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
Hello,

If you want to publish an RTSP stream you might want to use the RTSP server
from gst-rtsp-server repository
https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server.

From there you can get inspiration or run the test application 'test-launch'
you can easily build with gst-build:

./build/subprojects/gst-rtsp-server/examples/test-launch "( videotestsrc !
videomixer name=comp sink_0::xpos=0 sink_0::ypos=0  sink_0::alpha=0
sink_1::xpos=0 sink_1::ypos=0 sink_2::xpos=320 sink_2::ypos=0 sink_3::xpos=0
sink_3::ypos=240 sink_4::xpos=320 sink_4::ypos=240 ! videoconvert !
video/x-raw,format=NV12 ! x264enc ! rtph264pay name=pay0 pt=96 videotestsrc
! comp.sink_1  videotestsrc ! comp.sink_2 videotestsrc ! comp.sink_3
videotestsrc ! comp.sink_4 )"

And then

gst-launch-1.0 uridecodebin uri=rtsp://127.0.0.1:8554/test ! autovideosink

Than you can replace videotestsrc by your rtsp stream.

Regards.





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
THX for the reply,

the server service is running in this time with the rtsp server.
I have an testvideo fron the testserver source, linke your sample.

But how looks like the pipe command to combine the quad command and the
server command ?

thx for an possible answer



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
Hi,

You can give a try to:
       
./server & sleep 1 && ./client && killall server works like a charm

or

/build/subprojects/gst-rtsp-server/examples/test-launch "( videotestsrc !
videomixer name=comp sink_0::xpos=0 sink_0::ypos=0  sink_0::alpha=0
sink_1::xpos=0 sink_1::ypos=0 sink_2::xpos=320 sink_2::ypos=0 sink_3::xpos=0
sink_3::ypos=240 sink_4::xpos=320 sink_4::ypos=240 ! videoconvert !
video/x-raw,format=NV12 ! x264enc ! rtph264pay name=pay0 pt=96 videotestsrc
! comp.sink_1  videotestsrc ! comp.sink_2 videotestsrc ! comp.sink_3
videotestsrc ! comp.sink_4 )" & sleep 1 && gst-launch-1.0 uridecodebin
uri=rtsp://127.0.0.1:8554/test ! autovideosink && killall test-launch

Regards.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
In reply to this post by GStreamer-devel mailing list
Changing videotestsrc to an local rtsp stream from an ip camera.

./test-launch "( videotestsrc !
videomixer name=comp
sink_0::xpos=0 sink_0::ypos=0  sink_0::alpha=0
sink_1::xpos=0 sink_1::ypos=0
sink_2::xpos=320 sink_2::ypos=0
sink_3::xpos=0 sink_3::ypos=240
sink_4::xpos=320 sink_4::ypos=240


! videoconvert ! video/x-raw,format=NV12 ! x264enc ! rtph264pay name=pay0
pt=96
uridecodebin uri=rtsp://user:pass@10.0.01/stream1 ! comp.sink_1  
videotestsrc ! comp.sink_2
videotestsrc ! comp.sink_3
videotestsrc ! comp.sink_4 )
" & sleep 1 && gst-launch-1.0 uridecodebin uri=rtsp://127.0.0.1:8554/test !
autovideosink && killall test-launch

why didnt it run, it shows only the the 4 testvideo in a mosaic, where is my
error, to change one of them to my live videostream?

thx



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
this solution throws an error too....

gst-launch-1.0 -v \
videomixer name=mix \
sink_0::xpos=0 sink_0::ypos=0  sink_0::alpha=0
sink_1::xpos=0 sink_1::ypos=0
sink_2::xpos=320 sink_2::ypos=0
sink_3::xpos=0 sink_3::ypos=240
sink_4::xpos=320 sink_4::ypos=240
uridecodebin uri=rtsp://uri ! videoscale ! video/x-raw,width=320,height=240
\ ! mix.sink_1 \
uridecodebin uri=rtsp://uri ! videoscale ! video/x-raw,width=320,height=240
\ ! mix.sink_2 \
uridecodebin uri=rtsp://uri ! videoscale ! video/x-raw,width=320,height=240
\ ! mix.sink_3 \
uridecodebin uri=rtsp://uri ! videoscale ! video/x-raw,width=320,height=240
\ ! mix.sink_4 \
mix. ! queue ! x264enc ! rtph264pay name=pay0 pt=96 ! videoconvert !
uridecodebin uri=rtsp://127.0.0.1:8554/test ! autovideosink sync=false



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
Hello,

Can you please share a snippet of the error you are facing ?

Rgds.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
In reply to this post by GStreamer-devel mailing list
Setting pipeline to PLAYING ...
New clock: GstSystemClock

nothing happens then



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
In reply to this post by GStreamer-devel mailing list
On Thu, 10 Jun 2021 03:52:01 -0500 (CDT)
strab via gstreamer-devel <[hidden email]> wrote:

> Changing videotestsrc to an local rtsp stream from an ip camera.
>
> ./test-launch "( videotestsrc !
> videomixer name=comp
> sink_0::xpos=0 sink_0::ypos=0  sink_0::alpha=0
> sink_1::xpos=0 sink_1::ypos=0
> sink_2::xpos=320 sink_2::ypos=0
> sink_3::xpos=0 sink_3::ypos=240
> sink_4::xpos=320 sink_4::ypos=240
>
>
> ! videoconvert ! video/x-raw,format=NV12 ! x264enc ! rtph264pay name=pay0
> pt=96
> uridecodebin uri=rtsp://user:pass@10.0.01/stream1 ! comp.sink_1  
> videotestsrc ! comp.sink_2
> videotestsrc ! comp.sink_3
> videotestsrc ! comp.sink_4 )
> " & sleep 1 && gst-launch-1.0 uridecodebin uri=rtsp://127.0.0.1:8554/test !
> autovideosink && killall test-launch
>
> why didnt it run, it shows only the the 4 testvideo in a mosaic, where is my
> error, to change one of them to my live videostream?
>

Always look at the log messages spit out by setting the
GST_DEBUG=3 env variable when something fails and you will find the
answer there most of the time.

Ciao,
Antonio

--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Mosaic View 4 RTSP Streams to one RTSP Stream help needed

GStreamer-devel mailing list
In reply to this post by GStreamer-devel mailing list
On Thu, 10 Jun 2021 04:47:02 -0500 (CDT)
strab via gstreamer-devel <[hidden email]> wrote:

> this solution throws an error too....
>
> gst-launch-1.0 -v \
> videomixer name=mix \
> sink_0::xpos=0 sink_0::ypos=0  sink_0::alpha=0
> sink_1::xpos=0 sink_1::ypos=0
> sink_2::xpos=320 sink_2::ypos=0
> sink_3::xpos=0 sink_3::ypos=240
> sink_4::xpos=320 sink_4::ypos=240
> uridecodebin uri=rtsp://uri ! videoscale ! video/x-raw,width=320,height=240
> \ ! mix.sink_1 \
> uridecodebin uri=rtsp://uri ! videoscale ! video/x-raw,width=320,height=240
> \ ! mix.sink_2 \
> uridecodebin uri=rtsp://uri ! videoscale ! video/x-raw,width=320,height=240
> \ ! mix.sink_3 \
> uridecodebin uri=rtsp://uri ! videoscale ! video/x-raw,width=320,height=240
> \ ! mix.sink_4 \
> mix. ! queue ! x264enc ! rtph264pay name=pay0 pt=96 ! videoconvert !
> uridecodebin uri=rtsp://127.0.0.1:8554/test ! autovideosink sync=false

With gst-launch-1.0 you must be extra-careful to continuation
separators, at the end of each line, while with test-launch you might
not have to because the argument is a single string.

Also, if this is meant to be a local test, you probably want to use
"decodebin" with no properties instead of the very last uridecodebin
which is meant for the case when you have an actual server.

Ciao,
   Antonio

--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel