Streaming Video from Computer to Android

siddarth mamidanna.siddarth at ireo.in
Thu Jan 2 00:12:10 PST 2014


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); 
apart from this my Android.mk is
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE    := tutorial-3
LOCAL_SRC_FILES := tutorial-3.c

LOCAL_SHARED_LIBRARIES := gstreamer_android libavformat libavcodec
libswscale libavutil
LOCAL_LDLIBS := -llog -ljnigraphics -lz -landroid
SYSROOT :=
/home/mmathur/Development/android-ndk-r9/platforms/android-18/arch-arm/
include $(BUILD_SHARED_LIBRARY)
ifndef GSTREAMER_SDK_ROOT
ifndef GSTREAMER_SDK_ROOT_ANDROID
$(error GSTREAMER_SDK_ROOT_ANDROID is not defined!)
endif
GSTREAMER_SDK_ROOT        := $(GSTREAMER_SDK_ROOT_ANDROID)
endif
GSTREAMER_NDK_BUILD_PATH  :=
$(GSTREAMER_SDK_ROOT)/share/gst-android/ndk-build/
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE)
$(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS)
$(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_CODECS_RESTRICTED)
$(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_PLAYBACK)
GSTREAMER_EXTRA_DEPS      := gstreamer-interfaces-0.10 gstreamer-video-0.10
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk

Kindly help me out.
Thanks in advance
Siddarth



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Streaming-Video-from-Computer-to-Android-tp4661372p4664387.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list