*** tpb has joined #timvideos | 00:00 | |
springermac | mithro: ping | 02:02 |
---|---|---|
springermac | mithro: I've got a couple hours now. I'm on UTC+5 btw. | 02:03 |
mithro | I'll be around in an hour or two | 02:11 |
mithro | Carlfk: I'd have to look at the board, it should be something like "done" or "prog". | 02:13 |
*** raron has quit IRC | 02:29 | |
mithro | springermac: I'm around now | 04:16 |
springermac | mithro: So am I. | 04:42 |
mithro | springermac: so, I think the first thing is to figure out how GUInt works by itself | 04:43 |
springermac | mithro: Just so you know I'm mostly a python person but I can understand C pretty well. | 04:45 |
mithro | springermac: great :) | 04:45 |
mithro | springermac: Looking at the GstFraction might be another idea - but I'm unsure if the way it is done is the best | 04:46 |
springermac | mithro: I've tried overridding GstIntRange in Gst.py which didn't work. It seems to me that the main issue is that when Gst.Structure tries to return self.get_value the GstIntRange isn't getting translated to Gst.IntRange. | 04:48 |
mithro | springermac: yeah, but GstFraction works, right?> | 04:49 |
springermac | mithro: What would be a good way to get a GstFraction in a GstStructure? | 04:51 |
mithro | springermac: caps parsing with a fraction in it? | 04:51 |
thaytan | Gst.Structure.set ("framerate", Gst.Fraction, 30, 1) might be the equivalent python API | 05:02 |
thaytan | in C it'd be gst_structure_set (s, "framerate", GST_TYPE_FRACTION, 30, 1, NULL) | 05:03 |
thaytan | to put the fraction into the structure, that is | 05:03 |
thaytan | or gst_structure_get_fraction (s, "framerate", &num, &den) to retrieve in C | 05:03 |
springermac | thaytan: Thanks I figured out a way to get a cap with a fraction in it. | 05:09 |
mithro | springermac: what is the code you are using to test at the moment? | 05:42 |
springermac | mithro: http://pastebin.com/bSnUhrkP | 05:44 |
tpb | Title: [Python] import gi gi.require_version('Gst', '1.0') from gi.repository import Gst Gst. - Pastebin.com (at pastebin.com) | 05:44 |
mithro | springermac: thanks! | 05:44 |
springermac | mithro: I've overridden IntRange and created an IntRange but I think I'm missing some attribute on the overridding class. | 05:47 |
springermac | mithro: Override code http://pastebin.com/iLCh2gEe | 05:47 |
tpb | Title: [Python] class IntRange(Gst.IntRange): def __init__(self, min, max): self.m - Pastebin.com (at pastebin.com) | 05:47 |
springermac | mithro: I have to go and I've hit a wall. The above is as far as I've gotten. | 06:16 |
mithro | springermac: okay - will try and make more progress | 06:16 |
*** travis-ci has joined #timvideos | 08:01 | |
travis-ci | [timvideos/HDMI2USB-misoc-firmware/minor-fixes#175] (b3f0b8f): The build has errored. (https://travis-ci.org/timvideos/HDMI2USB-misoc-firmware/builds/82278086) | 08:01 |
*** travis-ci has left #timvideos | 08:01 | |
*** rohitksingh has joined #timvideos | 08:46 | |
*** xfxf has joined #timvideos | 09:54 | |
*** rohitksingh has quit IRC | 10:14 | |
*** f15h has joined #timvideos | 10:19 | |
*** f15h has quit IRC | 10:40 | |
mithro | _florent_: are you back yet? | 11:08 |
springermac | mithro: Any progress? | 11:47 |
mithro | springermac: a little and then I got distracted | 11:48 |
springermac | mithro: Find anything useful? | 12:45 |
mithro | springermac: so gst_fraction_from_value and such appear in the gstmodule.c file | 12:46 |
mithro | springermac: then it does | 12:47 |
mithro | pyg_register_gtype_custom (GST_TYPE_FRACTION, | 12:47 |
mithro | gi_gst_fraction_from_value, gi_gst_fraction_to_value); | 12:47 |
mithro | springermac: what I don't understand is why there isn't any documentation for that function | 12:52 |
mithro | springermac: it also looks like it is gtk2.0? | 12:53 |
springermac | mithro: The only thing I've been able to find is https://developer.gnome.org/gstreamermm/stable/classGst_1_1IntRange.html and https://lazka.github.io/pgi-docs/#Gst-1.0/classes/IntRange.html | 12:53 |
tpb | Title: gstreamermm: Gst::IntRange Class Reference (at developer.gnome.org) | 12:53 |
mithro | springermac: the C API for a int range is at http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstValue.html#gst-value-set-int-range | 12:57 |
tpb | Title: GstValue: GStreamer 1.0 Core Reference Manual (at gstreamer.freedesktop.org) | 12:57 |
mithro | thaytan: are IntRange new at all? Why isn't there a from/to for them? | 13:01 |
mithro | springermac: looking at what gstreamermm does | 13:03 |
mithro | springermac: https://github.com/GNOME/gstreamermm/blob/f8b196d9cb35ed58f279606d5765a1c5757b2680/gstreamer/src/value.hg#L152 | 13:03 |
tpb | Title: gstreamermm/value.hg at f8b196d9cb35ed58f279606d5765a1c5757b2680 · GNOME/gstreamermm · GitHub (at github.com) | 13:03 |
springermac | mithro: Success! Copying the gi_gst_fraction_* function and modifying them for IntRange plus a override in Gst.py works. | 13:11 |
mithro | springermac: yeah - I don't understand why they are needed yet | 13:11 |
*** rohitksingh has joined #timvideos | 14:43 | |
CarlFK | tumbleweed ... anyone.. can you give me pointers on how to package flcli. dh_make says "no top level Makefile" because there is no top level Makefile :D | 16:38 |
*** rohitksingh has quit IRC | 17:37 | |
*** rohitksingh has joined #timvideos | 17:50 | |
*** rohitksingh has quit IRC | 21:44 | |
*** raron has joined #timvideos | 21:49 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!