*** tpb has joined #timvideos | 00:00 | |
shenki | gsoc tshirt arrived today! | 01:16 |
---|---|---|
*** CarlFK has quit IRC | 02:03 | |
*** CarlFK has joined #timvideos | 03:04 | |
*** ChanServ sets mode: +v CarlFK | 03:04 | |
*** thaytan has quit IRC | 03:40 | |
*** thaytan has joined #timvideos | 03:42 | |
*** ChanServ sets mode: +v thaytan | 03:42 | |
*** CarlFK has quit IRC | 04:52 | |
*** CarlFK has joined #timvideos | 04:53 | |
*** ChanServ sets mode: +v CarlFK | 04:53 | |
aps | CarlFK: mithro , need some help. I need to convert (hex encoded, I think) characters like \x3c in a string/json object to corresponding ascii characters. I have been fiddling with .decode() and .encode() in python, but no luck. Any ideas please. | 05:06 |
aps | s/fiddling/playing | 05:07 |
mithro | aps: do you have the actual string? | 05:07 |
CarlFK | aps: where does the string come from? | 05:07 |
CarlFK | yeah, that too. | 05:07 |
aps | this, for example -- http://memberdirectory.nasscom.in/mms_company_free_search_results?page=43 | 05:08 |
aps | its bascially encoded html | 05:08 |
CarlFK | Content-Type: text/javascript; charset=utf-8 | 05:08 |
CarlFK | (might help) | 05:08 |
CarlFK | http://jsonlint.com/ says Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[' | 05:10 |
tpb | Title: JSONLint - The JSON Validator. (at jsonlint.com) | 05:10 |
CarlFK | hmm... kinda looks like a string to me.. | 05:11 |
aps | result = data.decode('utf-8') | 05:13 |
aps | ascii = result.encode('ascii', 'ignore') | 05:13 |
aps | gives UnicodeEncodeError: 'ascii' codec can't encode character u'\xab' in position 27962: ordinal not in range(128) | 05:13 |
CarlFK | >>> format(" \x3cdiv class=\"page-heading\"\x3e\x3ch1\x3eSEARCH RESULTS 1721") | 05:17 |
CarlFK | ' <div class="page-heading"><h1>SEARCH RESULTS 1721' | 05:17 |
CarlFK | that works for that.. not saying its the right way to decode it, its just my guess | 05:19 |
CarlFK | >>> import requests | 05:29 |
CarlFK | >>> session = requests.session()>>> response = session.get("http://memberdirectory.nasscom.in/mms_company_free_search_results?page=43") | 05:29 |
CarlFK | >>> t = response.text | 05:29 |
CarlFK | >>> d = eval(t) | 05:29 |
CarlFK | >>> d.keys() | 05:29 |
CarlFK | ['company'] | 05:29 |
*** 21WABBQ6Y has quit IRC | 05:29 | |
*** scrollback2 has joined #timvideos | 05:31 | |
aps | I think this will do for now. Thanks CarlFK :) | 05:33 |
CarlFK | aps: I had a python person use import pprint ... pprint() and call it json. it looks similar to json, but it isn't. | 05:34 |
CarlFK | I had to use eval(t) to parse it. yuck. | 05:34 |
xfxf | CarlFK: that's the way that json was meant to be used originally in js... | 05:37 |
xfxf | as terrible as that is | 05:38 |
CarlFK | oh my | 05:38 |
mithro | the JSON people make some pretty terrible choices - using JS syntax was not really one of them | 06:02 |
xfxf | mithro: the syntax is fine, telling people originally to use eval() to pull it in is not fine | 06:07 |
mithro | xfxf: it has its advantages | 06:07 |
mithro | xfxf: security not being one of them however | 06:07 |
xfxf | when you throw away security, all sorts of convenient things can happen ;) | 06:08 |
CarlFK | sounds like my debconf video report: Video is easy as long as you don't care about quality or any sort of deliverable. | 06:09 |
CarlFK | http://whiteboard.debian.net/dc14-video_4f66e6.wb | 06:09 |
tpb | Title: dc14-video_4f66e6 - whiteboard (at whiteboard.debian.net) | 06:09 |
xfxf | CarlFK: dude you've done debconf with me before | 06:11 |
xfxf | these things are almost a case of having good management and coordination | 06:12 |
xfxf | having run teams for over a decade i have methodologies to get broken teams functional, but they require being confrontational | 06:13 |
xfxf | which apparently has made me friends | 06:13 |
CarlFK | you should fix fosdem ;) | 06:14 |
CarlFK | 22 tracks, core team of 5 and various people interested in helping out. sometimes. | 06:15 |
xfxf | tbh i'm confident i could, and i'd get results, but i might not be the most popular person afterwards | 06:15 |
mithro | xfxf / CarlFK: well if I have my way you'll be all automated out of a job eventually ;) | 06:15 |
CarlFK | mithro: hurry up! :p | 06:16 |
xfxf | mithro: fine with me, means i can spend more time hacking on code | 06:16 |
mithro | CarlFK: finding me some sysadmins and a secretary would go a long way :P | 06:16 |
CarlFK | Ill take a few of those too. | 06:16 |
xfxf | ^^ | 06:17 |
CarlFK | xfxf: have any time for pyvideo now? | 06:22 |
xfxf | oh | 06:23 |
xfxf | sorry, yeah, indeed | 06:23 |
xfxf | today's been a bit of a everything is happening at once day | 06:23 |
xfxf | i need to manually update the metadata first (don't ask) | 06:23 |
CarlFK | python ck_setup.py | 06:24 |
*** slomo has joined #timvideos | 06:24 | |
CarlFK | do that first - I may fall asleep waiting for data updates | 06:24 |
xfxf | my veyepar is a forked version from code you had about 13 months ago | 06:25 |
xfxf | i'm assuming i should git stash/update first | 06:25 |
xfxf | you're using django south, right? | 06:25 |
CarlFK | nope | 06:26 |
xfxf | oh boy | 06:26 |
xfxf | schema changes? | 06:26 |
CarlFK | 13 months.. probably | 06:26 |
xfxf | i'll figure it out | 06:26 |
CarlFK | django 1.7 just came out. it has migrations built in. figuring out how to use it is on my list. might happen in a few months | 06:29 |
xfxf | rax | 06:43 |
xfxf | is that racksapce? | 06:43 |
xfxf | and where does that go? | 06:43 |
xfxf | i don't believe we (next day video) should be storing video on behalf of clients | 06:43 |
xfxf | there are issues both sides doing that | 06:44 |
xfxf | heh, pip against requirements.txt is installing a _lot_ of new stuff | 06:47 |
CarlFK | yes, and not sure were. something about cdn. | 06:52 |
xfxf | probably to a ndv account | 06:53 |
xfxf | i'd look into that | 06:53 |
xfxf | if you're hosting these, and it's linked from pyvideo, you're making yourself responsible for archiving this stuff long term | 06:54 |
xfxf | what was wrong with archive.org for hosting foss videos? | 06:54 |
xfxf | also you've changed this schema quite a bit and exporting/importing json is freaking out | 06:55 |
CarlFK | archive.org errors on me now and then, as in I can't figure out why, then months later it works again | 06:56 |
CarlFK | seems to be working better lately, so feel free to use it. hmm.. I don't think it will stream - like they throttle it such that it doesnt play, so pyvideo lists it as "download only" | 06:57 |
xfxf | i emailed you the json file with the conf data in it | 06:57 |
xfxf | ah, right. that makes sense, i wondered about that | 06:57 |
xfxf | with pyvideo data, can i change the metadata once the files are uploaded? | 06:58 |
xfxf | like, if i want to add mp4 or webm files linked elsewhere later | 06:58 |
CarlFK | yes, until you flip state from draft to live, then no. | 06:59 |
xfxf | the api doesn't support updating? | 06:59 |
CarlFK | yes, until you flip state from draft to live, then no. | 06:59 |
xfxf | the answer to that specific question is evidently no | 07:00 |
xfxf | who do i bug to get admin access to it? | 07:00 |
xfxf | i can see a ton of cases where i will need to change what is pushed up | 07:00 |
xfxf | conferences change their mind all their time, as you know | 07:00 |
CarlFK | I don't have much problem once the event ends | 07:01 |
xfxf | i do | 07:02 |
xfxf | this event for example updated all of their youtube metadata after i pushed it up | 07:02 |
xfxf | and want me to push _that_ to pyvideo | 07:02 |
xfxf | i've manually copy and pasted everything back in. yay. | 07:02 |
CarlFK | 2:20 - I need to get to bed - need anything before I go? | 07:21 |
CarlFK | im off | 07:26 |
*** Kripton has joined #timvideos | 07:36 | |
mithro | Hi Kripton! | 07:36 |
Kripton | Hi there :) | 07:36 |
mithro | welcome to our little corner of the internet | 07:36 |
Kripton | thank you. | 07:37 |
Kripton | about your question where I bought the device: some chinese merchant via aliexpress | 07:37 |
mithro | Kripton: how did you find out about our project? | 07:37 |
Kripton | might take some time to arrivce though due to german customs | 07:37 |
Kripton | I think it was mainly due to a mailing list post by you about the LKV373 device | 07:38 |
Kripton | For a youth-center in the city I live I created a system similar to yours where you have several sources/cameras streaming to one PC. Then the sources are mixed/switched and streamed to the internet | 07:39 |
Kripton | and currently we are using mainly analog video to USB grabbers, webcams and IEEE1394 (dv) as sources | 07:39 |
Kripton | but the latest camera no longer has dv1394 but HDMI and I was looking for a way to feed that into our system | 07:40 |
Kripton | then I came accross the LKV373 and it looks just perfect | 07:40 |
Kripton | HDMI -> H264 via USB (UVC) would've even better but is still very expensive | 07:40 |
mithro | Kripton: we are eventually hoping to change that | 07:41 |
Kripton | I know :) I even thought about buying the Atlys board since I had a project at university that had VGA input to an FPGA, we modified the video signal and output it via VGA. But I think I should concentrate on software first | 07:42 |
Kripton | FPGA interest is high but experience is very limited | 07:42 |
mithro | Kripton: well, if you start contributing to the project, I have been known to send people hardware | 07:42 |
Kripton | that's cool. But since my girlfriend currently studies I could even get the Atlys for the academic price | 07:44 |
Kripton | you're currently planning to use MJPEG to encode the video coming from the HDMI, right? are there any plans/ideas to use VP8 or something? There seems to be an FPGA-implementation here: http://www.webmproject.org/hardware/ | 07:47 |
tpb | Title: The WebM Project | WebM Video Hardware RTLs (at www.webmproject.org) | 07:47 |
Kripton | However, they never replied to me :/ | 07:47 |
mithro | Kripton: they do say they aren't interested in hobbists | 08:23 |
Kripton | oh okay | 08:23 |
shenki | mmm. because hobby projects never got us anywhere did they | 09:55 |
Kripton | gotta go. bye | 10:12 |
*** Palash has joined #timvideos | 11:11 | |
*** scrollback2 has quit IRC | 11:34 | |
*** 1JTAAC6DV has joined #timvideos | 11:36 | |
*** Niharika_ has joined #timvideos | 12:34 | |
*** 1JTAAC6DV has quit IRC | 13:05 | |
*** scrollback2 has joined #timvideos | 13:10 | |
*** Palash has quit IRC | 14:10 | |
*** CarlFK has quit IRC | 14:10 | |
*** techman83 has quit IRC | 14:10 | |
*** Palash has joined #timvideos | 14:10 | |
*** techman83 has joined #timvideos | 14:16 | |
*** ChanServ sets mode: +v techman83 | 14:16 | |
*** Palash has quit IRC | 14:18 | |
*** CarlFK has joined #timvideos | 14:34 | |
*** ChanServ sets mode: +v CarlFK | 14:34 | |
CarlFK | xfxf: im up agin | 14:42 |
*** Palash has joined #timvideos | 15:12 | |
*** tpb has joined #timvideos | 15:30 | |
*** xobs has quit IRC | 15:31 | |
*** andi-m has quit IRC | 15:31 | |
*** andi-m has joined #timvideos | 15:34 | |
*** andi-m has quit IRC | 15:46 | |
*** andi-m has joined #timvideos | 15:46 | |
*** Niharika_ has quit IRC | 16:00 | |
*** Niharika_ has joined #timvideos | 16:08 | |
*** slomo has quit IRC | 17:01 | |
*** Palash has quit IRC | 17:25 | |
*** CarlFK has quit IRC | 17:36 | |
*** Niharika_ has quit IRC | 17:44 | |
*** Palash has joined #timvideos | 17:55 | |
*** CarlFK has joined #timvideos | 18:11 | |
*** ChanServ sets mode: +v CarlFK | 18:11 | |
*** Palash has quit IRC | 18:28 | |
*** skay has joined #timvideos | 19:25 | |
*** skay is now known as Guest19201 | 19:25 | |
*** Guest19201 has left #timvideos | 19:29 | |
*** CarlFK has quit IRC | 20:35 | |
*** flavioribeiro has joined #timvideos | 21:36 | |
*** flavioribeiro has quit IRC | 21:38 | |
*** flavioribeiro has joined #timvideos | 21:41 | |
*** CarlFK has joined #timvideos | 21:46 | |
*** ChanServ sets mode: +v CarlFK | 21:46 | |
*** flavioribeiro has quit IRC | 21:48 | |
*** flavioribeiro has joined #timvideos | 21:54 | |
*** flavioribeiro has quit IRC | 21:56 | |
*** CarlFK has quit IRC | 22:32 | |
*** flavioribeiro has joined #timvideos | 23:29 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!