problem with udp

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

problem with udp

Chuck Crisler-2
I am trying to send a video stream between 2 systems using udp and it doesn't seem to work. I am using gstreamer 0.10.29.

Capture pipeline: gst-launch -v v4l2src always-copy=FALSE device=/dev/video0 ! 'video/x-raw-yuv, format=(fourcc)I420,width=640,height=480,framerate=10/1' ! ffmpegcolorspace ! \
   queue ! ffmpegcolorspace ! x264enc byte-stream=TRUE bitrate=256 ! mpegtsmux ! udpsink host=192.168.10.237,port=6000

Receive pipeline: gst-launch -v udpsrc port=6000 ! mpegtsdemux ! ffdec_h264 ! ffmpegcolorspace ! xvimagesink

According to wireshark there aren't any udp packets on the Tx NIC (I think). I have tried substituting filesink/filesrc for the udpsink/udpsrc and that worked. I also merged the 2 pipelines simply connecting the mpegtsmux ! mpedtsdemux and that worked. So I think that I have messed up the udp somehow.

gst-plugins-good 0.10.23

Any suggestions (please)?

Thank you,
Chuck

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

Re: problem with udp

Tim-Philipp Müller-2
On Wed, 2012-09-12 at 16:21 -0400, Chuck Crisler wrote:

> I am trying to send a video stream between 2 systems using udp and it
> doesn't seem to work. I am using gstreamer 0.10.29.
>
> Capture pipeline: gst-launch -v v4l2src always-copy=FALSE
> device=/dev/video0 ! 'video/x-raw-yuv,
> format=(fourcc)I420,width=640,height=480,framerate=10/1' !
> ffmpegcolorspace ! \
>    queue ! ffmpegcolorspace ! x264enc byte-stream=TRUE bitrate=256 !
> mpegtsmux ! udpsink host=192.168.10.237,port=6000

Try passing tune=zerolatency to x264enc if your version has that
parameter..


> Receive pipeline: gst-launch -v udpsrc port=6000 ! mpegtsdemux !
> ffdec_h264 ! ffmpegcolorspace ! xvimagesink

You might need a parser (h264parse) between the mpeg demuxer and
ffdec_h264. Also try xvimagesink sync=false for good measure.


> According to wireshark there aren't any udp packets on the Tx NIC (I
> think). I have tried substituting filesink/filesrc for the
> udpsink/udpsrc and that worked. I also merged the 2 pipelines simply
> connecting the mpegtsmux ! mpedtsdemux and that worked. So I think
> that I have messed up the udp somehow.
>
> gst-plugins-good 0.10.23

That's quite old, perhaps you could try something newer?

Cheers
 -Tim

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

Re: problem with udp

enthusiastic geek
Try these pipelines

1. To send

gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480' !  x264enc pass=qual quantizer=20 tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=1234


2. To receive

gst-launch udpsrc port=1234 ! "application/x-rtp, payload=127" ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false
Reply | Threaded
Open this post in threaded view
|

Re: problem with udp

Tim-Philipp Müller-2
On Wed, 2012-09-12 at 13:52 -0700, enthusiastic geek wrote:

> Try these pipelines
>
> 1. To send
>
> gst-launch v4l2src device=/dev/video0 !
> 'video/x-raw-yuv,width=640,height=480' !  x264enc pass=qual quantizer=20
> tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=1234
>
>
> 2. To receive
>
> gst-launch udpsrc port=1234 ! "application/x-rtp, payload=127" !
> rtph264depay ! ffdec_h264 ! xvimagesink sync=false

Looks like one udp element defaults to IPv6 and the other to IPv4 ...


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

Re: problem with udp

enthusiastic geek