GSTREAMER TUTORIAL 5 unable to build pipeline: syntax error

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

GSTREAMER TUTORIAL 5 unable to build pipeline: syntax error

ZAFER M. ŞEN
Hi friend.
I have problem.I make to raspberry pi with android  project. I trying gstreamer tutorial 5 but I get the "unable to build pipeline: syntax erro" error.

tutorial-5.c

data->pipeline = gst_parse_launch("udpsrc port=8554 caps=\"application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, sprop-parameter-sets=\\\"J2QAFKwrQLj/LwDxImo\\\\=\\\\,KO4fLA\\\\=\\\\=\\\"\", payload=96\" ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false", &error);

Android.mk


LOCAL_PATH := $(call my-dir)

# Edit this line
GSTREAMER_ROOT_ANDROID := C:\Users\TR\Desktop\gstreamer-1.0-android-arm-release-1.4.4


SHELL := PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin /bin/bash

include $(CLEAR_VARS)

LOCAL_MODULE    := tutorial-5
LOCAL_SRC_FILES := tutorial-5.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog -landroid
include $(BUILD_SHARED_LIBRARY)



ifndef GSTREAMER_ROOT
ifndef GSTREAMER_ROOT_ANDROID
$(error GSTREAMER_ROOT_ANDROID is not defined!)
endif
GSTREAMER_ROOT        := $(GSTREAMER_ROOT_ANDROID)
endif
GSTREAMER_NDK_BUILD_PATH  := $(GSTREAMER_ROOT)/share/gst-android/ndk-build


include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
GSTREAMER_PLUGINS         := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_CODECS_RESTRICTED)
GSTREAMER_EXTRA_DEPS      := gstreamer-video-1.0 gst-inspect-1.0

include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk
Reply | Threaded
Open this post in threaded view
|

Re: GSTREAMER TUTORIAL 5 unable to build pipeline: syntax error

Sebastian Dröge-3
On Sa, 2016-06-25 at 03:31 -0700, Tooght wrote:

> Hi friend.
> I have problem.I make to raspberry pi with android  project. I trying
> gstreamer tutorial 5 but I get the "unable to build pipeline: syntax
> erro"
> error.
>
> tutorial-5.c
>
> data->pipeline = gst_parse_launch("udpsrc port=8554
> caps=\"application/x-rtp, media=video, clock-rate=90000, encoding-
> name=H264,
> sprop-parameter-
> sets=\\\"J2QAFKwrQLj/LwDxImo\\\\=\\\\,KO4fLA\\\\=\\\\=\\\"\",
> payload=96\" ! rtph264depay ! avdec_h264 ! videoconvert !
> autovideosink
> sync=false", &error);
The problem here is the sprop-parameter-sets caps field. Such fields
often fail to be parsed in gst_parse_launch() unfortunately.

Try setting the caps explicitly on the udpsrc element via
g_object_set() and gst_caps_from_string() instead for the time being.

--

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment