#dev 2021-11-17

2021-11-17 UTC
akevinhuang, Seirdy, nertzy, Matt4, [schmarty], [chrisaldrich], [tantek], [jacky], pfefferle, [snarfed], [KevinMarks], [jeremycherfas], IWSlackGateway, [Paul_Walk], [grantcodes], [chrisbergr], Matt5, [KevinMarks]1, [grantcodes]1, [KevinMarks]2 and edburns[d] joined the channel
#
aaronpk
I was going thru my sleep posts from Germany and noticed there was something wrong with the timezones, and assumed it was some weird timezone bug on my site
#
aaronpk
I manually fixed a few of them
#
aaronpk
then I went and looked at posts from before the trip and before DST ended and it turns out since late September they've been importing wrong
#
aaronpk
which means FitBit changed something with their api regarding how timezones are handled
#
aaronpk
and now I am annoyed
#
[snarfed]
:face_with_raised_eyebrow:
#
aaronpk
oh right, fitbit doesn't include any timezone info in their records
#
aaronpk
That means it can't be their fault because they just decided it wasn't their problem
[schmarty], [snarfed], [KevinMarks] and willnorris joined the channel
#
petermolnar
I wonder what's simpler: record satellite or utc time, location, and historical daylight saving time changes, or store time and actual timezone (not RFC 3339 style +01:00, but CET, CEST, etc)
#
petermolnar
or would RFC 3339 style (+01:00) and location be enough?
#
[KevinMarks]
RFC 3339 is safer as otherwise you need to have the timezone daylight saving transition for that year around at render time too, and they're highly variable.
#
@mauricerenck
Yesterday @getkirby 3.6 was released. An update with some impact as the panel now works differently - at least from developer perspective. This had some impact on my plugins. So, here's an overview on what changed: https://maurice-renck.de/tech/2021/kirby-3-6-ist-da #kirby #podcaster #komments #webmentions
(twitter.com/_/status/1460913436599230465)
#
Murray[d]
edgeduchess++ BobaBoard looks really cool, and loving all the hidden details on the site 😄 It has so much personality!
#
Loqi
edgeduchess has 3 karma in this channel over the last year (4 in all channels)
Mila, tetov-irc, MarkJR84[d], chenghiz_, Allie, Agnessa[d], barryf[d], kogepan, jjuran, strugee_, GWG, schmudde, akevinhuang, akevinhuang2, sayanarijit[d], [tantek]2, [grantcodes], [jacky]1, [chrisaldrich]1 and [chrisbergr] joined the channel
#
aaronpk
speaking of micropub clients, i really need a better way to post videos on my site
#
[schmarty]
whispers "add videos to quillllll"
#
aaronpk
i keep going back and forth on whether transcoding should happen in the client or if my website should do it
#
[schmarty]
there are even more distinctions to make like: what about on-the-device (so the client and website don't have to fool with it)? and when you say "website" - you could push it into the micropub media endpoint, or the micropub endpoint, or build process for the site, or a video CDN, or ...
#
capjamesg[d]
What is transcoding? (a question for aaronpk, not loqi :D)
#
Loqi
It looks like we don't have a page for "transcoding? (a question for aaronpk, not loqi :D)" yet. Would you like to create it? (Or just say "transcoding? (a question for aaronpk, not loqi :D) is ____", a sentence describing the term)
#
aaronpk
what is transcoding?
#
Loqi
It looks like we don't have a page for "transcoding" yet. Would you like to create it?_ (Or just say "transcoding is ____", a sentence describing the term)
#
aaronpk
transcoding is the process of converting media from one format to another, such as converting video to formats that can be played back in web browsers
#
aaronpk
transcoding << video
#
Loqi
ok, I added "[[video]]" to a brand new "See Also" section of /transcoding https://indieweb.org/wiki/index.php?diff=77870&oldid=77869
#
aaronpk
video << transcoding
#
aaronpk
the other question i have is whether i should serve videos from my site using HLS, even if they are like 15-30 second videos
#
aaronpk
cause a 45mb video file isn't the nicest thing to put into a video tag
Seirdy joined the channel
#
aaronpk
and if i'm going to serve my video clips using HLS, am I then better off spinning up a little dedicated website to manage videos and handle the transcoding rather than building all that logic into my main site?
#
capjamesg[d]
That way other people could benefit from the code you write.
#
capjamesg[d]
I didn’t even think about this for video uploads via Micropub.
#
capjamesg[d]
My media endpoint only accepts images right now.
#
stevestreza
ffmpeg can transcode to an HLS stream and then those files can just get served through whatever static file server, the amount of work to do a one-time conversion is not that much, you just end up with a lot of little files for each source video
#
aaronpk
sure, the challenge is setting up the workflow for that
#
aaronpk
"I have a video on my phone, I want to turn it into HLS files on my server that can be embedded in a post on my website"
#
aaronpk
there's a whole lot of handwaving in between the start and end of that sentence ;-)
#
stevestreza
oh for sure, just that the "turn it into HLS files" part of that sentence is both the hard part and the part that ffmpeg can do for you :)
#
aaronpk
i would argue the fact that ffmpeg can do it for you makes that the easy part :)
#
stevestreza
right. if ffmpeg couldn't one-liner that task it would be the hard part. the rest is just storing those files and associating them with the source media so they can be linked into a post. which makes it easier than it looks
#
[tantek]2
even not counting video, the whole mobile posting of stuff is *still* harder than it should be. see [schmarty] keynote from IWS 2019 for a good overview
#
aaronpk
brainstorms a new micropub client specifically for video
#
sknebel
heh, I remember trying out my media endpoint from the phone with quill in mobile browser
#
aaronpk
that's what i use, it works okay most of the time
#
aaronpk
it could use some optimization for slow/bad network connections tho
#
sknebel
I think that was my old phone, swithcing to the photo app caused it to unload the browser tab so far it lost all state about what to do with the image that was then returned ...
#
aaronpk
oh gosh
kogepan joined the channel
#
sknebel
or something along those lines
#
aaronpk
on ios the photo picker opens up inside the browser app context so that doesn't happen there
#
[schmarty]
the iOS photo picker opening in the browser context always seems to start at the same place of all recent photos :|
#
aaronpk
quill also does a neat trick which is it queries your media endpoint to see if there is a photo recently uploaded, so sometimes i will use Shortcuts to send a photo to my media endpoint from within some other app like Lightroom, then I open quill and the photo is ready to be included in a post
#
aaronpk
that's basically what I want for video too
#
[schmarty]
ooh yeah i could vibe with that (once i update my media endpoint to work with the query feature lol)
#
aaronpk
but as i'm thinking through this maybe it makes more sense to create a little standalone mini private youtube-like site that accepts file uploads and then converts that to HLS files at a few bitrates. the workflow would be share a video from my phone to that site, then log in to that site and find the latest video and you'd get a little interface to add text and tags and such which would then make a
#
aaronpk
micropub request to my actual website, and my site could just hotlink the HLS files from there
#
[schmarty]
i'm curious what you would send in the micropub post. something like `video: [url-to-the-playlist-file]`?
#
aaronpk
i think so?
#
[schmarty]
and your site would recognize that's an HLS video and spit out the appropriate markup and JS to play it
#
[schmarty]
(vs like an mp4 video which could get a `<video>` tag)
#
[tantek]2
it's been a while since I posted a video and I don't remember my process for doing so. I do remember that whatever I did happened to create a video file that "just" worked across browsers
#
[tantek]2
right I think it was an mp4 video, and yes I used a <video> tag on my site, because "JS to play it" is a non-starter IMO
#
[tantek]2
as in *requiring* JS to play it
#
aaronpk
mp4 files "just" work on most browsers now, and most phones will record in that format natively, so things mostly just work now. but the biggest failure point is when the file gets huge
#
aaronpk
many browsers have native HLS support now too
#
[tantek]2
I guess if the use-case is mobile posting I'm not really worried about posting "huge" videos
#
aaronpk
https://caniuse.com/?search=HLS for some reason Android Chrome does, but not desktop chrome
#
[tantek]2
those sound like different use-cases (mobile vs huge video)
#
aaronpk
not sure what you consider huge, but this 15 second video i have is 45mb
#
stevestreza
HLS/DASH also help a lot when you want multiple bitrates and seamlessly switching between them, and better scrubbing support
#
[schmarty]
iOS started defaulting to hevc video instead of h264 a while back and although there is a setting to make the media library use "compatible" formats (jpeg instead of heic, mp4 instead of hevc) it seems like iOS 15 is ignoring that setting in some cases 😭
#
aaronpk
oh dear
#
[tantek]2
what is portability
#
[tantek]2
huh
#
[tantek]2
any chance of adding a "How to" to https://indieweb.org/data_portability to get your iOS device to record in more portable formats by default? (jpeg & mp4)
#
sknebel
aaronpk: did you ever look at peertube in detail? re "standalone site" to embed from
#
sknebel
although it feels like overkill, maybe an option
#
aaronpk
I should probably read their installation guide again, it does seem overkill but similar idea
#
[KevinMarks]
MP4 is a container format that can have multiple different audio and video codecs in. You want h264 video for maximum portability
#
[schmarty]
KevinMarks: good point on container format vs codec.
#
aaronpk
oops yeah i meant h264
#
[schmarty]
i think i'm leaning towards putting this functionality on my micropub media endpoint
#
[schmarty]
accept anything that looks like a video, use ffmpeg to normalize the format and codecs, return the URL for the normalized file.
#
aaronpk
i suppose that URL could be an m3u8 playlist too
#
[schmarty]
for sure. i upload tiny videos now but i could see setting a threshold at which it switches to HLS
#
[schmarty]
then again i already run all my image URLs on my site through an image proxy, so it is tempting to fiddle up all the videos through a video proxy (which i assume i will have to build)
KartikPrabhu joined the channel
#
Seb[d]
it is not `application/www-url-formencoded` nor `application/www-form-urlencoded`, it is `application/x-www-form-urlencoded` and you should just copy and paste values like that from the spec because that saves you hours of debugging.
#
Seb[d]
(this was a note to self)
#
aaronpk
uhoh, which spec
#
Seb[d]
IndieAuth
#
Seb[d]
Trying to get rid of Indieauth.com for my site
#
aaronpk
oh i misread that as "should not just copy and paste" 😂
#
Seb[d]
haha no, no worries
#
capjamesg[d]
Can anyone set up a domain registrar?
#
[chrisbergr]
If one doesn't have an h-feed on the home page, is there a way to link to the appropriate subpage so that readers (and bridgy, if applicable) can handle it?
#
aaronpk
rel=feed?
#
[chrisbergr]
Oh, it is really that simple? 🙂 I thought this link is only for rss/atom ...
#
[chrisbergr]
Just noticed rss/atom has rel=alternate... I don't know what I was thinking. Thanks for the help
#
aaronpk
there is also the attribute on the link tag that can specify the content type
#
aaronpk
the rel value shouldn't have any meaning as to what content type to find there
#
[chrisbergr]
But rel=feed does not uses any type attribute, such as "microformats2", right?
#
aaronpk
i don't think bridgy looks for it, but it could
#
[chrisbergr]
The bridgy page does not notice it, but maybe other consumer will require one? If I just add a type, should it be "mf2" ord "microformats2"?
#
aaronpk
no i would think it would be text/html or something. not sure
#
KartikPrabhu
yeah text/html is what I use
#
[chrisbergr]
Okay, I see
#
[snarfed]
capjamesg afaik short answer is yes, anyone can set up a domain registrar
#
jamietanna[m]
Seb[d] I meant to say mind updating https://indieweb.org/consent_screen with your new IndieAuth consent screen? ☺
#
Seb[d]
but I haven't CSS'ed it yet.
#
[snarfed]
[chrisbergr] aaronpk funny, we had a conversation about rel values and mime types for h-feed pages not long ago, details in https://chat.indieweb.org/dev/2021-09-27#t1632775025804300 (scroll up)
#
Loqi
[[tantek]] there you go, <link rel="alternate" type="text/mf2+html" href="#updates"/> now on my home page
#
aaronpk
i thought that sounded familiar
#
[snarfed]
one result was that [tantek] now advertises his h-feed page as rel="alternate" type="text/mf2+html"
#
jamietanna[m]
All good Seb, just thought I'd mention as it's nice to see different approaches
#
[snarfed]
(which Bridgy doesn't fully support yet; details in https://github.com/snarfed/bridgy/issues/1071 )
#
Loqi
[snarfed] #1071 Extend OPD feed discovery to handle rel-alternate
#
Seb[d]
jamietanna: I'll look at it tomorrow while/after blogging about the new setup
#
Seb[d]
I did not know about the page, so good to add it indeed
#
[tantek]2
snarfed, this is as a result of feedback from a link rel=alternate consumer that if they were going to look for h-feed in addition to Atom/RSS that it was more work to look for a rel=feed rather than the set of rel=alternate links with their MIME types
#
[tantek]2
I think we should consider deprecating rel=feed accordingly, because it may be leading publishers down a path that consuming code may note take the effort to implement
#
[chrisbergr]
So right now I'm thinking about using both.
#
[chrisbergr]
<link rel="feed" type="text/html" href="<?php echo $feed_url; ?>" />
#
[chrisbergr]
<link rel="alternate" type="text/mf2+html" href="<?php echo $feed_url; ?>" />
#
[tantek]2
that's likely ok to experiment with. if you have analytics, consider adding a ?utm_rel=feed or something to see if anyone bothers to consume from rel=feed
#
[chrisbergr]
That is a very good idea.
#
[chrisbergr]
If I try to add my own page to an aperture channel using microformats as source, it does not show any entries. I guess it is not following this links in the head
#
[tantek]2
Sounds like a good feature request to file as an issue on Aperture 🙂
#
[tantek]2
at least rel="alternate" type="text/mf2+html" discovery
#
Loqi
[gRegorLove] #78 Suggestion: parse rel=feed
#
[chrisbergr]
I'll open one for text/mf2+html discovery
tetov-irc joined the channel