how to use TCP to stream video captured by my webcam?

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

how to use TCP to stream video captured by my webcam?

fb8fb8
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: how to use TCP to stream video captured by my webcam?

Sudarshan Bisht
Try this;

server;
gst-launch v4l2src ! videorate ! 'video/x-raw-yuv,framerate=(fraction)30/1'  ! ffmpegcolorspace  ! jpegenc ! multipartmux ! tcpserversink host=127.0.0.1 port=5100

Client;
gst-launch tcpclientsrc  port=5100  !  multipartdemux   ! jpegdec  ! autovideosink

Change host address accordingly as I tried this on signle PC but in two terminals. I changed framerate too to get better quality.  



On Thu, Jul 28, 2011 at 6:56 AM, Tom <[hidden email]> wrote:
Hi All,

I have been trying to stream the video captured from a Linux server to a Linux client.

On my server, i run:
gst-launch v4l2src !  videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\" !  multipartmux ! tcpserversink host=192.168.2.1 port=5100

On my client, I run:
gst-launch tcpclientsrc host=xxx.xxx.xxx.xxx(Server IP) port=5100 ! multipartdemux ! jpegdec ! autovideosink

But it doesn't work. What did i do wrong? Has somebody a solution for me? I am new to gstreamer.
Thank you!

Tom



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

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

Re: how to use TCP to stream video captured by my webcam?

fb8fb8
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: how to use TCP to stream video captured by my webcam?

Sudarshan Bisht
Then simply use;

gst-launch-0.10 v4l2src ! videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\"  ! ffmpegcolorspace  ! jpegenc ! multipartmux ! tcpserversink host=127.0.0.1 port=5100


On Thu, Jul 28, 2011 at 10:45 AM, Tom <[hidden email]> wrote:
Thanks for your reply!
But I need to keep this  videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\" ! , since I need to change framerate in PLAYING state. I wrote a testpipeline.cpp in which I use the above code to change framerate.
So is there other way to fix this problem?
Thank you!



On Thu, Jul 28, 2011 at 1:47 AM, Sudarshan Bisht <[hidden email]> wrote:
Try this;

server;
gst-launch v4l2src ! videorate ! 'video/x-raw-yuv,framerate=(fraction)30/1'  ! ffmpegcolorspace  ! jpegenc ! multipartmux ! tcpserversink host=127.0.0.1 port=5100

Client;
gst-launch tcpclientsrc  port=5100  !  multipartdemux   ! jpegdec  ! autovideosink

Change host address accordingly as I tried this on signle PC but in two terminals. I changed framerate too to get better quality.  



On Thu, Jul 28, 2011 at 6:56 AM, Tom <[hidden email]> wrote:
Hi All,

I have been trying to stream the video captured from a Linux server to a Linux client.

On my server, i run:
gst-launch v4l2src !  videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\" !  multipartmux ! tcpserversink host=192.168.2.1 port=5100

On my client, I run:
gst-launch tcpclientsrc host=xxx.xxx.xxx.xxx(Server IP) port=5100 ! multipartdemux ! jpegdec ! autovideosink

But it doesn't work. What did i do wrong? Has somebody a solution for me? I am new to gstreamer.
Thank you!

Tom



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

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

Re: how to use TCP to stream video captured by my webcam?

fb8fb8
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: how to use TCP to stream video captured by my webcam?

Sudarshan Bisht
Just to check, what pipeline you are using at server side ? 


On Thu, Jul 28, 2011 at 11:43 PM, Tom <[hidden email]> wrote:
Yes I tried, but the following error occured at the client:
gst-launch tcpclientsrc  host=127.0.0.1 port=5106  !  multipartdemux   ! jpegdec  ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0:
streaming task paused, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
I really don't know how to deal with this "internal data flow error"...
could please give me some hint?
Thanks you very much!!!

Tom



On Thu, Jul 28, 2011 at 2:51 AM, Sudarshan Bisht <[hidden email]> wrote:
Then simply use;

gst-launch-0.10 v4l2src ! videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\"  ! ffmpegcolorspace  ! jpegenc ! multipartmux ! tcpserversink host=127.0.0.1 port=5100



On Thu, Jul 28, 2011 at 10:45 AM, Tom <[hidden email]> wrote:
Thanks for your reply!
But I need to keep this  videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\" ! , since I need to change framerate in PLAYING state. I wrote a testpipeline.cpp in which I use the above code to change framerate.
So is there other way to fix this problem?
Thank you!



