[gst-devel] video over network examples

Chris Bare chris at bareflix.com
Wed May 9 03:30:13 CEST 2007


I'm trying to come up with a gst-launch command to send video from one machine
to another over the network. I tried the following:

server
gst-launch-0.10 -v -m -t v4lsrc device=/dev/video0 !  "video/x-raw-yuv,width=320,height=240,framerate=300/16" ! theoraenc quality=5 ! tcpserversink

client
gst-launch-0.10 -v -m -t tcpclientsrc !  xvimagesink

and they connected, but the client errored out with:
Got Message from element "tcpclientsrc0" (state-changed): GstMessageState,
old-s
tate=(GstState)GST_STATE_PAUSED, new-state=(GstState)GST_STATE_PLAYING,
pending-
state=(GstState)GST_STATE_VOID_PENDING

(gst-launch-0.10:32304): GStreamer-CRITICAL **: gst_caps_get_structure:
assertio
n `GST_IS_CAPS (caps)' failed

(gst-launch-0.10:32304): GStreamer-CRITICAL **: gst_structure_get_int:
assertion
 `structure != NULL' failed

(gst-launch-0.10:32304): GStreamer-CRITICAL **: gst_caps_intersect: assertion
`G
ST_IS_CAPS (caps1)' failed

(gst-launch-0.10:32304): GStreamer-CRITICAL **: gst_caps_is_empty: assertion
`GS
T_IS_CAPS (caps)' failed

(gst-launch-0.10:32304): GStreamer-CRITICAL **: gst_caps_unref: assertion
`caps 
!= NULL' failed
Got Message from element "xvimagesink0" (error): GstMessageError,
gerror=(GstGEr
ror)(NULL), debug=(string)"xvimagesink.c\(559\):\ gst_xvimagesink_xvimage_new\
\
(\):\ /pipeline0/xvimagesink0:\012could\ not\ get\ shared\ memory\ of\ 0\
bytes"
ERROR: from element /pipeline0/xvimagesink0: Failed to create output image
buffe
r of 0x0 pixels
Additional debug info:
xvimagesink.c(559): gst_xvimagesink_xvimage_new (): /pipeline0/xvimagesink0:
could not get shared memory of 0 bytes
Execution ended after 12559557000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...


I tried adding "video/x-raw-yuv,width=320,height=240,framerate=300/16" on the
client side before xvimagesink, but that didn't help.

Any suggestions?
-- 
Chris Bare
chris at bareflix.com




More information about the gstreamer-devel mailing list