mjpeg rtpjpegpay udpsink

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

mjpeg rtpjpegpay udpsink

Mailing List SVR
Hi,

I have an mjpeg stream, I can use this pipeline to send it as rtp over udp:

gst-launch -v souphttpsrc location=http://192.168.2.17/mjpeg.cgi !
multipartdemux ! rtpjpegpay ! udpsink port=1234 host=127.0.0.1

here are the caps:

/GstPipeline:pipeline0/GstRtpJPEGPay:rtpjpegpay0.GstPad:sink: caps =
image/jpeg
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-
rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)JPEG,
payload=(int)96, ssrc=(guint)180429896, clock-base=(guint)2309346727, seqnum-
base=(guint)56240

and I can use this pipeline to see the video:

gst-launch -v playbin uri=file:///home/nicola/stream.sdp

where stream.sdp is

v=0
c=IN IP4 127.0.0.1
t=0
m=video 1234 RTP/AVP 96
a=rtpmap:96 JPEG/90000

but the same sdp doesn't work in vlc, it seems good looking at the caps but
surely something is missing,

any hints?

thanks
Nicola





------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: mjpeg rtpjpegpay udpsink

eshoquist
I was wondering if you found any  solution to your problem. I am having a very similar problem where I have the following gstreamer launch cmd

   gst-launch v4l2src always-copy=false do-timestamp=true \          
                num-buffers=$(( 30 * 60 * 1 )) ! \                    
        video/x-raw-yuv, format=\(fourcc\)UYVY, \                    
                width=720, height=480, framerate=\(fraction\)30/1 ! \
        jpegenc ! rtpjpegpay  pt=26 ! \                              
        udpsink host=$MULTICAST_IP_ADDR auto-multicast=true port=$UDP_PORT -v

and when I use the following sdp file I can get it to work with
   gst-launch -v playbin uri-file://home/mjpeg.sdp

where my SDP file is:
v=0
s=mjpeg decoding
o=- 2890844926 1 IN IP4 172.16.10.98
t=0 0
m=video 9999 RTP/AVP 26
c=IN IP4 224.1.1.1/127
i=SN-2004 stream
a=fmtp:26
a=cliprect:0,0,480,720
a=x-dimensions:480,720
a=x-bufferdelay:12

but it doesn't work with VLC, and with Quicktime the video is skewed.