rtsp-server source video from udpsrc

Federico Zamperini fzamperini at tiscali.it
Fri Dec 7 08:01:27 PST 2012


One thing I immediately see is that the udpsrc port is wrong: you are 
waiting for udp packets on port 500 but udpsink is sending rtp packets 
to port 5000.
Fix the pipeline in rtsp-server:

 >    pipeline = g_strdup_printf("("
 >      " udpsrc uri=udp://127.0.0.1:500"


Il 07/12/2012 15:40, Damiano Pinarello ha scritto:
> Hi all,
>
> I use this pipeline for local video stream into my IP camera:
>
>    gst-launch
>      v4l2src always-copy=FALSE !
>      'video/x-raw-yuv,format=(fourcc)NV12,width=640,height=480,framerate=(fraction)30/1' !
>      TIVidenc1 bitRate=6000000 encodingPreset=2 codecName=h264enc engineName=codecServer contiguousInputFrame=TRUE !
>      rtph264pay pt=96 !
>      udpsink host=127.0.0.1 port=5000
>
> I want to capture this video with rtsp-server and send it via network.
> This is the code:
>
>    pipeline = g_strdup_printf("("
>      " udpsrc uri=udp://127.0.0.1:500"
>      " caps=\"application/x-rtp,media=(string)video,encoding-name=(string)H264\" !"
>      " queue min-threshold-time=0 max-size-buffers=0 max-size-bytes=0 max-size-time=0 !"
>      " rtph264pay pt=96 name=pay0 )");
>    gst_rtsp_media_factory_set_launch(GST_RTSP_MEDIA_FACTORY(factory), pipeline);
>
> I launch this receiver pipeline on my pc:
>
>    gst-launch rtspsrc location=rtsp://10.39.9.76:3070/test ! rtph264depay ! ffdec_h264 ! xvimagesink
>
> In my IPCam I lauch before the pipeline and then rtsp-server, or otherwise, but no
> video is received from my pc.
>
> I haven't found solution to using rtsp-server with udpsrc!
>
> I think that the pipeline must be launch only when rtsp stream is request by client (pc), because
> if I launch first pipeline and then rtsp-server, this second lost the header h264.
>
> Any help!?!
> Bye
>
>


More information about the gstreamer-devel mailing list