Streaming Video from Computer to Android

Sebastian Dröge sebastian at centricular.com
Fri Jan 3 02:52:28 PST 2014


On Do, 2014-01-02 at 00:12 -0800, siddarth wrote:
> Hi,
> I am trying to stream live video from beagleboard xm to android tablet. I am
> able to receive the stream on Ubuntu by providing the following command at
> beagleboard and at ubuntu
> At beagleboard side:
> gst-launch -v v4l2src ! video/x-raw-yuv,width=640,height=480 ! TIVidenc1
> codecName=h264enc engineName=codecServer ! rtph264pay pt=96 ! udpsink
> host=192.168.1.141 port=4000
> and at ubuntu machine:
> gst-launch-0.10 -v udpsrc port=4000 caps='application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
> sprop-parameter-sets=(string)\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\=\\=\\,aM48gAA\\=\"'
> ! rtph264depay ! ffdec_h264 ! autovideosink
> 
> however if I tried to provide the udpsrc through gst_parse_launch I am
> receiving an error: udscr0: could not open video for read.
> data->pipeline=gst_parse_launch("udpsrc port=4000 caps=\"application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
> sprop-parameter-sets=(string)\\\"Z0KAHukBQHpCAAAH0AAB1MAIAA\\\\=\\\\=\\\\,aM48gAA\\\\=\\\"\"
> ! rtph264depay ! decodebin2 ! autovideosink", &error); 

Please get a debug log of this. Call
gst_debug_set_default_threshold(GST_LEVEL_DEBUG) before the
gst_parse_launch() call for this, and then check "adb logcat".

Also please upgrade to GStreamer 1.x, the 0.10 versions are no longer
supported since a long time.

Most likely you also want to use rtpbin here instead of just sending RTP
data via UDP. Check the examples in gst-plugins-good/tests/examples/rtp
for this.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140103/59437e2d/attachment.pgp>


More information about the gstreamer-devel mailing list