streaming mpeg4 over tcp
Charlie X. Liu
charlie at sensoray.com
Wed Sep 28 12:47:11 PDT 2011
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=sensoray.com at lists.freedesktop.org
[mailto:gstreamer-devel-bounces+charlie=sensoray.com at lists.freedesktop.org]
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
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list