On Thu, Jul 28, 2011 at 1:47 AM, Sudarshan Bisht <[hidden email]> wrote:
Try this;

server;
gst-launch v4l2src ! videorate ! 'video/x-raw-yuv,framerate=(fraction)30/1'  ! ffmpegcolorspace  ! jpegenc ! multipartmux ! tcpserversink host=127.0.0.1 port=5100

Client;
gst-launch tcpclientsrc  port=5100  !  multipartdemux   ! jpegdec  ! autovideosink

Change host address accordingly as I tried this on signle PC but in two terminals. I changed framerate too to get better quality.  



On Thu, Jul 28, 2011 at 6:56 AM, Tom <[hidden email]> wrote:
Hi All,

I have been trying to stream the video captured from a Linux server to a Linux client.

On my server, i run:
gst-launch v4l2src !  videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\" !  multipartmux ! tcpserversink host=192.168.2.1 port=5100

On my client, I run:
gst-launch tcpclientsrc host=xxx.xxx.xxx.xxx(Server IP) port=5100 ! multipartdemux ! jpegdec ! autovideosink

But it doesn't work. What did i do wrong? Has somebody a solution for me? I am new to gstreamer.
Thank you!

Tom



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

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

Re: how to use TCP to stream video captured by my webcam?

fb8fb8
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: how to use TCP to stream video captured by my webcam?

Sudarshan Bisht
Isn't is that you should use same port number both the sides ? Keeping same port number both the sides at least for me its working fine in my machine.
May be then you need to upgrade your Gstreamer installations.


 

On Fri, Jul 29, 2011 at 9:13 AM, Tom <[hidden email]> wrote:
gst-launch-0.10 v4l2src ! videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\"  ! ffmpegcolorspace  ! jpegenc ! multipartmux ! tcpserversink host=127.0.0.1 port=5100

On Thu, Jul 28, 2011 at 11:41 PM, Sudarshan Bisht <[hidden email]> wrote:
Just to check, what pipeline you are using at server side ? 


On Thu, Jul 28, 2011 at 11:43 PM, Tom <[hidden email]> wrote:
Yes I tried, but the following error occured at the client:
gst-launch tcpclientsrc  host=127.0.0.1 port=5106  !  multipartdemux   ! jpegdec  ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0:
streaming task paused, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
I really don't know how to deal with this "internal data flow error"...
could please give me some hint?
Thanks you very much!!!

Tom



On Thu, Jul 28, 2011 at 2:51 AM, Sudarshan Bisht <[hidden email]> wrote:
Then simply use;

gst-launch-0.10 v4l2src ! videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\"  ! ffmpegcolorspace  ! jpegenc ! multipartmux ! tcpserversink host=127.0.0.1 port=5100



On Thu, Jul 28, 2011 at 10:45 AM, Tom <[hidden email]> wrote:
Thanks for your reply!
But I need to keep this  videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\" ! , since I need to change framerate in PLAYING state. I wrote a testpipeline.cpp in which I use the above code to change framerate.
So is there other way to fix this problem?
Thank you!



On Thu, Jul 28, 2011 at 1:47 AM, Sudarshan Bisht <[hidden email]> wrote:
Try this;

server;
gst-launch v4l2src ! videorate ! 'video/x-raw-yuv,framerate=(fraction)30/1'  ! ffmpegcolorspace  ! jpegenc ! multipartmux ! tcpserversink host=127.0.0.1 port=5100

Client;
gst-launch tcpclientsrc  port=5100  !  multipartdemux   ! jpegdec  ! autovideosink

Change host address accordingly as I tried this on signle PC but in two terminals. I changed framerate too to get better quality.  



On Thu, Jul 28, 2011 at 6:56 AM, Tom <[hidden email]> wrote:
Hi All,

I have been trying to stream the video captured from a Linux server to a Linux client.

On my server, i run:
gst-launch v4l2src !  videorate ! capsfilter name=vfps caps=\"video/x-raw-yuv,framerate=2/1\" !  multipartmux ! tcpserversink host=192.168.2.1 port=5100

On my client, I run:
gst-launch tcpclientsrc host=xxx.xxx.xxx.xxx(Server IP) port=5100 ! multipartdemux ! jpegdec ! autovideosink

But it doesn't work. What did i do wrong? Has somebody a solution for me? I am new to gstreamer.
Thank you!

Tom



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel