How to send raw stream to network

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

How to send raw stream to network

Sébastien Petitdemange
Hi there,

I would like to send raw camera stream to the network, and I would like
to know what is the best way to do it with GStreamer.

I tried this for server:

gst-launch-0.10 -v videotestsrc !
video/x-raw-yuv,width=1360,height=1024,framerate=\(fraction\)20/1 !
gdppay ! tcpserversink port=5000

and this for client:

gst-launch-0.10 tcpclientsrc port=5000 ! gdpdepay ! ffmpegcolorspace  !
xvimagesink

but it doesn't work as I expect.

What I'm missing ?

Cheers

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

sebastien_petitdemange.vcf (219 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to send raw stream to network

Florent Thiery
Hi

> I would like to send raw camera stream to the network, and I would like
> to know what is the best way to do it with GStreamer.
> gst-launch-0.10 -v videotestsrc !
> video/x-raw-yuv,width=1360,height=1024,framerate=\(fraction\)20/1 !
> gdppay ! tcpserversink port=5000
>
> and this for client:
>
> gst-launch-0.10 tcpclientsrc port=5000 ! gdpdepay ! ffmpegcolorspace  !
> xvimagesink
>
> but it doesn't work as I expect.

For more debug/info, export GST_DEBUG=3

>
> What I'm missing ?

You might just have mistyped, but you'd need to specify the host ip in
the client tcpserversrc...

I tried using such raw features as well, but with not-so-good results
(notably, concerning sync/reliability). Also, transferring raw YUV
frames can be a bit network-killing !

FLo

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to send raw stream to network

Sébastien Petitdemange
Florent Thiery wrote:

> Hi
>
>> I would like to send raw camera stream to the network, and I would like
>> to know what is the best way to do it with GStreamer.
>> gst-launch-0.10 -v videotestsrc !
>> video/x-raw-yuv,width=1360,height=1024,framerate=\(fraction\)20/1 !
>> gdppay ! tcpserversink port=5000
>>
>> and this for client:
>>
>> gst-launch-0.10 tcpclientsrc port=5000 ! gdpdepay ! ffmpegcolorspace  !
>> xvimagesink
>>
>> but it doesn't work as I expect.
>
> For more debug/info, export GST_DEBUG=3
>
>> What I'm missing ?
>
> You might just have mistyped, but you'd need to specify the host ip in
> the client tcpserversrc...
>
> I tried using such raw features as well, but with not-so-good results
> (notably, concerning sync/reliability). Also, transferring raw YUV
> frames can be a bit network-killing !
>
> FLo
Hi Flo,

Thanks for your replay... But in fact my real problem is that I don't
understand why if I do the client server reverse ie:

 gst-launch-0.10 tcpcserversrc port=5000 ! gdpdepay ! ffmpegcolorspace
! xvimagesink

(Notice tcpclientsrc replace by tcpserversrc)

and :

gst-launch-0.10 -v videotestsrc !
video/x-raw-yuv,width=1360,height=1024,framerate=\(fraction\)20/1 !
gdppay ! tcpclientsink port=5000

(Notice tcpserversink replace by tcpclientsink)

the thinks work just fine...

So maybe gdpdepay and gdppay is not propitiate for what I want to do or
maybe I miss something !


Sorry to be inaccurate in my first mail but I just notice that afterwards.

Cheers

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

sebastien_petitdemange.vcf (219 bytes) Download Attachment