rtsp-server streaming MJPEJ

Mathieu Duponchelle mathieu at centricular.com
Mon Apr 13 13:50:44 UTC 2020


Without knowing more about the problems you're having, this should
be as simple(tm) as switching your encoder / payloader with something
like "jpegenc ! rtpjpegpay" (adjust jpegenc properties as needed).

On 4/9/20 3:04 PM, paoloo wrote:
> Hi all,
>
> I developed a python script that create a RTSP Server with Gi library and
> expose a RTSP Stream on a determinate port, e.g. 127.0.0.1:8554/test
>
> I tested it with h264 encoding and it works, here the server-side pipeline
>
> ppsrc name=source
> caps=video/x-raw,format=BGR,width=640,height=480,framerate=30/1 '
> '! videoconvert ! x264enc speed-preset=ultrafast tune=zerolatency ' \
> '! rtph264pay config-interval=1 name=pay0 pt=96
>
> Note that library manage the RTSP part (ip address, port etc).
>
> Here the command I'm using from terminal to see the video with this
> pipeline:
> gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! rtph264depay !
> h264parse ! avdec_h264 ! videoconvert ! videoscale ! autovideosink
>
> Now, I want to modify pipeline and command to use MJPEG instead of H264, but
> I'm stuck at this point.
> Do you have any suggestions about this?
>
> Thanks
> Paolo
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list