YUV data transfer using TCP/IP

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

YUV data transfer using TCP/IP

Sudarshan Bisht
Hi all ,
            I am trying to send raw yuv data over  the network using tcpserversink and tcpclientsrc plugins using following pipelines :
 
On Server :   gst-launch filesrc location=test.mp4 ! qtdemux ! ffdec_h264 ! tcpserversink
On Client :    gst-launch tcpclientsrc ! 'video/x-raw-yuv,width=352,height=288,framrate=(fraction)25/1,format=(fourcc)I420, ! autovideosink
 
            This perfectly works on localhost .
 
     But when I try same thing on two systems by giving proper host IP and port number ,  i dont get the displayed output correct and when I dump yuv data in a file that comes correct.
 
  Any Idea what is going wrong ?
       

--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: YUV data transfer using TCP/IP

Tim-Philipp Müller-2
On Wed, 2009-05-06 at 13:48 +0530, sudarshan bisht wrote:

> I am trying to send raw yuv data over  the network using tcpserversink
> and tcpclientsrc plugins using following pipelines :
>  
> On Server :   gst-launch filesrc location=test.mp4 ! qtdemux !
> ffdec_h264 ! tcpserversink
> On Client :    gst-launch tcpclientsrc !
> 'video/x-raw-yuv,width=352,height=288,framrate=(fraction)25/1,format=(fourcc)I420, ! autovideosink
>  
>             This perfectly works on localhost .
>  
>      But when I try same thing on two systems by giving proper host IP
> and port number ,  i dont get the displayed output correct and when I
> dump yuv data in a file that comes correct.
>  
>   Any Idea what is going wrong ?

Most likely the sizes/chunking isn't maintained. You could try using
either gdppay/gdpdepay on both ends, or putting a videoparse element
after the source where there's currently a capsfilter.

Cheers
 -Tim





------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: YUV data transfer using TCP/IP

Sudarshan Bisht
Thanks a lot Tim , used videoparse  , working fine now . :)

On Wed, May 6, 2009 at 2:08 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Wed, 2009-05-06 at 13:48 +0530, sudarshan bisht wrote:
> I am trying to send raw yuv data over  the network using tcpserversink
> and tcpclientsrc plugins using following pipelines :
>
> On Server :   gst-launch filesrc location=test.mp4 ! qtdemux !
> ffdec_h264 ! tcpserversink
> On Client :    gst-launch tcpclientsrc !
> 'video/x-raw-yuv,width=352,height=288,framrate=(fraction)25/1,format=(fourcc)I420, ! autovideosink
>
>             This perfectly works on localhost .
>
>      But when I try same thing on two systems by giving proper host IP
> and port number ,  i dont get the displayed output correct and when I
> dump yuv data in a file that comes correct.
>
>   Any Idea what is going wrong ?

Most likely the sizes/chunking isn't maintained. You could try using
either gdppay/gdpdepay on both ends, or putting a videoparse element
after the source where there's currently a capsfilter.

Cheers
 -Tim





------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel