Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-01-10

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:02 w4ffles joined #openframeworks
01:13 w4ffles joined #openframeworks
01:19 gabrielstuff joined #openframeworks
01:44 GuidovanPossum joined #openframeworks
01:45 GuidovanPossum joined #openframeworks
01:55 admsyn joined #openframeworks
02:02 w4ffles joined #openframeworks
02:10 w4ffles joined #openframeworks
02:40 w4ffles joined #openframeworks
02:45 w4ffles joined #openframeworks
02:52 admsyn joined #openframeworks
03:07 gabrielstuff joined #openframeworks
04:38 vade joined #openframeworks
04:56 gabrielstuff joined #openframeworks
05:16 barzi joined #openframeworks
05:19 gabrielstuff joined #openframeworks
05:21 ahsan joined #openframeworks
06:38 micr0 joined #openframeworks
06:45 w4ffles joined #openframeworks
07:21 w4ffles joined #openframeworks
08:33 DrCode joined #openframeworks
08:58 mhashmi joined #openframeworks
10:06 gabrielstuff joined #openframeworks
10:27 debu joined #openframeworks
10:39 barzi joined #openframeworks
11:20 gabrielstuff joined #openframeworks
11:31 gabrielstuff joined #openframeworks
11:56 mhashmi joined #openframeworks
12:12 bilderbuchi joined #openframeworks
13:03 mhashmi joined #openframeworks
13:05 mhashmi_ joined #openframeworks
14:05 mhashmi joined #openframeworks
15:20 mehka joined #openframeworks
16:05 mhashmi joined #openframeworks
16:11 ar_tama joined #openframeworks
16:19 mhashmi joined #openframeworks
16:23 tapout joined #openframeworks
16:24 micr0 joined #openframeworks
17:09 admsyn joined #openframeworks
17:19 mhashmi joined #openframeworks
17:42 dantheman joined #openframeworks
17:42 dantheman yo yo yo
17:43 admsyn heyy
17:46 admsyn are you set up at newinc?
18:05 micr0 joined #openframeworks
18:24 ali_ joined #openframeworks
18:36 kylemcd joined #openframeworks
18:41 reqshark joined #openframeworks
18:41 admsyn hey everyone
18:45 kylemcd hey admsyn!
18:45 kylemcd i’m at new inc with 6 other people
18:45 kylemcd we’re hacking on issues
18:46 admsyn nice
18:46 kylemcd caitlin is working on the survey
18:46 dantheman I FIXED ONE
18:46 kylemcd zach on the project generator
18:46 dantheman admsyn: what are you working on
18:46 ofzach joined #openframeworks
18:46 admsyn cool, I'm just deprecating some things :)
18:47 admsyn basically I'm doing the sound issue that's assigned to me, which has gotten a little more wide reaching than expected but hey
18:47 admsyn then I'll be doing whatever's on the milestone list :)
18:53 kylemcd sweet
18:53 kylemcd are you on skype or google hangouts?
18:53 admsyn nope, could be though
18:53 kylemcd yeah get on one i just want to say hi! :)
18:54 kylemcd i’m kyle@kylemcdonald.net on both
18:56 admsyn https://plus.google.com/hangout​s/_/gsrfhtrukpknw6qtkxqj5yvl64a
18:58 admsyn @kylemcd
18:58 kylemcd ah got you
19:14 dantheman admsyn:
19:14 dantheman question
19:14 admsyn yep
19:15 dantheman got to line 105 on ofAVFMovieRenderer.m
19:15 dantheman go*
19:15 admsyn yep
19:15 dantheman how do you pass in options in the options section
19:15 dantheman http://stackoverflow.com/questions/410​1380/avurlasset-refuses-to-load-video
19:15 dantheman URLs refuse to load
19:16 dantheman and I'm not sure how to do the obj-c
19:16 admsyn options are an NSDictionary, the literal syntax is like @{@"key":value}
19:16 admsyn if you opt-click the URLAssetWithURL function it'll take you to the docs which spell out the options
19:16 dantheman right
19:16 dantheman ok
19:16 dantheman is it just like [AVURLAssetReferenceRestrictionsKey: AVAssetReferenceRestrictionForbidNone]
19:17 dantheman obj-c is so weird to me
19:17 admsyn it'd be @{AVURLAssetReferenceRestrictionsKey : AVAssetReferenceRestrictionForbidNone} but yeah
19:17 admsyn that one's particularly verbose :)
19:18 dantheman ahh
19:18 dantheman ok
19:20 mhashmi joined #openframeworks
19:20 dantheman NSUInteger is not an Object-C object?
19:20 dantheman this stuff is cray cray
19:21 dantheman so I need to case it to an DICT?
19:21 admsyn no it's just a typedef for I think an unsigned long
19:21 dantheman right
19:21 admsyn if you need a number it'd be @(theNumber)
19:21 admsyn *if you need an NSNumber
19:21 dantheman that worked
19:22 admsyn 👍
19:22 dantheman but still no dice loading an RTSP stream
19:22 dantheman :/
19:22 dantheman or remote video
19:22 admsyn better error at least?
19:33 bilderbuchi joined #openframeworks
19:33 dantheman joined #openframeworks
19:34 bilderbuchi heyho
19:34 kylemcd hey!
19:34 admsyn hey bilderbuchi
19:37 bilderbuchi hey all. so, is there a dev drive going on already?
19:43 mhashmi joined #openframeworks
19:45 vade joined #openframeworks
19:46 admsyn bilderbuchi: yepp there's a few people at newinc in NY
19:57 halfdanj joined #openframeworks
19:58 halfdanj hey
19:59 bilderbuchi hey!
20:04 kylemcd hey halfdanj :)
20:04 kylemcd how are things? how is the documentation?
20:04 halfdanj things are good! I'm going to work a bit on the doc this weekend. Ill spend a bit time today, and somre more tomorrow i think
20:05 halfdanj are you at new inc?
20:14 kylemcd yeah
20:14 kylemcd we’re all here hacking together
20:15 halfdanj cool, 0.9.0 issues, or new stuff?
20:20 * admsyn is doing 0.9.0
20:28 pizthewiz joined #openframeworks
20:31 kylemcd it’s basically 0.9.0 or anything else we can think of
20:31 admsyn is there consensus on whether we use "print" or "log" to describing writing things to the console?
20:31 admsyn e.g. printToConsole() vs logToConsole()
20:31 kylemcd do you see both?
20:31 kylemcd oh i see printToConsole in an ios
20:31 admsyn there's a few printWhatevers, vs ofLog
20:32 admsyn so it looks like print for function names, and ofLog is just its own thing
20:32 kylemcd for printing to console we should use the word “log"
20:32 bilderbuchi I think there are still some holdovers from before we had oflog, but today it should be oflog, afaik
20:32 kylemcd and yes, ofLog() is the way to go
20:32 admsyn alright, cool
20:33 admsyn more concretely, I'm adding a function that prints a sound device list to the console. So, call it logToConsole not printToConsole?
20:34 admsyn or rather logDeviceList()
20:34 admsyn which looks a little weird I suppose but a little weird > inconsistent
20:34 kylemcd ah i see
20:34 kylemcd one sec
20:35 admsyn this is the discussion https://github.com/openframeworks/openFr​ameworks/pull/3247#issuecomment-58884956
20:36 admsyn I've already done the operator<< thing, so I guess an alternative would be to have no function at all
20:36 admsyn though it's not really intuitive to do e.g. ofLog() << soundStream.getDeviceList()
20:36 admsyn for a beginner anyway, vs the actual function
20:37 kylemcd just spoke with zach
20:37 kylemcd he suggests printDeviceList and getDeviceList
20:37 admsyn alright thne
20:37 admsyn *then
20:38 mattfelsen joined #openframeworks
20:40 admsyn I wonder if it'd be helpful to have something like a "tricks" folder of examples with things like operator<< usage :)
20:42 pizthewiz A section in the ofBook?
20:44 bilderbuchi a logging example which shows this? oh, wait... ;-)
20:44 mhashmi joined #openframeworks
20:46 admsyn fair enough, but there's more to the << and >> operators than logging :p
20:48 admsyn at the moment there's not much in OF that implies that << is good for any more than logging, except function signatures that read like ao$#;:9324bkljasf to begginers :)
20:48 admsyn I assume anyway
20:48 _pizthewiz joined #openframeworks
20:54 ofzach joined #openframeworks
21:01 vade dantheman: you here?
21:01 dantheman yea
21:01 vade ok
21:01 vade this is easier
21:01 dantheman about to pack up
21:01 dantheman yeah
21:01 vade https://github.com/openframeworks/openFrameworks
21:01 vade Ah. ok
21:01 pizthewiz joined #openframeworks
21:01 vade I suspect its querying for a asynchronous key that a stream might not have
21:01 vade like duration
21:01 dantheman https://github.com/openframeworks/op​enFrameworks/blob/master/libs/openFr​ameworks/video/ofAVFMovieRenderer.m
21:01 dantheman ahh
21:01 dantheman ok
21:02 dantheman its all there
21:02 dantheman https://github.com/openframeworks/ope​nFrameworks/blob/master/libs/openFram​eworks/video/ofAVFMovieRenderer.m#L88
21:02 vade ah but thats not queried
21:02 dantheman ok
21:02 dantheman remember I'm a nooooob at obj-c
21:04 vade @dantheman whats the easiest sample code to debug this?
21:04 dantheman https://github.com/openframeworks/openFramework​s/tree/master/examples/video/videoPlayerExample
21:04 dantheman replace the file with https://github.com/openframeworks/openFramework​s/tree/master/examples/video/videoPlayerExample
21:04 dantheman err the stream
21:05 dantheman there https://github.com/openframeworks/open​Frameworks/blob/master/examples/video/​videoPlayerExample/src/ofApp.cpp#L12
21:05 vade ok
21:05 dantheman I need to put that super call in
21:06 vade yea or just comment out the method
21:06 vade otherwise anything NSOBject or what not needs to do with observeValue fails
21:07 _pizthewiz joined #openframeworks
21:08 dantheman ahh
21:08 dantheman ok
21:08 dantheman question where do I find Apple's sample code?
21:09 dantheman nevermind
21:09 vade https://developer.apple.co​m/library/ios/navigation/
21:09 vade or
21:09 vade https://developer.apple.com/library/mac/navigation​/#section=Resource%20Types&amp;topic=Sample%20Code
21:09 vade mac
21:10 dantheman ahh
21:10 dantheman nice
21:11 vade god how fucking big is the OF repo these days?
21:11 vade its fucking huuuugeee
21:12 dantheman yeah
21:12 dantheman we're working on it
21:13 pizthewiz joined #openframeworks
21:13 dantheman which project did you use?
21:13 dantheman SimplePlayer?
21:14 vade SimplePlayer dies
21:14 vade but GreenScreen works
21:14 vade override the loadURL method in GreensCreen document or whatever
21:14 vade with the URL of the m3u8
21:15 dantheman ahh ok
21:16 admsyn halfdanj: are you using \deprecated at all?
21:18 admsyn looks like your convention is to use it as a tag but not add a message?
21:19 admsyn or actually it looks like it's chris baker that's added it to ofThread at least. Do you have an opinion on how we should use it?
21:22 vade ok i havent touched OF in a long time
21:22 vade why dont examples have project files?
21:23 admsyn the downloaded zip does but the repo doesn't, you can copy the one in scripts/osx/template though
21:23 dantheman oh
21:23 dantheman oh oh oh
21:23 dantheman yeah cause they are made when the releases are made
21:23 dantheman run yeee old PG
21:24 dantheman https://github.com/openframeworks/openFramewo​rks/tree/master/apps/devApps/projectGenerator
21:24 dantheman click the button
21:24 vade I really hate that shit
21:24 * admsyn just copies the template vOv
21:24 dantheman <--Generate
21:24 bilderbuchi joined #openframeworks
21:24 dantheman well vade we ship them in the releases
21:24 mhashmi joined #openframeworks
21:24 dantheman sooo
21:24 dantheman just not in the repo
21:24 dantheman *tries to save space
21:25 pizthewiz And to cause perpetual confusion ;0)
21:25 pizthewiz Using a project from 0.8.4 won't work well though since the frameworks and what not changed no?
21:26 vade so
21:26 dantheman ok that works
21:26 vade dantheman: did you mention you get an exception trying to load the video track?
21:26 vade in open frameworks master ?
21:26 dantheman yeah
21:26 dantheman this worked on the test app
21:27 dantheman I think its just a different implementation
21:27 dantheman hmmm
21:27 vade explain what that means
21:27 dantheman playerItemWithURL
21:27 dantheman playerItemWithAsset:asset
21:27 dantheman see
21:28 dantheman in OF its staying playerItemWithAsset
21:28 dantheman and hands it a AVURLAsset
21:28 dantheman in this sample
21:28 dantheman it says here's a url
21:28 dantheman play it
21:28 vade I dont think thats the issue, playerItemWithURL uses playerItemWithAsset[AVURLAsset AssetWithURL or whatever]
21:28 dantheman hmmm
21:28 dantheman ok
21:28 vade just a helper method. Everything uses as AVAsset of some sort internall
21:28 vade internally, its just a helper
21:29 dantheman ahh
21:29 dantheman ok
21:29 sebllll joined #openframeworks
21:29 dantheman ok
21:29 dantheman I think I'm checking out
21:29 dantheman been at this a while
21:29 dantheman I fixed ONE BUG
21:29 dantheman haha
21:30 dantheman and have my Eclipse bring up guide images ready
21:31 vade ah well the issue is you assume theres a video track
21:31 vade there might not be
21:31 vade objectAtIndex:0 is a bad access if the array is nil
21:32 vade ok now I dont crash
21:36 pizthewiz -[NSArray firstObject] is a nice alternative
21:37 ofzach joined #openframeworks
21:38 vade Dan you were right
21:38 vade its right in the docs:
21:38 vade To create and prepare an HTTP live stream for playback. Initialize an instance of AVPlayerItem using the URL. (You cannot directly create an AVAsset instance to represent the media in an HTTP Live Stream.)
21:38 vade wtf is that fucking shit.
21:38 vade oh he left
21:39 vade ok, ill prep a fork and a PR
21:39 admsyn thank you!
21:39 vade this is fucking stupid as hell
21:39 vade that seems like a leaky asbtraction
21:39 vade and a detail that should be hidden from the API client
21:39 vade I MEAN wtf
21:39 vade just make a special kind of AVURLAsset or something I dont know
21:39 vade god.
21:40 admsyn I'm only half following this but do you mean the OF API or the AVFoundation one?
21:42 vade the AVFoundation one
21:42 vade its stupid as fuck
21:44 bilderbuchi joined #openframeworks
21:48 kylemcd nice pr admsyn :)
21:49 debuuu joined #openframeworks
21:49 admsyn thanks I'm actually just doing a thing so don't merge yet pretty please
21:50 admsyn I forget to make the new functions static members instead of new globals
21:50 admsyn but it's actually kinda tricky since the implementation relies on the OF_SOUND_STREAM_TYPE switcheroo so they're not trivially static
21:52 vade im fucking confused
21:53 vade I just pulled master into my fork
21:53 vade im up to date
21:53 vade where the fuck is ofAVFMovieRenderer.m ?
21:54 admsyn libs/openFrameworks/video/
21:54 ofzach joined #openframeworks
21:54 vade not for me
21:54 admsyn huh
21:54 vade yea, thus my confusion
21:55 admsyn what's in there now?
21:55 admsyn the vid folder
21:55 pizthewiz I've got it too in my local workingspace
21:55 pizthewiz https://github.com/openframeworks/op​enFrameworks/blob/master/libs/openFr​ameworks/video/ofAVFMovieRenderer.h
21:56 vade oh im an ass
21:56 vade I see what happened
21:57 vade I hadnt updated my forked master in some time
21:57 vade derp
21:57 vade :)
21:58 vade ok yes
21:58 admsyn woop
21:58 kylemcd :)
21:58 vade god im tired of computers :P
21:58 kylemcd seriously, so done with computers
21:58 admsyn program via secretary
21:58 vade there we go, now the build works, and HLS is about to work
21:58 pizthewiz 🙌
22:01 vade kylemcd: I havent dont a PR for OF like ever - anything I should know?
22:01 pizthewiz admsyn: How is the deployment target OS set in the OF Xcode project?
22:01 kylemcd no, we basically dropped any special guidelines around submitting PRs
22:01 pizthewiz It doesn't seem to be defined…
22:01 kylemcd so just submit a PR to master as you would any other repo
22:01 admsyn kylemcd: actually, the static member migration / depreciation etc stuff is too irrelevant to this PR imo, the ofSoundDevice one can probably go now and I'll do a new one for that migration
22:02 vade so what your saying kylemcd is I can curse a lot ? :D
22:02 kylemcd admsyn: cool
22:02 kylemcd vade: you have to be creative enough that your commit doesn’t show up when we grep the 7 swear words
22:02 kylemcd ;)
22:03 bilderbuchi vade: one thing, put your pr stuff into a separate branch of your repo, this avoids potential confusion (but you probably know _that_ already)
22:03 admsyn I so wanted to do a PR that's just "Fixed that shit" for these lines https://github.com/openframeworks/o​penFrameworks/blob/master/libs/open​Frameworks/sound/ofSoundPlayer.h#L6
22:03 vade Yea Ive dont that
22:03 admsyn when they said "\todo: FIX THIS SHIT!"
22:03 vade I have a branch in my repo called HLS_Fix or something
22:05 vade *done that
22:09 ofzach joined #openframeworks
22:10 bilderbuchi joined #openframeworks
22:13 bilderbuchi ok, folks, i gotta sign off. see ya!
22:14 kylemcd likewise, have to head out now..
22:14 kylemcd great hanging out everyone :)
22:18 vade how the hell do I request texture only mode in video player ?
22:18 vade im using setUseTexture(true)
22:22 dantheman joined #openframeworks
22:22 vade yea I dont see how this can support non 1:1 pixel aspect ratios
22:34 pizthewiz joined #openframeworks
22:49 vade dantheman: so
22:49 vade did you see the notes above?
22:50 vade in fact, you do have to use playerItemWithURL
22:50 vade however, it doesnt fix it in OF
22:50 vade because something tries to get pixel copy access in update even if you say useTexture, but some videos dont have a 1:1 pixel aspect ratio and it eats shit and dies
22:51 vade so now im deep in the bowels of AVF in OF and I dont get all the templeting C++ stuff so I cant actually find out why copy pixels is actually needed
22:51 vade and if I comment it out it still doesnt draw because even if I say useTexture it doesnt and says the texture is not allocated
22:51 vade so, dont stream in OF
22:51 vade :P
22:52 vade also you get a lot of limitations if you add in HLS streaming like
22:52 vade you cant set rate or go to an exact frame, etc
22:52 vade OR YOU CAN QUIT ON ME DAN
22:52 vade OR YOU CAN QUIT
22:54 dantheman joined #openframeworks
22:57 dantheman :(
22:57 dantheman kk
22:58 vade not sure honestly what the best action is
22:58 vade I can get the movie to play
22:58 vade (the m3u8)
22:58 vade but if I setUseTexture it doesnt draw
22:59 vade if I remove the pixel copying shit, it still doesnt draw
22:59 vade I dont really what is supposed to happen so...
23:11 vade god I hate apple
23:11 vade po [self.playerItem asset]
23:11 vade <AVURLAsset: 0x2126ae0, URL = http://devimages.apple.com.edgekey.net/streami​ng/examples/bipbop_4x3/bipbop_4x3_variant.m3u8>
23:11 vade of course its backed by an asset
23:11 vade but you cant make an AVURLAsset for HLS
23:11 dantheman weird
23:17 vade yea part of the issue now is you cant get access to the HLS streams tracks to query the video natural size
23:17 vade to test the copy pixel semantic
23:17 vade which seems weird
23:22 vade yea I have no idea wtf OF is doing so
23:22 vade I need to eat. I thought this was going to be an easy fix but, alas :)
23:27 jvcleave alright - second shift starting :)
23:28 jvcleave working on the desktop version of OF feels like cheating
23:29 reqshark_ joined #openframeworks
23:43 vade joined #openframeworks
23:45 reqshark__ joined #openframeworks
23:55 barzi joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary