Wednesday, 2014-06-04

*** tpb has joined #timvideos00:00
*** tija has joined #timvideos00:04
*** tija has quit IRC00:29
shenkiaps-sids: i didn't get the system installed before going to bed00:47
shenkierr00:47
shenkithat was to ayush5304, who is offline00:47
aps-sidsI wonder why don't other students use IRCcloud/bouncers :)00:48
shenkiaps-sids: you should educate them :)01:11
CarlFKaps-sids: what bouncer do you use?01:29
aps-sidsCarlFK: I use IRCCloud over a free bouncer from bnc.im01:29
mithroshenki: We should just make a AMI which includes the Xilinx tools01:30
CarlFKaps-sids: thanks01:32
aps-sidsmithro: morning. You can talk about the error I mentioned yesterday?01:37
aps-sids"GError: could not link identity to feeder:default-pay"01:37
mithroaps-sids: yeah, sorry I didn't get back to it last night01:37
aps-sidsNo issues, this is the pipeline code is creating and using,01:38
aps-sids"videotestsrc is-live=true name=source ! identity name=identity silent=TRUE ! video/x-raw, format=(string)I420, width=(int)320, height=(int)240, framerate=(int)5, pixel-aspect-ratio=(int)1 ! gdppay name=feeder:default-pay ! multifdsink sync=false name=feeder:default buffers-max=500 buffers-soft-max=450 recover-policy=1"01:38
mithroaps-sids: you want to look at the gstreamer pipeline the component is generating01:38
CarlFKIs this the test stream?01:39
mithroyou can emulate that in gst-inspect01:39
aps-sidsCarlFK: yes mithro: let me try that01:39
mithroaps-sids: make sure you are using gst-inspect-1.001:39
mithrooh I mean gst-launch01:40
shenkimithro: if you create an ami, does amazon host it for you?01:40
mithroadd -v to get a heap more information01:40
shenkimithro: (for free)01:40
mithroshenki: not sure01:40
shenkiif yes, then that is a great hack01:40
shenkimithro: have you got your new server built?01:46
mithronot yet01:46
mithroaps-sids: that error means videotestsrc and identity were not able to negotiate common caps01:49
mithroactually I mean identity and gdppay01:51
CarlFK  http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-identity.html  identity — Pass data without modification01:51
tpbTitle: GStreamer Core Plugins 1.0 Plugins Reference Manual: identity (at gstreamer.freedesktop.org)01:51
CarlFKwhat's the point?01:51
aps-sidsthis is the output from gst-launch-1.0  http://paste.ubuntu.com/7584261/01:51
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)01:51
mithroaps-sids: cut the last couple of things off the pipeline and add a fakesink and see if that works01:53
mithroshenki: http://stackoverflow.com/questions/18650697/cost-of-storing-ami01:56
tpbTitle: amazon web services - Cost of storing AMI - Stack Overflow (at stackoverflow.com)01:56
shenkimithro: right. so $1.44 per month to store a Xilinx install HDD in the cloud01:59
shenki($0.08 * 18GB)01:59
mithroFor S3, $0.0300 per GB ?02:01
JoelwIt'd probably be fine to use an S3-backed instance for a build server, since you don't really care about persistence02:02
JoelwJust build the thing and shut the machine down straight away! :)02:02
shenkiit's not S3, it's the EBI02:02
shenkiJoelw: so you can have a hdd image in S3, mount it, and off you go?02:02
mithroshenki: you can create S3 or EBI AMI images02:02
shenkii don't get what you mean when you say "don't care about persistence"02:03
mithrohttp://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html02:03
tpbTitle: Creating an Amazon EBS-Backed Linux AMI - Amazon Elastic Compute Cloud (at docs.aws.amazon.com)02:03
Joelwshenki: That's right! You create an EC2 instance, it copies over the S3 image, boots and mounts it.02:03
shenkionce it's installed, yeah, we don't care about any future writes to the install dir02:03
mithrohttp://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html02:03
shenkicool02:03
tpbTitle: Creating an Amazon EBS-Backed Linux AMI - Amazon Elastic Compute Cloud (at docs.aws.amazon.com)02:03
JoelwWhen you shut it down, any changes you made on the drive are thrown away.02:03
shenkimithro: yeah, ive read those02:03
* shenki blocks tpb. too spammy02:03
shenkiJoelw: ok02:04
mithroJoelw: do you know what transfer costs you pay with launching an instance from S3?02:04
Joelwmithro: I think that's free since it'll be within the AWS network and same region.02:04
mithroJoelw: but that means your AMI has to be in S3 in the same region as you are launching right?02:05
JoelwI *think* you have to copy the AMI to every region where you want to use it with EC202:06
shenkimithro: i think we run the build system from the cheapest region02:06
shenkimithro: once it's installed, interaction is minimal02:06
shenkiso the latency once hurt02:06
shenkiespecially if i set up the scripting system i'm thinking of, where you run the build process with a post-commit hook02:07
mithroshenki: but booting a machine, doing a build then shutting down the machine is pretty sucky for developement iteration (it's okay for buildbot type stuff)02:07
shenkigit push builder02:07
shenkita-da02:07
JoelwYeah, it's probably not ideal for people to be SSHing in and editing their code on the EC2 instance02:07
shenkimithro: well, i suggest we set up a buildbot style system where people can do their development02:08
shenkia run of ise takes a few minutes at best, so having to commit + push isn't a huge amount of overhead02:08
mithroshenki: yes, I think we should have buildbot style stuff is good, but I think we want better for doing interactive developement?02:09
mithroshenki: starting up an EC2 instance takes roughly 2-5 minutes IIRC02:09
shenkimithro: if someone is doing development, then yeah, they can leave an instance running02:09
aps-sidsmithro: changing to fakesink only doesn't help. Removing many elements does.. I think I need to read the pipeline documentation again.02:09
mithrofrom the error, the issue is between the identity and gdppay objects02:10
shenkiim not sure how 'interactive' vhdl development can be. you've been spoilt by your javascript coding environments mithro :)02:11
Joelw:)02:11
mithroshenki: if it takes 2 minutes to compile and run tests then another 2 minutes to start the machine just doubled the time it takes02:11
JoelwI do 99% of my work in the simulator - it's only when I'm pretty sure it's all going to work that I'll bother trying it on hardware.02:12
shenkimithro: yeah02:12
JoelwOtherwise it's an hour of twiddling your thumbs, only to find that nothing happens.02:12
shenkii think if you're doing run jobs that only take two minutes, then it would be fine doing them on your dev laptop02:13
shenkiit's where you're doing a high effort par job that takes an hour to complete that you'd use the cloud solution02:13
mithroThe EC2 instance should be 5-10 times faster then your laptop right?02:13
shenkinot sure. have to test it02:13
JoelwProbably worth benchmarking that - it'd be a lot of effort if it was no faster than the average laptop!02:14
shenkithey're running on beefy server-class processors, shitloads of cache02:14
* shenki will try it with my 200MB ISE install after lunch02:14
JoelwWhich instance type were you thinking of using? The cheap ones are pretty slow.02:15
shenkiJoelw: i was trying to work it out last night. we don't need more than a pair of CPUs, but we do want beefy CPUs02:16
shenkiI guess the advantage in buying a bigger one, but not using the CPUs, is you have a better chance of monopolising the sever02:17
aps-sidsmithro: removing identity and gdppay also causes error.  This is running >> "videotestsrc ! identity ! gdppay ! multifdsink sync=false name=feeder:default buffers-max=500 buffers-soft-max=450 recover-policy=1"02:17
mithroaps-sids: so keep adding back in things until it stops working?02:18
aps-sidsdid that, adding anything to this errors02:18
JoelwProbably C3.large or C3.xlarge? It's worth looking at the reserved instance pricing if you want to get a better machine and leave it on all the time.02:18
mithroc3.large or c3.xlarge seems right02:20
mithroc3.8xlarge if more processors helps02:21
aps-sidsI'll read some documentation and be back after breakfast02:21
mithrohttp://www.adafruit.com/blog/2014/06/03/new-product-universal-qi-wireless-receiver-module/02:22
mithroaps-sids: what pipeline have you tried?02:22
aps-sidsThis works, adding anything to this errors "videotestsrc ! identity ! gdppay ! multifdsink sync=false name=feeder:default buffers-max=500 buffers-soft-max=450 recover-policy=1"02:23
aps-sidsmithro: adding is-live=true and even is-live=false errors , false is the default value of is-live. weird.02:27
aps-sidsCarlFK: just a sec02:27
mithroaps-sids: can you paste the complete pipelines?02:27
CarlFKmithro:  /j #gstreamer02:28
CarlFKoh wait, you are there...02:28
aps-sidsmithro: see for example, this  works >>  "videotestsrc ! identity  ! ximagesink"   but this doesn't >>  "videotestsrc is-live=false ! identity  ! ximagesink"02:29
CarlFKaps-sids:  #gstreamer <--02:29
*** tija has joined #timvideos02:32
aps-sidsmithro: should I compile new gstreamer myself? this version thing is causing many problems. i have to write many library functions myself (as I mentioned in my latest and last blog post)02:35
aps-sidsgst-inspect-1.0 videotestsrc  tells me is-live is a property02:37
mithroaps-sids: your stuck on 12.04 until you can get flumotion ported02:37
mithroaps-sids: being able to compile gstreamer yourself is probably a good thing to know how to do, but I'm unsure on how to get flumotion to use it02:37
mithrohttp://cgit.freedesktop.org/gstreamer/gst-plugins-base/log/gst/videotestsrc02:38
mithroCarlFK: why do you always say test with vagrant? it doesn't make any sense?02:40
CarlFKit is easy02:40
CarlFKvagrant up.. wait a min, vagrant ssh, try the command02:41
CarlFKand for things with a Vagrantfile, it grabs the base image so that we are all using the same base image and don't have to reconcile differences02:43
aps-sidsCarlFK: can you please tell me output of this command on Ubuntu 14.04?03:19
aps-sidsgst-launch-1.0 -v videotestsrc is-live=true name=source ! identity name=identity silent=TRUE ! video/x-raw, format=(string)I420, width=(int)320, height=(int)240, framerate=(int)5, pixel-aspect-ratio=(int)1 ! gdppay name=feeder:default-pay ! multifdsink sync=false name=feeder:default buffers-max=500 buffers-soft-max=450 recover-policy=103:19
CarlFKmithro: ^^^ there's another reason ;)03:20
CarlFKbash: syntax error near unexpected token `('03:20
CarlFKhmm03:20
aps-sidsoops, it should be in quotes03:21
aps-sidsgst-launch-1.0 -v "videotestsrc is-live=true name=source ! identity name=identity silent=TRUE ! video/x-raw, format=(string)I420, width=(int)320, height=(int)240, framerate=(int)5, pixel-aspect-ratio=(int)1 ! gdppay name=feeder:default-pay ! multifdsink sync=false name=feeder:default buffers-max=500 buffers-soft-max=450 recover-policy=1"03:22
aps-sidsAh, I found the error03:26
aps-sidsmithro: CarlFK:  pipeline is wrong, Reason: Gst.Fraction is not implemented in Gstreamer 1.2.1, As mentioned in my latest blog post, I'm manually adding it.03:28
mithroaps-sids: ?03:28
aps-sidsmithro: for some reason, overrides in this file are not available in my environment  http://cgit.freedesktop.org/gstreamer/gst-python/tree/gi/overrides/Gst.py?h=1.203:29
tpbTitle: gstreamer/gst-python - Python bindings for GStreamer (at cgit.freedesktop.org)03:29
aps-sidsI'm guessing that's due to old gstreamer version03:29
mithroaps-sids: do you have that file?03:29
aps-sidsits not there03:29
mithroaps-sids: what was the error above?03:29
aps-sids framerate=(int)5, pixel-aspect-ratio=(int)1  these should be (fraction)03:30
mithroaps-sids: you can look at the history of Gst.py file03:33
mithrohttp://cgit.freedesktop.org/gstreamer/gst-python/log/gi/overrides/Gst.py?h=1.203:33
tpbTitle: gstreamer/gst-python - Python bindings for GStreamer (at cgit.freedesktop.org)03:33
aps-sidsCarlFK: please do,  ls /usr/lib/python2.7/dist-packages/gi/overrides/03:47
CarlFKtheres a bunch of studd03:48
CarlFKstuff03:49
CarlFKsudo apt-get install vagrant03:50
CarlFKhttp://paste.ubuntu.com/7584768/03:50
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)03:50
aps-sidsthanks03:50
CarlFKI am going to sleep soon03:51
CarlFKvagrant init trusty http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box04:18
CarlFKvagrant up; vagrant ssh04:18
CarlFKWelcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)04:18
CarlFKand I am out - see ya04:29
*** CarlFK has quit IRC04:29
*** lukejohn has joined #timvideos04:57
*** lukejohn has left #timvideos04:57
aps-sidsmithro: around?06:14
mithroaps-sids: kind of06:14
aps-sidsmithro: I'm stuck here. I'm not sure about how to implement this override myself. Tried but got some errors. I'm talking about this > http://cgit.freedesktop.org/gstreamer/gst-python/tree/gi/overrides/Gst.py#n193 Can you please suggest how to do it?06:16
tpbTitle: gstreamer/gst-python - Python bindings for GStreamer (at cgit.freedesktop.org)06:16
mithrowhat errors are you getting? and what is your code?06:17
aps-sidsjust a sec06:18
aps-sidsmithro: code -->  https://github.com/aps-sids/flumotion-orig/commit/ce1d9b3de4881fe74cd55b22ca9c4a8273e4a22a06:21
aps-sidserror -- > http://pastebin.com/mcZATBYf06:21
tpbTitle: Implemented Gst.Fraction override · ce1d9b3 · aps-sids/flumotion-orig · GitHub (at github.com)06:21
tpbTitle: [Python] Traceback (most recent call last): File "/home/aps/workspace/gsoc/flumotion-o - Pastebin.com (at pastebin.com)06:21
mithroYour missing the most important line in your code06:22
mithroFraction = override(Fraction)06:22
mithrohttp://cgit.freedesktop.org/gstreamer/gst-python/tree/gi/overrides/Gst.py#n26906:22
tpbTitle: gstreamer/gst-python - Python bindings for GStreamer (at cgit.freedesktop.org)06:22
aps-sidsI thought so, added "from gi.overrides import override" and "Fraction = override(Fraction)" still same error06:23
aps-sidsmithro: what I understand from error is that, in "class Fraction(Gst.Fraction):" Gst.Fraction must be a GObject subclass06:25
mithroaps-sids: my current guess is you haven't gotten the override line correct06:25
mithroaps-sids: you are correct06:25
aps-sidsI'll ammend the commit06:26
mithroYou want to print out what Gst.Fraction is too06:26
aps-sidsIn [78]: Gst.Fraction()06:28
aps-sidsOut[78]: <gi.repository.Gst.Fraction at 0x1f03a50>06:28
aps-sidsnew commit -->  https://github.com/aps-sids/flumotion-orig/commit/da4e2cb84f4b883158c4fb17c5b31eecc2b745a606:28
tpbTitle: Implemented Gst.Fraction override · da4e2cb · aps-sids/flumotion-orig · GitHub (at github.com)06:28
mithrois it a subclass of GObject?06:29
aps-sidsI don't think so06:30
mithroaps-sids: well check, look at the object's parents06:31
aps-sidsIn [91]: Gst.Fraction.__class__06:31
aps-sidsOut[91]: gi.types.GObjectMeta06:31
mithroThis is before you try and modify it right?06:32
mithroI think you need to do the following06:33
mithrofrom ..importer import modules06:33
mithroGst = modules['Gst']._introspection_module06:33
mithrothen do your stuff06:33
mithrothen import gst06:34
aps-sidsI had tried this as well,  got  "Gst = modules['Gst']._introspection_module  ,, KeyError: 'Gst' "06:35
aps-sidsmithro: In [91]: Gst.Fraction.__class__ Out[91]: gi.types.GObjectMeta  .. this is after I committed these changes06:36
mithroaps-sids: you did this *before* ever importing Gst?06:36
aps-sidsyes06:36
aps-sidsthis  key is there in ipython06:37
aps-sidsi mean i can see it there06:37
mithroaps-sids: do you have an older version of that Gst.py file?06:37
aps-sidsI can't even locate this file06:38
aps-sidshttps://www.irccloud.com/pastebin/Dh90Oxn606:39
tpbTitle: Pastebin: Dh90Oxn6 | IRCCloud (at www.irccloud.com)06:39
shenkiwoah, the tubes are far less clogged today06:45
shenkithe xilinx installer is downloading at about 10MB/s; an order of magnitude faster than last night06:45
mithroaps-sids: what if you put the one from head in that directory?06:47
aps-sidsmithro: that works06:58
aps-sidsmithro: should I continue like this? Replication of results by other users would require them to add this file manually. And I'm not sure if this file is there in newer Gstreamer versions.07:03
mithroaps-sids: so you just need to figure out a way to make it work when its not in that directory07:03
*** slomo has joined #timvideos07:32
*** slomo has joined #timvideos07:32
*** sarwarc has joined #timvideos08:12
*** slomo has quit IRC08:48
*** slomo has joined #timvideos08:49
*** rohitksingh has joined #timvideos08:54
*** tija has joined #timvideos09:27
tijashenki: Did your changed UART driver work?09:42
shenkitija: no, i haven't looked at it yet09:55
shenkiive been playing with amazon ec209:55
tijashenki: it did not work for me that's why I am asking09:55
shenkitija: yeah, it hangs the kernel09:55
shenkitija: the kernel prints a error about something not being initalised, but it is being initialised09:56
shenkiso more digging required09:56
tijashenki: I wrote a mail to exar about driver update. Let's hope they come up with a new one soon.09:58
shenkitija: good idea09:58
shenkitija: did you tell them off for violating the copyright of the cdc-usb driver?09:58
shenkithey copied the source of the in-kernel driver and renamed most of it09:58
tijashenki: no I did not want to be rude :D10:00
shenki:)10:00
shenkiI'm joking :)10:00
tija:D10:01
*** rohitksingh1 has joined #timvideos10:04
*** rohitksingh has quit IRC10:05
*** mparuszewski has quit IRC10:11
*** tija has quit IRC10:34
aps-sidsmithro: I've posted about Gst.Fraction thing on my blog. Please see if you can suggest some ideas - http://aps-sids.github.io/porting-flumotion/2014/06/04/problems-with-gst-fraction/11:18
tpbTitle: Problems with Gst.Fraction | GSoC '14 Progress Blog (at aps-sids.github.io)11:18
*** tija has joined #timvideos11:22
shenkiI got ISE installed on a ec2 instance12:45
shenkitried to do a build on a free tier machine12:45
shenkiit's been pegged at 100% CPU for a few hours now; won't complete the ssh handshake12:46
*** tija has quit IRC13:12
*** Niharika has joined #timvideos13:42
*** sarwarc has quit IRC13:49
*** CarlFK has joined #timvideos13:54
*** ChanServ sets mode: +v CarlFK13:54
*** rohitksingh has joined #timvideos14:39
*** rohitksingh1 has quit IRC14:41
*** sarwarc has joined #timvideos15:42
slomoaps-sids: just update your gst-python to 1.2.115:47
slomoaps-sids: http://pastebin.com/sS69RmJa15:48
tpbTitle: >>> from gi.repository import Gst >>> Gst.Fraction (at pastebin.com)15:48
slomoaps-sids: actually this was even in gst-python 1.2.0 already15:49
slomoaps-sids: http://cgit.freedesktop.org/gstreamer/gst-python/tree/gi/overrides/Gst.py#n193  here's the magic code for that15:51
tpbTitle: gstreamer/gst-python - Python bindings for GStreamer (at cgit.freedesktop.org)15:51
*** slomo has quit IRC16:04
*** ayush3504 has joined #timvideos16:15
*** mparuszewski has joined #timvideos16:23
*** slomo has joined #timvideos16:24
*** slomo has joined #timvideos16:24
*** sarwarc has quit IRC16:50
*** Niharika has left #timvideos16:50
*** sarwarc has joined #timvideos17:07
*** slomo has quit IRC17:46
*** sarwarc has quit IRC18:22
*** sarwarc has joined #timvideos18:32
*** sarwarc has joined #timvideos18:32
*** sarwarc has quit IRC18:41
*** sarwarc has joined #timvideos18:41
*** slomo has joined #timvideos18:42
*** slomo has joined #timvideos18:42
*** ayush3504 has quit IRC18:55
*** ayush3504 has joined #timvideos18:56
*** sarwarc has quit IRC19:43
*** rohitksingh1 has joined #timvideos20:39
*** rohitksingh has quit IRC20:40
*** rohitksingh1 is now known as rohitksingh20:46
*** slomo has quit IRC20:58
*** CarlFK has quit IRC23:26
mithroCARAM_: your blog no longer seems to support comments?23:42
*** rohitksingh has quit IRC23:49

Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!