Skip to content

Instantly share code, notes, and snippets.

View ferjm's full-sized avatar
🎵

Fernando Jiménez Moreno ferjm

🎵
View GitHub Profile
/Users/ferjm/Library/Android/ndk/r16b/build/core/setup-app.mk:81: Android NDK: Application targets deprecated ABI(s): armeabi
/Users/ferjm/Library/Android/ndk/r16b/build/core/setup-app.mk:82: Android NDK: Support for these ABIs will be removed in a future NDK release.
GStreamer : [GEN] => gst-build-armeabi/gstreamer_android.c
GStreamer : [COMPILE] => gst-build-armeabi/gstreamer_android.c
GStreamer : [LINK] => gst-build-armeabi/libgstreamer_android.so
Done mkdir
Done cp
[armeabi] Prebuilt : libgstreamer_android.so <= gst-build-armeabi/
Done rm
[armeabi] Install : libgstreamer_android.so => libs/armeabi/libgstreamer_android.so
#include <jni.h>
#include <gst/gst.h>
#include <gio/gio.h>
#include <android/log.h>
#include <string.h>
/* XXX: Workaround for Android <21 making signal() an inline function
* around bsd_signal(), and Android >= 21 not having any bsd_signal()
* symbol but only signal().
* See https://bugzilla.gnome.org/show_bug.cgi?id=766235
export LDFLAGS="$LDFLAGS -Wl,-Bsymbolic" (from https://ffmpeg.org/platform.html#toc-Advanced-linking-configuration)
pyenv shell 3.5.0
../meson/meson.py build --prefix=/root/gstreamer
../../meson/meson.py configure -Ddisable_gst_plugins_ugly=true -Ddisable_introspection=true -Ddisable_gst_devtools=true -Ddisable_gst_editing_services=true -Ddisable_rtsp_server=true -Ddisable_gst_omx=true -Ddisable_gstreamer_vaapi=true -Ddisable_gstreamer_sharp=true
ninja -C build
ninja -C build install
=======
cd /root/gstreamer
--- a/gst/gstregistry.c
+++ b/gst/gstregistry.c
@@ -1719,7 +1719,9 @@ ensure_current_registry (GError ** error)
"gstreamer-" GST_API_VERSION, "registry." TARGET_CPU ".bin", NULL);
}
+ GST_DEBUG("ferjm - _priv_gst_disable_registry_update %d", _priv_gst_disable_registry_update);
if (!_gst_disable_registry_cache) {
+ GST_DEBUG("ferjm - if (!_gst_disable_registry_cache) { => %p", &_gst_disable_registry_cache);
GST_INFO ("reading registry cache: %s", registry_file);
root@tuxbox:/root/gstreamer# GST_DEBUG=6 GST_PLUGIN_SYSTEM_PATH=/root/gstreamer/lib/x86_64-linux-gnu/gstreamer-1.0 GST_PLUGIN_SCANNER=/root/gstreamer/libexec/gstreamer-1.0/gst-plugin-scanner LD_LIBRARY_PATH=/root/gstreamer/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH ./bin/gst-inspect-1.0
0:00:00.000177318 19469 0x154f200 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.15.0.1
0:00:00.000253177 19469 0x154f200 INFO GST_INIT gst.c:587:init_pre: Using library installed in /root/gstreamer/lib/x86_64-linux-gnu
0:00:00.000288695 19469 0x154f200 INFO GST_INIT gst.c:607:init_pre: Linux tuxbox 4.13.0-38-generic #43-Ubuntu SMP Wed Mar 14 15:20:44 UTC 2018 x86_64
0:00:00.000482795 19469 0x154f200 DEBUG GST_MEMORY gstallocator.c:589:_priv_gst_allocator_initialize: memory alignment: 7
0:00:00.000594048 19469 0x154f200 DEBUG GST_MEMORY gstallocator.c:565:gst_allocator_sysmem_init: init allocator 0x1554040
root@tuxbox:/root/gstreamer# GST_DEBUG=6 GST_PLUGIN_SYSTEM_PATH=/root/gstreamer/lib/x86_64-linux-gnu/gstreamer-1.0 GST_PLUGIN_SCANNER=/root/gstreamer/libexec/gstreamer-1.0/gst-plugin-scanner LD_LIBRARY_PATH=/root/gstreamer/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH ./bin/gst-inspect-1.0
0:00:00.000168226 19186 0x236d200 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.15.0.1
0:00:00.000242230 19186 0x236d200 INFO GST_INIT gst.c:587:init_pre: Using library installed in /root/gstreamer/lib/x86_64-linux-gnu
0:00:00.000294636 19186 0x236d200 INFO GST_INIT gst.c:607:init_pre: Linux tuxbox 4.13.0-38-generic #43-Ubuntu SMP Wed Mar 14 15:20:44 UTC 2018 x86_64
0:00:00.000644301 19186 0x236d200 DEBUG GST_MEMORY gstallocator.c:589:_priv_gst_allocator_initialize: memory alignment: 7
0:00:00.000851026 19186 0x236d200 DEBUG GST_MEMORY gstallocator.c:565:gst_allocator_sysmem_init: init allocator 0x2372040
root@tuxbox:/opt/gst-build# ninja -C build
ninja: Entering directory `build'
[1/604] Compiling C object 'subprojects/gstreamer/gst/subprojects@gstreamer@gst@@gstreamer-1.0@sha/gst.c.o'.
FAILED: subprojects/gstreamer/gst/subprojects@gstreamer@gst@@gstreamer-1.0@sha/gst.c.o
cc -Isubprojects/gstreamer/gst/subprojects@gstreamer@gst@@gstreamer-1.0@sha -Isubprojects/gstreamer/gst -I../subprojects/gstreamer/gst -Isubprojects/gstreamer -I../subprojects/gstreamer -Isubprojects/gstreamer/gst/parse -I../subprojects/gstreamer/gst/parse -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -fvisibility=hidden -fno-strict-aliasing -DG_DISABLE_DEPRECATED -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs -Wdeclaration-after-statement -Wvla -Wpointer-arith -
root@tuxbox:/root/gstreamer# GST_DEBUG=6 GST_PLUGIN_SYSTEM_PATH=/root/gstreamer/lib/x86_64-linux-gnu/gstreamer-1.0 GST_PLUGIN_SCANNER=/root/gstreamer/libexec/gstreamer-1.0/gst-plugin-scanner LD_LIBRARY_PATH=/root/gstreamer/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH ./bin/gst-inspect-1.0
0:00:00.000171572 18889 0x1428200 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.15.0.1
0:00:00.000260215 18889 0x1428200 INFO GST_INIT gst.c:587:init_pre: Using library installed in /root/gstreamer/lib/x86_64-linux-gnu
0:00:00.000297881 18889 0x1428200 INFO GST_INIT gst.c:607:init_pre: Linux tuxbox 4.13.0-38-generic #43-Ubuntu SMP Wed Mar 14 15:20:44 UTC 2018 x86_64
0:00:00.000515334 18889 0x1428200 DEBUG GST_MEMORY gstallocator.c:589:_priv_gst_allocator_initialize: memory alignment: 7
0:00:00.000701900 18889 0x1428200 DEBUG GST_MEMORY gstallocator.c:565:gst_allocator_sysmem_init: init allocator 0x142d040
@ferjm
ferjm / config.h
Created September 27, 2018 13:57
/*
* Autogenerated by the Meson build system.
* Do not edit, your changes will be lost.
*/
#pragma once
#define ENABLE_NLS 1
#define GETTEXT_PACKAGE "gstreamer-1.0"
root@tuxbox:/root/gstreamer/bin# GST_REGISTRY_FORK=no GST_REGISTRY=/tmp/registry.x86_64.bin GST_PLUGIN_SYSTEM_PATH=/root/gstreamer/lib/x86_64-linux-gnu/gstreamer-1.0 GST_PLUGIN_SCANNER=/root/gstreamer/libexec/gstreamer-1.0/gs
** (gst-inspect-1.0:25068): CRITICAL **: gst_audio_filter_class_add_pad_templates: assertion 'GST_IS_CAPS (allowed_caps)' failed
** (gst-inspect-1.0:25068): CRITICAL **: gst_audio_filter_class_add_pad_templates: assertion 'GST_IS_CAPS (allowed_caps)' failed
** (gst-inspect-1.0:25068): CRITICAL **: gst_audio_filter_class_add_pad_templates: assertion 'GST_IS_CAPS (allowed_caps)' failed
** (gst-inspect-1.0:25068): CRITICAL **: gst_audio_filter_class_add_pad_templates: assertion 'GST_IS_CAPS (allowed_caps)' failed