2017-03-30 UTC
benwerd, chrisaldrich, [kevinmarks], tantek, j12t and [cleverdevil] joined the channel
# 03:55 martymcguire[m] Anybody up for reviewing my PR for audio posts via micropub? :)
# 04:14 aaronpk martymcguire[m]: might want to check for conflicts with my PR
j12t, jeremycherfas, dosch[m], wakest, plindner, martymcguire[m], pvagner, jaduncan[m], mapkyca, [dgold], loicm, [kevinmarks], jeremycherfas_ and travis-ci joined the channel
# 13:47 travis-ci mapkyca/idno#172 (master - 5f08e9f : Ben Werdmuller): The build has errored.
# 14:05 martymcguire[m] aaronpk: good idea. no merge conflicts, but this time the tests passed, so maybe that helps.
# 14:08 aaronpk Cool. Maybe also double check audio is supported in JSON?
travis-ci joined the channel
# 14:27 travis-ci mapkyca/idno#173 (master - 352318f : Marcus Povey): The build passed.
# 14:29 martymcguire[m] heh. i don't have a micropub client that posts audio and JSON. :}
loicm, jeremycherfas and j12t joined the channel
jeremycherfas_ joined the channel
# 14:55 martymcguire[m] ah, i see. to support it audio with JSON i need to add audio URL handling like you've put in for photo and video.
# 14:55 martymcguire[m] oh nice, thanks!
# 14:56 aaronpk i see what you mean about the video thing in your comment
# 14:59 martymcguire[m] that seems great. this was my first time at the known rodeo, so i wasn't sure how far to go. :}
benwerd joined the channel
# 15:02 aaronpk whoa, what plugin does known use to make the little waveform player
# 15:14 aaronpk i'm getting an error message that i can't find the source of
# 15:16 aaronpk I don't understand where the text "We couldn't access" is coming from
[kevinmarks] joined the channel
# 15:29 aaronpk oh i found it. the ' was escaped so my search wasn't working
# 15:41 aaronpk video in the known micropub plugin has never worked as far as i can tell
# 15:43 martymcguire[m] ^ glad I am not crazy for thinking that was the case :)
# 15:44 aaronpk for two reasons, one of which martymcguire[m] found
j12t joined the channel
# 15:44 martymcguire[m] does media not cover video?
# 15:44 aaronpk media does. but the code was setting $type='video'
# 15:45 aaronpk so then it was failing to create a "video" post because it actually needed to create a "media" post
# 15:45 martymcguire[m] Oh right. I added audio to the list of types that triggered "media"
# 15:45 martymcguire[m] For the same reason.
# 15:45 martymcguire[m] There's a ContentType class
# 15:47 martymcguire[m] oh, that is a good question. i was just opening that back up.
benwerd joined the channel
j12t_ joined the channel
# 15:49 aaronpk if (substr($attachment['mime-type'], 0, 5) == 'video')
# 15:49 martymcguire[m] ah, yep, i had skimmed too quickly.
# 15:50 aaronpk so I have it uploading the video, and it's rendering the page with the video tag, and i see it's saved the file to disk
# 15:50 aaronpk but for some reason i can't actually view the video in my browser, even directly from the URL
# 15:50 aaronpk i'm going to PR this to you and you can try it out
# 15:50 martymcguire[m] well that's interesting.
# 15:53 martymcguire[m] got it. pulling this down to check it out.
# 15:57 martymcguire[m] just to double-check - are you happy with the support for audio micropub via JSON that you added?
# 15:57 martymcguire[m] ie - is the remaining mystery in this PR only "how video?"
# 15:57 aaronpk yes, that worked great. i tested uploading a file, referencing a URL in form-encoded, and referencing a URL in JSON
# 15:58 aaronpk or just try it out, i think it's working, there might just be something wrong with my nginx
# 15:59 martymcguire[m] does micropub.rocks have a video test? that might be faster than me whipping up a request via curl
# 16:02 martymcguire[m] oh, hah, thanks!
jeremycherfas_ joined the channel
# 16:06 martymcguire[m] hmm. uploaded via the JSON version, seemed to work, but i think i am now seeing the same behavior that you were
# 16:07 martymcguire[m] video tag is there, but video doesn't play. likewise loading mp4 URL.
# 16:07 martymcguire[m] however if i wget the URL and save the result, VLC plays it fine.
# 16:07 aaronpk is there something about the http header known returns that prevents the browser from recognizing it?
# 16:08 martymcguire[m] content type is video/mp4
# 16:08 aaronpk content type and length match the headers on my site
# 16:08 martymcguire[m] it sends a lot of HTTP 206 partial response chunks
# 16:10 aaronpk it looks like it's requesting the last byte repeatedly
# 16:11 martymcguire[m] the first request seems to return the correct content type and length. not sure why it becomes a partial content response in the browser (but not curl)
# 16:15 martymcguire[m] likewise. firefox also fails.
# 16:15 aaronpk well then i don't think the problem has anything to do with the micropub endpoint
# 16:16 aaronpk this is why i prefer nginx/apache serve files directly
# 16:16 martymcguire[m] requesting the raw .mp4 URL, firefox makes a normal request and apparently doesn't get teh whole content.
# 16:16 martymcguire[m] the next request gets back a really interesting header:
# 16:17 martymcguire[m] Content-Range: bytes 5308416-5380899/5380900
# 16:17 martymcguire[m] as though the server is denying that last byte. further suggests off-by-one handling in known's file serving.
# 16:19 martymcguire[m] aaronpk: i'm going to merge your PR into my PR and add a comment about the strange video behavior, along with the link to your gist for exercising video uploads.
jeremycherfas_, benwerd and [cleverdevil] joined the channel
# 16:27 martymcguire[m] PR updated
# 16:30 martymcguire[m] confirmed that video posts created with the native known "audio" uploader have the same issue.
# 16:30 aaronpk well at least we ruled out anything having to do with the micropub endpoint then
[eddie] joined the channel
# 16:33 martymcguire[m] yep. moving the discussion of video serving to a new Issue.
jeremycherfas_ joined the channel
# 16:59 martymcguire[m] did a bit more digging. safari is just more tolerant of the missing byte. it still spins-then-fails on the final frames of the video.
# 17:00 martymcguire[m] seems like an issue w/ partial content requests
jeremycherfas_, [keithjgrant], [cleverdevil] and [kevinmarks] joined the channel
# 17:35 [kevinmarks] You can probably omit the last byte most of the time, but it's known doing its own serving?
sensiblemn and pvagner joined the channel
# 18:46 martymcguire[m] also on mysql, files written to disk.
# 18:47 aaronpk did that video we were using include any emoji in its metadata?
# 18:49 martymcguire[m] ffprobe didn't turn up any particular textual metadata there
tantek, jeremycherfas, benwerd, [eddie], [dgold], j12t, [mko], [aaronpk], [cleverdevil], [acegiak_net] and [kevinmarks] joined the channel