Gstreamer 0.10 pipeline udpsrc and udpsink

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

Gstreamer 0.10 pipeline udpsrc and udpsink

AlexZhou
I just learn how to use gstreamer pipeline to receive the udp packets with a custom socket. And i want to broadcast the pipeline to a udpsink likes 127.0.0.1:5000. Now i donot know whether it is available to use the udpsrc and udpsink at the same time. Following commend line is working with the xvimagesink: PIPELINE_DEF = "udpsrc do-timestamp=true name=src blocksize=1316 closefd=false buffer-size=5600 !" \ "mpegtsdemux !" \ "queue !" \ "ffdec_h264 max-threads=0 !" \ "ffmpegcolorspace !" \ "xvimagesink force-aspect-ratio=True name=video" I want to replace the xvimagesink with a udpsink and build a sdp file for my vlc player to display it. Thanks for reply, and any help :]
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer 0.10 pipeline udpsrc and udpsink

Arun Raghavan-4
On Sun, 24 Jul 2016, at 01:53 AM, AlexZhou wrote:

> I just learn how to use gstreamer pipeline to receive the udp packets
> with a
> custom socket. And i want to broadcast the pipeline to a udpsink likes
> 127.0.0.1:5000. Now i donot know whether it is available to use the
> udpsrc
> and udpsink at the same time. Following commend line is working with the
> xvimagesink:PIPELINE_DEF = "udpsrc do-timestamp=true name=src
> blocksize=1316
> closefd=false buffer-size=5600 !" \               "mpegtsdemux !" \      
> "queue !" \               "ffdec_h264 max-threads=0 !" \              
> "ffmpegcolorspace !" \               "xvimagesink force-aspect-ratio=True
> name=video"I want to replace the xvimagesink with a udpsink and build a
> sdp
> file for my vlc player to display it.Thanks for reply, and any help :]

You'll want to pass the output to rtph264pay (to do RTP payloading,
assuming that's what you want), and then you can pass it on to udpsink.

-- Arun
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer 0.10 pipeline udpsrc and udpsink

AlexZhou
Thanks, I have tried u solution to use rtph264pay to broadcast the live video steam to udpsink. Following commend line is for the gst pipeline:
PIPELINE_DEF =
"udpsrc do-timestamp=true name=src blocksize=1316  closefd=false buffer-size=5600 !" \              
"mpegtsdemux !" \      
"queue !" \              
"h264parse !" \
"rtph264pay !" \  
"udpsink host=127.0.0.1 port=5000"        
And I built a sdp file to make it can be received by vlc media player:
c=IN IP4 127.0.0.1
m=video 5000 RTP/AVP 96
a=rtpmap:96 H264/90000
It worked, but video quality is terrible and with many blurred lines. How can i improve the video quality ?
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer 0.10 pipeline udpsrc and udpsink

Arun Raghavan-4
On Wed, 27 Jul 2016, at 09:00 PM, AlexZhou wrote:

> Thanks, I have tried u solution to use rtph264pay to broadcast the live
> video
> steam to udpsink. Following commend line is for the gst pipeline:
> PIPELINE_DEF =
> "udpsrc do-timestamp=true name=src blocksize=1316  closefd=false
> buffer-size=5600 !" \              
> "mpegtsdemux !" \      
> "queue !" \              
> "h264parse !" \
> "rtph264pay !" \  
> "udpsink host=127.0.0.1 port=5000"        
> And I built a sdp file to make it can be received by vlc media player:
> c=IN IP4 127.0.0.1
> m=video 5000 RTP/AVP 96
> a=rtpmap:96 H264/90000
> It worked, but video quality is terrible and with many blurred lines. How
> can i improve the video quality ?

Your pipeline does not do any video decode/encode, so you should see the
same problems in the source content coming to your udpsrc.

-- Arun
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer 0.10 pipeline udpsrc and udpsink

AlexZhou
Thanks for reply my post :D, I have made some changes and delete the  "blocksize=1316  closefd=false
buffer-size=5600" in the udpsrc. They may limit the packet receiving from socket in python. Now it works well by posting though a sdp file. Thanks for any help!