<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>glow.li: Bears</title>
        <description>A blog by glow.</description>
        <link>https://glow.li/tags/bears.xml</link>
        <atom:link href="https://glow.li/tags/bears.xml" rel="self" type="application/rss+xml"/>
        <generator>Glow.li Builder</generator>
            <item>
        <title>Time lapse of a hibernating bear</title>
        <description>&lt;video controls poster="https://glow.li/media/videos/previews/bear-hibernation-time-lapse.webp?chash=Iebu8066c0"&gt;        &lt;source src="https://glow.li/media/videos/bear-hibernation-time-lapse.webm?chash=Iebu82c046" type="video/mp4"&gt;Click to view the video.&lt;/video&gt;
&lt;p&gt;&lt;a href="https://tierpark-bern.ch"&gt;Bear Park (Bärenpark) Bern&lt;/a&gt; has set up a &lt;a href="https://tierpark-bern.ch/index-de.php?frameset=222"&gt;Webcam&lt;/a&gt; in one of the winter dens of one of their bears, &lt;a href="https://tierpark-bern.ch/index-de.php?frameset=261"&gt;Björk&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This web cam was just a static image that changes every half minute or so. When I discovered this sometimes in January I started saving that image every 30 seconds and have been doing that for 2 months now. I have over 182'000 snapshots of that camera (over 5.4 GB). I compiled them into this video. Using &lt;a href="https://sunrise-sunset.org/"&gt;sunrise-sunset.org&lt;/a&gt; I figured at which times it is dark, so I removed all these photos.&lt;/p&gt;
&lt;p&gt;Their hibernation period has now ended and they're outside more often.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://glow.li/media/images/big/bärenpark-bär.webp?chash=Iebu8cceb6"&gt;&lt;img src="https://glow.li/media/images/bärenpark-bär.webp?chash=Iebu81026b" alt="Bear sleeping in the sun" title="Bear sleeping in the sun" loading="lazy" sizes="(max-width:800px) 100vw, (max-width:800px) 100vw, (max-width:1000px) 80vw, (max-width:1200px) 67vw, (max-width:1400px) 58vw, (max-width:1600px) 50vw, (max-width:1800px) 45vw, (max-width:2000px) 40vw, (max-width:2200px) 37vw, (max-width:2400px) 34vw, (max-width:2600px) 31vw, (max-width:2800px) 29vw, 1500px" srcset="https://glow.li/media/images/bärenpark-bär.webp?chash=Iebu81026b 1500w, https://glow.li/media/images/1200/bärenpark-bär.webp?chash=Iebu820d7d 1200w, https://glow.li/media/images/1000/bärenpark-bär.webp?chash=Iebu865f82 1000w, https://glow.li/media/images/800/bärenpark-bär.webp?chash=Iebu88763c 800w, https://glow.li/media/images/700/bärenpark-bär.webp?chash=Iebu8dbd73 700w, https://glow.li/media/images/600/bärenpark-bär.webp?chash=Iebu8df75f 600w, https://glow.li/media/images/500/bärenpark-bär.webp?chash=Iebu8d567d 500w, https://glow.li/media/images/400/bärenpark-bär.webp?chash=Iebu89c4fa 400w, https://glow.li/media/images/300/bärenpark-bär.webp?chash=Iebu8fd61d 300w, https://glow.li/media/images/200/bärenpark-bär.webp?chash=Iebu847f80 200w, https://glow.li/media/images/100/bärenpark-bär.webp?chash=Iebu8928b9 100w" &gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is the script I used to compile the video:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#!/bin/bash
set -e
cd ~/drive/bear-webcam
i=0
rm -f output/input.txt
mkdir -p output/
dates=`find -name 'baerenpark*' -type f -printf "%TY-%Tm-%Td\n" | sort | uniq`
for day in $dates;do
    out="bear-$day.mp4"
    echo "seeing if $out needs updating"
    sun=`curl -s "https://api.sunrise-sunset.org/json?lat=46.948&amp;amp;lng=7.459&amp;amp;formatted=0&amp;amp;date=$day"`
    sunrise=`echo "$sun"|jq -r .results.civil_twilight_begin`
    sunset=`echo "$sun"|jq -r .results.civil_twilight_end`
    files=`find -name 'baerenpark*' -type f -newermt "$sunrise" ! -newermt "$sunset"|sort -V`
    if [ -e "output/$out" ];then
        for f in $files;do
            if [ "$f" -nt "output/$out" ];then
                rm "output/$out"
                break
            fi
        done
    fi
    if [ ! -e "output/$out" ];then
        cat $files | ffmpeg -f image2pipe -vcodec mjpeg -i - -c:v libx264 -r 30 -pix_fmt yuv420p output/$out
    fi
    echo "file '$out'" &amp;gt;&amp;gt; output/input.txt
done
rm -f output/bear.mp4
ffmpeg -f concat -i output/input.txt -c copy output/bear.mp4&lt;/code&gt;&lt;/pre&gt;</description>
    <pubDate>Sat, 23 Mar 2019 12:00:00 +0000</pubDate>
    <link>https://glow.li/posts/hibernating-bear/</link>
    <guid isPermaLink="false">1553342400</guid>
</item>

<item>
        <title>Your bear is being printed!</title>
        <description>&lt;p&gt;&lt;a href="https://glow.li/media/images/big/3d-printed-bear.webp?chash=Iebu8e215e"&gt;&lt;img src="https://glow.li/media/images/3d-printed-bear.webp?chash=Iebu87e3dc" alt="3D printed Bear" title="3D printed Bear" loading="lazy" sizes="(max-width:800px) 100vw, (max-width:800px) 100vw, (max-width:1000px) 80vw, (max-width:1200px) 67vw, (max-width:1400px) 58vw, (max-width:1600px) 50vw, (max-width:1800px) 45vw, (max-width:2000px) 40vw, (max-width:2200px) 37vw, (max-width:2400px) 34vw, (max-width:2600px) 31vw, (max-width:2800px) 29vw, 1500px" srcset="https://glow.li/media/images/3d-printed-bear.webp?chash=Iebu87e3dc 1500w, https://glow.li/media/images/1200/3d-printed-bear.webp?chash=Iebu8a2902 1200w, https://glow.li/media/images/1000/3d-printed-bear.webp?chash=Iebu81aaa4 1000w, https://glow.li/media/images/800/3d-printed-bear.webp?chash=Iebu86167f 800w, https://glow.li/media/images/700/3d-printed-bear.webp?chash=Iebu8b55a6 700w, https://glow.li/media/images/600/3d-printed-bear.webp?chash=Iebu8030a1 600w, https://glow.li/media/images/500/3d-printed-bear.webp?chash=Iebu8ae6e7 500w, https://glow.li/media/images/400/3d-printed-bear.webp?chash=Iebu84de94 400w, https://glow.li/media/images/300/3d-printed-bear.webp?chash=Iebu860b3e 300w, https://glow.li/media/images/200/3d-printed-bear.webp?chash=Iebu8c5a66 200w, https://glow.li/media/images/100/3d-printed-bear.webp?chash=Iebu8c699c 100w" &gt;&lt;/a&gt;&lt;/p&gt;</description>
    <pubDate>Sat, 12 Jan 2019 22:27:40 +0000</pubDate>
    <link>https://glow.li/posts/short-de193-Your_bear_is_being_printed/</link>
    <guid isPermaLink="false">1547332060</guid>
</item>

    </channel>
</rss>

