rtsp-server source video from udpsrc

Damiano Pinarello damiano.pinarello at bticino.it
Fri Dec 7 08:05:48 PST 2012


Sorry,

I wrote wrong but in real code is right udp://127.0.0.1:5000

Thanks


On 17:01 Fri 07 Dec     , Federico Zamperini wrote:
> 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
> >
> >
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-- 

 Damiano PINARELLO
 Embedded Software Developer
 Office Phone: +(39) 031 653679 Ext. 4679
 FAX phone: +(39) 031 653283
 Email: damiano.pinarello at bticino.it
 Street address: Via L. Manara 4, 22036 Erba (CO), Italy
 WebSite: www.bticino.it

------------------------------------------------------------------------------
 Please consider your environmental responsibility before printing this Email
------------------------------------------------------------------------------
 This message and any attachments are confidential and they also are legally
 privileged in accordance with the NDA. If you have received this message in
 error, please notify us and remove it from your system.
------------------------------------------------------------------------------


Ce message, ainsi que tous les fichiers joints à ce message,
peuvent contenir des informations sensibles et/ ou confidentielles
ne devant pas être divulguées. Si vous n'êtes pas le destinataire
de ce message (ou que vous recevez ce message par erreur), nous
vous remercions de le notifier immédiatement à son expéditeur, et
de détruire ce message. Toute copie, divulgation, modification,
utilisation ou diffusion, non autorisée, directe ou indirecte, de
tout ou partie de ce message, est strictement interdite.

This e-mail, and any document attached hereby, may contain
confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any
unauthorized, direct or indirect, copying, disclosure, distribution
or other use of the material or parts thereof is strictly
forbidden.


More information about the gstreamer-devel mailing list