Skip to content

Instantly share code, notes, and snippets.

View ferjm's full-sized avatar
🎵

Fernando Jiménez Moreno ferjm

🎵
View GitHub Profile
❯ GST_DEBUG=*:4 cargo ex player ../web-api-tests/video/sintel_trailer-480p.webm
~/dev/mozilla/media buffering* ⇣⇡
❯ GST_DEBUG=*:4 cargo ex player ../web-api-tests/video/sintel_trailer-480p.webm
Finished dev [unoptimized + debuginfo] target(s) in 0.20s
Running `target/debug/player ../web-api-tests/video/sintel_trailer-480p.webm`
0:00:00.000073000 66528 0x7fdcfbc1aa00 INFO GST_INIT gst.c:586:gboolean init_pre(GOptionContext *, GOptionGroup *, gpointer, GError **): Initializing GStreamer Core Library version 1.14.4
0:00:00.000114000 66528 0x7fdcfbc1aa00 INFO GST_INIT gst.c:587:gboolean init_pre(GOptionContext *, GOptionGroup *, gpointer, GError **): Using library installed in /usr/local/Cellar/gstreamer/1.14.4/lib
0:00:00.000133000 66528 0x7fdcfbc1aa00 INFO GST_INIT gst.c:607:gboolean init_pre(GOptionContext *, GOptionGroup *, gpointer, GError **): Darwin legobox15.local 18.2.0 Darwin Kernel Version 18.2.0: Fri Oct 5 19:41:49 PDT 2018; root:xnu-4903.221.2~2/
❯ GST_DEBUG=gst-player:6 ./mach test-wpt /2dcontext/imagebitmap/createImageBitmap-origin.sub.html
0:00.27 INFO Updating test manifest /Users/ferjm/dev/mozilla/servo/tests/wpt/metadata/MANIFEST.json
0:03.49 INFO STDOUT: INFO:manifest:Updating manifest
0:40.90 INFO STDOUT: DEBUG:manifest:Opening manifest at /Users/ferjm/dev/mozilla/servo/tests/wpt/metadata/MANIFEST.json
0:45.08 INFO Updating test manifest /Users/ferjm/dev/mozilla/servo/tests/wpt/mozilla/meta/MANIFEST.json
0:45.20 INFO STDOUT: INFO:manifest:Updating manifest
0:45.20 INFO STDOUT: INFO:manifest:Updating manifest
0:46.07 INFO STDOUT: DEBUG:manifest:Opening manifest at /Users/ferjm/dev/mozilla/servo/tests/wpt/mozilla/meta/MANIFEST.json
0:46.07 INFO STDOUT: DEBUG:manifest:Opening manifest at /Users/ferjm/dev/mozilla/servo/tests/wpt/mozilla/meta/MANIFEST.json
0:46.17 INFO Updating test manifest /Users/ferjm/dev/mozilla/servo/tests/wpt/webgl/meta/MANIFEST.json
Compiling gstreamer-sys v0.6.0
Running `/Users/ferjm/dev/mozilla/media/target/debug/build/gstreamer-sys-b4a96b6df08ee8c1/build-script-build`
Compiling unreachable v1.0.0
Running `rustc --crate-name unreachable /Users/ferjm/.cargo/registry/src/github.com-1ecc6299db9ec823/unreachable-1.0.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=1c6b0d37a9999ac0 -C extra-filename=-1c6b0d37a9999ac0 --out-dir /Users/ferjm/dev/mozilla/media/target/i686-linux-android/debug/deps --target i686-linux-android -L dependency=/Users/ferjm/dev/mozilla/media/target/i686-linux-android/debug/deps -L dependency=/Users/ferjm/dev/mozilla/media/target/debug/deps --extern void=/Users/ferjm/dev/mozilla/media/target/i686-linux-android/debug/deps/libvoid-2068612f190227a4.rlib --cap-lints allow`
error: native frameworks are only available on macOS targets
Fresh miniz_oxide_c_api v0.1.3
Compiling num-rational v0.2.1
Running `rustc --crate-name num_rational /Users/ferjm/.cargo/registry/
> Task :servoview:ndkbuildcompileMainArmv7ReleaseNdk
[armeabi-v7a] Install : libc++_shared.so => /home/ferjm/dev/mozilla/servo/target/armv7-linux-androideabi/release/apk/jniLibs/armeabi-v7a/libc++_shared.so
[armeabi-v7a] Install : libsimpleservo.so => /home/ferjm/dev/mozilla/servo/target/armv7-linux-androideabi/release/apk/jniLibs/armeabi-v7a/libsimpleservo.so
[armeabi-v7a] Install : libgstreamer_android.so => /home/ferjm/dev/mozilla/servo/target/armv7-linux-androideabi/release/apk/jniLibs/armeabi-v7a/libgstreamer_android.so
error: invalid file path '/home/ferjm/dev/mozilla/servo/target/gradle/servoview/intermediates/manifests/aapt/main/armv7Release/output.json'.
error: invalid file path '/home/ferjm/dev/mozilla/servo/target/gradle/servoview/intermediates/manifests/aapt/main/armv7Release/AndroidManifest.xml'.
FAILURE: Build failed with an exception.
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index da74a201aa..03f8a05b16 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -420,7 +420,7 @@ class MachCommands(CommandBase):
if not os.path.exists(gst_lib_path):
# Download GStreamer dependencies if they have not already been downloaded
print("Downloading GStreamer dependencies")
- gst_url = "https://github.com/servo/libgstreamer_android_gen/blob/master/out/%s?raw=true" % gst_lib_zip
+ gst_url = "http://servo-deps.s3.amazonaws.com/gstreamer/%s" % gst_lib_zip
rm -f ./libs/arm64-v8a/* ./libs/armeabi/* ./libs/armeabi-v7a/* ./libs/mips/* ./libs/mips64/* ./libs/x86/* ./libs/x86_64/*
rm -f ./libs/arm64-v8a/gdbserver ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/mips/gdbserver ./libs/mips64/gdbserver ./libs/x86/gdbserver ./libs/x86_64/gdbserver
rm -f ./libs/arm64-v8a/gdb.setup ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/mips/gdb.setup ./libs/mips64/gdb.setup ./libs/x86/gdb.setup ./libs/x86_64/gdb.setup
echo "GStreamer : [GEN] => gst-build-armeabi/gstreamer_android.c"
GStreamer : [GEN] => gst-build-armeabi/gstreamer_android.c
mkdir -p gst-build-armeabi
sed "s/@PLUGINS_DECLARATION@/ GST_PLUGIN_STATIC_DECLARE(coreelements); GST_PLUGIN_STATIC_DECLARE(coretracers); GST_PLUGIN_STATIC_DECLARE(adder); GST_PLUGIN_STATIC_DECLARE(app); GST_PLUGIN_STATIC_DECLARE(audioconvert); GST_PLUGIN_STATIC_DECLARE(audiomixer); GST_PLUGIN_STATIC_DECLARE(audiorate); GST_PLUGIN_STATIC_DECLARE(audioresample); GST_PLUGIN_STATIC_DECLARE(audiotestsrc)
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
[armeabi] SharedLibrary : libgstreamer_for_android.so
[armeabi] Install : libgstreamer_for_android.so => libs/armeabi/libgstreamer_for_android.so
/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
(<unknown>:15150): GStreamer-CRITICAL **: 16:15:13.027:
Trying to dispose element appsrc1, but it is in PAUSED instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
(<unknown>:15150): GStreamer-CRITICAL **: 16:15:13.027:
Trying to dispose element pipeline0, but it is in READY instead of the NULL state.
use super::gst_app::{AppSink, AppSinkCallbacks, AppSrc};
use super::gst_audio;
use super::BackendError;
use byte_slice_cast::*;
use gst::buffer::{MappedBuffer, Readable};
use gst::prelude::*;
use gst::{self, MessageView};
use servo_media_audio::decoder::{AudioDecoder, AudioDecoderCallbacks, AudioDecoderOptions};
use std::io::Cursor;
use std::io::Read;