Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
13 posts
|
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 -- Damiano PINARELLO Embedded Software Developer Office Phone: +(39) 031 653679 Ext. 4679 FAX phone: +(39) 031 653283 Email: [hidden email] 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. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
52 posts
|
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 > > ... [show rest of quote] _______________________________________________
gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
13 posts
|
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 > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel ... [show rest of quote] -- Damiano PINARELLO Embedded Software Developer Office Phone: +(39) 031 653679 Ext. 4679 FAX phone: +(39) 031 653283 Email: [hidden email] 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. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
78 posts
|
Transcoding/Re-encoding usually helps.
Best, Angel
2012/12/7 Damiano Pinarello <[hidden email]> Sorry, ... [show rest of quote] _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Disable Popup Ads | Edit this page |