ubuntu 14.04
android-ndk-r10e
gstreamer-1.0-android-armv7-1.6.0
android studio 1.3
---------------------------------------
概述
1.本文用到的demo来自gstreamer官方教程,可自行去获取。
2.解析rtsp、mp4等stream
待续...
遇到的错误:
1.10-29 13:50:24.976 19697-20028/? W/GLib+GLib-GObject﹕ g_object_get_valist: object class 'GstPipeline' has no property named 'video-sink'
10-29 13:50:24.976 19697-20028/? A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00bd30b0 (code=1), thread 20028 (ials.tutorial_5)
10-29 13:50:24.976 19697-20028/? A/libc﹕ Unable to open connection to debuggerd: Connection refused
原因是element 没写对或者参数不对,fix------
data->pipeline = gst_parse_launch("playbin uri=rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp", &error);
ref:http://gstreamer-devel.966125.n4.nabble.com/rtsp-audio-video-streaming-using-Gstreamer-Android-td4671126.html