streaming mpeg4 over tcp

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

streaming mpeg4 over tcp

Kocsis Tibor
Hi,

i use the following pipelines to streaming video over tcp:

For sending:

gst-launch -v videotestsrc  !
video/x-raw-yuv,width=640,height=480,framerate=10/1 ! clockoverlay !
ffmpegcolorspace ! ffenc_mpeg4 ! multipartmux ! tcpserversink
host=x.x.x.x port=5000

For receiving:

gst-launch -v tcpclientsrc host=10.30.0.80 port=5000 ! multipartdemux
! decodebin2 ! xvimagesink

On the client the xv output doesn't appear, I see just the following lines:

0:00:10.580064107 15854      0x1810140 WARN          mpegvideoparse
mpegvideoparse.c:246:mpegvideoparse_handle_sequence:<mpegvideoparse0>
Width/height out of valid range [16, 4096]
0:00:12.080034791 15854      0x1810140 WARN          mpegvideoparse
mpegvideoparse.c:246:mpegvideoparse_handle_sequence:<mpegvideoparse0>
Width/height out of valid range [16, 4096]

What am I missing?

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

RE: streaming mpeg4 over tcp

Charlie X. Liu
With Sensoray Model 811 ( http://www.sensoray.com/products/811.htm ) and
Model 911 ( http://www.sensoray.com/products/911.htm ), I tested following:

On Streaming Server:
$ gst-launch-0.10 v4l2src device=/dev/video3 ! videorate ! capsfilter
name=vfps caps=\"video/x-raw-yuv,framerate=30/1\" ! ffmpegcolorspace !
jpegenc ! multipartmux ! tcpserversink name=out-sink host=127.0.0.1
port=5000 &
$ gst-launch-0.10 v4l2src device=/dev/video2 ! videorate ! capsfilter
name=vfps caps=\"video/x-raw-yuv,framerate=10/1\" ! ffmpegcolorspace !
jpegenc ! multipartmux ! tcpserversink name=out-sink host=10.140.5.23
port=6000 &

On Streaming Clients:
Local:
$ gst-launch-0.10 tcpclientsrc host=127.0.0.1 port=5000 ! multipartdemux !
jpegdec ! autovideosink
on other PCs:
$ vlc tcp://10.140.5.23:5000
$ vlc tcp://10.140.5.23:6000

It worked great and very smoothly. But, with ffenc_h263 or ffenc_ mpeg4, it
sounded pretty choppy (not smoothly). FYI, only.


Best regards,

Charlie X. Liu @ Sensoray Co.


-----Original Message-----
From: gstreamer-devel-bounces+charlie=[hidden email]
[mailto:gstreamer-devel-bounces+charlie=[hidden email]]
On Behalf Of Kocsis Tibor
Sent: Wednesday, September 28, 2011 2:49 AM
To: Discussion of the development of and with GStreamer
Subject: streaming mpeg4 over tcp

Hi,

i use the following pipelines to streaming video over tcp:

For sending:

gst-launch -v videotestsrc  !
video/x-raw-yuv,width=640,height=480,framerate=10/1 ! clockoverlay !
ffmpegcolorspace ! ffenc_mpeg4 ! multipartmux ! tcpserversink
host=x.x.x.x port=5000

For receiving:

gst-launch -v tcpclientsrc host=10.30.0.80 port=5000 ! multipartdemux
! decodebin2 ! xvimagesink

On the client the xv output doesn't appear, I see just the following lines:

0:00:10.580064107 15854      0x1810140 WARN          mpegvideoparse
mpegvideoparse.c:246:mpegvideoparse_handle_sequence:<mpegvideoparse0>
Width/height out of valid range [16, 4096]
0:00:12.080034791 15854      0x1810140 WARN          mpegvideoparse
mpegvideoparse.c:246:mpegvideoparse_handle_sequence:<mpegvideoparse0>
Width/height out of valid range [16, 4096]

What am I missing?

Thanks
Tibor
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: streaming mpeg4 over tcp

Kocsis Tibor
Hi,

when I use the encoder instead of decodebin2, it's working on the client side:

gst-launch -v tcpclientsrc host=10.30.0.80 port=5000 ! multipartdemux
! ffdec_mpeg4 ! ffmpegcolorspace ! xvimagesink

Decodebin2 puts an mpegvideoparse before the decoder and that is why
it doesn't work. Maybe the multipartdemux produces too few information
when stream is mpeg4 encoded, in the sink caps there is only
"video/mpeg" without any property (parsed, systemstream or anything
else). File a bug?

Regards,
Tibor



On Wed, Sep 28, 2011 at 9:47 PM, Charlie X. Liu <[hidden email]> wrote:

> With Sensoray Model 811 ( http://www.sensoray.com/products/811.htm ) and
> Model 911 ( http://www.sensoray.com/products/911.htm ), I tested following:
>
> On Streaming Server:
> $ gst-launch-0.10 v4l2src device=/dev/video3 ! videorate ! capsfilter
> name=vfps caps=\"video/x-raw-yuv,framerate=30/1\" ! ffmpegcolorspace !
> jpegenc ! multipartmux ! tcpserversink name=out-sink host=127.0.0.1
> port=5000 &
> $ gst-launch-0.10 v4l2src device=/dev/video2 ! videorate ! capsfilter
> name=vfps caps=\"video/x-raw-yuv,framerate=10/1\" ! ffmpegcolorspace !
> jpegenc ! multipartmux ! tcpserversink name=out-sink host=10.140.5.23
> port=6000 &
>
> On Streaming Clients:
> Local:
> $ gst-launch-0.10 tcpclientsrc host=127.0.0.1 port=5000 ! multipartdemux !
> jpegdec ! autovideosink
> on other PCs:
> $ vlc tcp://10.140.5.23:5000
> $ vlc tcp://10.140.5.23:6000
>
> It worked great and very smoothly. But, with ffenc_h263 or ffenc_ mpeg4, it
> sounded pretty choppy (not smoothly). FYI, only.
>
>
> Best regards,
>
> Charlie X. Liu @ Sensoray Co.
>
>
> -----Original Message-----
> From: gstreamer-devel-bounces+charlie=[hidden email]
> [mailto:gstreamer-devel-bounces+charlie=[hidden email]]
> On Behalf Of Kocsis Tibor
> Sent: Wednesday, September 28, 2011 2:49 AM
> To: Discussion of the development of and with GStreamer
> Subject: streaming mpeg4 over tcp
>
> Hi,
>
> i use the following pipelines to streaming video over tcp:
>
> For sending:
>
> gst-launch -v videotestsrc  !
> video/x-raw-yuv,width=640,height=480,framerate=10/1 ! clockoverlay !
> ffmpegcolorspace ! ffenc_mpeg4 ! multipartmux ! tcpserversink
> host=x.x.x.x port=5000
>
> For receiving:
>
> gst-launch -v tcpclientsrc host=10.30.0.80 port=5000 ! multipartdemux
> ! decodebin2 ! xvimagesink
>
> On the client the xv output doesn't appear, I see just the following lines:
>
> 0:00:10.580064107 15854      0x1810140 WARN          mpegvideoparse
> mpegvideoparse.c:246:mpegvideoparse_handle_sequence:<mpegvideoparse0>
> Width/height out of valid range [16, 4096]
> 0:00:12.080034791 15854      0x1810140 WARN          mpegvideoparse
> mpegvideoparse.c:246:mpegvideoparse_handle_sequence:<mpegvideoparse0>
> Width/height out of valid range [16, 4096]
>
> What am I missing?
>
> Thanks
> Tibor
> _______________________________________________
> 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
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel