Skip to content

Instantly share code, notes, and snippets.

@lubosz
lubosz / android log
Created February 27, 2013 12:56
Warning when playing a HD h.264 stream with gstreamer on Android (Nexus 10)
02-27 13:54:57.521: W/GStreamer+basesink(27881): 0:01:02.398333000 0x7a2e3660 gstbasesink.c:2873:gst_base_sink_is_too_late:<videosink-actual-sink-eglgles> warning: A lot of buffers are being dropped.
02-27 13:54:57.521: W/GStreamer+basesink(27881): 0:01:02.398411000 0x7a2e3660 gstbasesink.c:2873:gst_base_sink_is_too_late:<videosink-actual-sink-eglgles> warning: There may be a timestamping problem, or this computer is too slow.
@lubosz
lubosz / androidmedia errors
Created March 13, 2013 17:02
error log when trying to decode h264 with gstreamer androidmedia plugin on android 4.2.2
03-13 18:00:28.561: E/OMXNodeInstance(14427): OMX_GetExtensionIndex failed
03-13 18:00:28.561: W/GStreamer+codecparsers_h264(14427): 0:00:02.828368000 0x782b2030 gsth264parser.c:1759:gst_h264_parser_parse_slice_hdr couldn't find associated picture parameter set with id: 0
03-13 18:00:28.566: E/SoftAVC(14427): Decoder failed: -2
03-13 18:00:28.566: E/ACodec(14427): [OMX.google.h264.decoder] ERROR(0x80001001)
03-13 18:00:28.566: W/GStreamer+codecparsers_h264(14427): 0:00:02.830107000 0x782b2030 gsth264parser.c:1759:gst_h264_parser_parse_slice_hdr couldn't find associated picture parameter set with id: 0
03-13 18:00:28.566: E/MediaCodec(14427): Codec reported an error. (omx error 0x80001001, internalError -2147483648)
03-13 18:00:28.566: E/GStreamer+amc(14427): 0:00:02.830538000 0x782b2030 gstamc.c:623:gst_amc_codec_dequeue_input_buffer Failed to call Java method
03-13 18:00:28.566: E/GStreamer+amcvideodec(14427): 0:00:02.830620000 0x782b2030 gstamcvideodec.c:1443:gst_amc_video_dec_handle_frame:<amcvideodec-omxg
03-14 15:41:32.511: E/OMXNodeInstance(9234): OMX_GetExtensionIndex failed
03-14 15:41:32.511: W/GStreamer+codecparsers_h264(9234): 0:00:06.037054000 0x781b0830 gsth264parser.c:1759:gst_h264_parser_parse_slice_hdr couldn't find associated picture parameter set with id: 0
03-14 15:41:32.516: E/SoftAVC(9234): Decoder failed: -2
03-14 15:41:32.516: E/ACodec(9234): [OMX.google.h264.decoder] ERROR(0x80001001)
03-14 15:41:32.516: E/MediaCodec(9234): Codec reported an error. (omx error 0x80001001, internalError -2147483648)
03-14 15:41:32.516: E/GStreamer+amc(9234): 0:00:06.039189000 0x783fbf20 gstamc.c:703:gst_amc_codec_dequeue_output_buffer Failed to call Java method
03-14 15:41:32.516: W/System.err(9234): java.lang.IllegalStateException
03-14 15:41:32.516: W/System.err(9234): at android.media.MediaCodec.dequeueOutputBuffer(Native Method)
03-14 15:41:32.516: W/System.err(9234): at dalvik.system.NativeStart.run(Native Method)
03-14 15:41:32.516: E/GStreamer+amcvideodec(9234): 0:00:06.040768000 0x783fbf20 gstamcvid
@lubosz
lubosz / PKGBUILD
Created April 9, 2013 14:57
Working gnonlin-git PKGBUILD
# Maintainer: Kerrick Staley <mail@kerrickstaley.com>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>
# Contributor: Lubosz Sarnecki <lubosz@gmail.com>
pkgname=gnonlin-git
pkgver=20121231
pkgrel=1
pkgdesc='A library for creating non-linear video editors'
arch=('i686' 'x86_64')
@lubosz
lubosz / python exception
Created April 9, 2013 16:52
pitivi runtime warning
/usr/lib/pitivi/python/pitivi/timeline/track.py:279: RuntimeWarning: Expecting to marshal a borrowed reference for <Pixbuf object at 0x3783500 (GdkPixbuf at 0x3815990)>, but nothing in Python is holding a reference to this object. See: https://bugzilla.gnome.org/show_bug.cgi?id=687522
self._scalePixbuf()
@lubosz
lubosz / gist:5348351
Last active December 16, 2015 00:29
explicit python2 patch
diff --git a/docs/makeChangelog.py b/docs/makeChangelog.py
index c736f35..896fafc 100755
--- a/docs/makeChangelog.py
+++ b/docs/makeChangelog.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import sys
import subprocess
@lubosz
lubosz / PKGBUILD
Created April 9, 2013 19:27
pitivi-git PKGBUILD
# Maintainer: Kerrick Staley <mail@kerrickstaley.com>
# Contributor: Thomas Schneider <maxmusterm@gmail.com>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: Gabor Nyekhelyi (n0gabor) <n0gabor@vipmail.hu>
# Contributor: Lubosz Sarnecki <lubosz@gmail.com>
pkgname=pitivi-git
pkgver=20121225
pkgrel=1
pkgdesc='PiTiVi allows users to easily edit audio/video projects based on the GStreamer framework (Git version)'
@lubosz
lubosz / new_pixbuf.diff
Created April 9, 2013 20:08
Fixes /usr/lib/pitivi/python/pitivi/timeline/track.py:279: RuntimeWarning: Expecting to marshal a borrowed reference for <Pixbuf object at 0x462d370 (GdkPixbuf at 0x4898f70)>, but nothing in Python is holding a reference to this object. See: https://bugzilla.gnome.org/show_bug.cgi?id=687522
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index 1d3f272..f3011b3 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -284,10 +284,11 @@ class TrimHandle(View, GooCanvas.CanvasImage, Loggable, Zoomable):
height = property(getHeight, setHeight)
def _scalePixbuf(self):
- self.props.pixbuf = self.current_pixbuf.scale_simple(
+ new_pixbuf = self.current_pixbuf.scale_simple(
@lubosz
lubosz / gdb output
Created April 9, 2013 20:42
drag to timeline pitivi freeze
0x00007ffff780c00c in __lll_lock_wait () from /usr/lib/libpthread.so.0
(gdb) bt
#0 0x00007ffff780c00c in __lll_lock_wait () from /usr/lib/libpthread.so.0
#1 0x00007ffff7807ebc in _L_lock_647 () from /usr/lib/libpthread.so.0
#2 0x00007ffff7807e3a in pthread_mutex_lock () from /usr/lib/libpthread.so.0
#3 0x00007ffff5563551 in g_mutex_lock () from /usr/lib/libglib-2.0.so.0
#4 0x00007ffff2f5bca4 in gst_object_get_parent () from /usr/lib/libgstreamer-1.0.so.0
#5 0x00007ffff2f5bd23 in ?? () from /usr/lib/libgstreamer-1.0.so.0
#6 0x00007ffff57ee2e2 in ?? () from /usr/lib/libgobject-2.0.so.0
#7 0x00007ffff57f2220 in g_object_set_property () from /usr/lib/libgobject-2.0.so.0
@lubosz
lubosz / AttributeError
Created April 13, 2013 15:58
exception when inserting a title
File "/usr/lib/pitivi/python/pitivi/titleeditor.py", line 809, in _createCb
self.app.gui.timeline_ui.insertEnd([self.source])
File "/usr/lib/pitivi/python/pitivi/timeline/timeline.py", line 1853, in insertEnd
if asset.is_image():
AttributeError: 'TitleClip' object has no attribute 'is_image'