Android gst_parse_launch using

Peter Hafner p.hafner75 at gmail.com
Mon Sep 30 11:17:15 PDT 2013


Sebastian,
Thanks for helping here.
With this pipline, I was testing my syntax on the pipline.
Here, a pipeline without failure. Special the part for sprop-parameter-sets
was hard to find out.
/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)\\\"Z0KAHukBQHpCAAAH0AAB1MAI\\\\=\\\\=\\\\,aM48gA\\\\=\\\" 
\" ! rtph264depay ! avdec_h264 ! decodebin ! autovideosink", &error);//
/
Now this pipeline is parsed without any syntax failure message :-)
If I have the original pipeline
/data->pipeline = gst_parse_launch("playbin", &error);/
everything is working.
after changing to "my" pipeline, and starting the app, I get
/gst_video_overlay_set_window_handle: assertion `GST_IS_VIDEO_OVERLAY 
(overlay)' failed/
With the latest patch

-    gst_x_overlay_set_window_handle (GST_X_OVERLAY (data->pipeline), 
(guintptr)data->native_window);
+    gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY 
(data->pipeline), (guintptr)data->native_window);

We changed from GST_X_OVERLAY to GST_VIDEO_OVERLAY, but again, the 
default pipeline is running, so I think, this will not be the problem.



Am 30.09.2013 13:36, schrieb Sebastian Dröge:
> On Mo, 2013-09-30 at 13:16 +0200, Peter Hafner wrote:
>> I have patched the Tutorial 5 with your patch.
>> Also updated the mk-file.
>>
>> I put the $(GSTREAMER_PLUGINS_CODECS_RESTRICTED) to the
>> GSTREAMER_PLUGINS variable.
>> After building the binary,
>> I get this kind of messages for different files.
>>
>> /android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.gold.exe: warning: cannot scan executable section 26 of
>>
>>
>> Now I try the pipeline
>> data->pipeline = gst_parse_launch("udpsrc port=4000 caps=
>> \"application/x-rtp, media=(string)video, clock-rate=(int)90000,
>> encoding-name=(string)H264\" ! rtph264depay ! ffdec_h264 ! playbin",
>> &error);
>> But the failure
>> "no element "ffdec_h264" still exists.
>>
>> I' using the android-ndk-r9.
> In 1.0 and newer the element is called avdec_h264. However your pipeline
> is wrong in general, you can't use playbin that way.
>
> Try this one for example, you'll need to set a valid EGLNativeWindow on
> the videosink though:
>
> "udpsrc port=4000 caps=\"application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264\" ! rtph264depay ! avdec_h264 ! queue ! videoconvert ! autovideosink"
>
>
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130930/cb02250b/attachment.html>


More information about the gstreamer-android mailing list