]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Add new blog posts.
[homepage.git] / blog / index.rss
index e8babede81b9abdb00f99a4d7c9be1d5a6f879f5..628f6719093dc91d3f414e3ecefa24390b713153 100644 (file)
@@ -6,6 +6,133 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
+       <item>
+               <title>Add-on to control the projector from within Kodi</title>
+               <link>http://people.skolelinux.org/pere/blog/Add_on_to_control_the_projector_from_within_Kodi.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Add_on_to_control_the_projector_from_within_Kodi.html</guid>
+                <pubDate>Tue, 26 Jun 2018 23:55:00 +0200</pubDate>
+               <description>&lt;p&gt;My movie playing setup involve &lt;a href=&quot;https://kodi.tv/&quot;&gt;Kodi&lt;/a&gt;,
+&lt;a href=&quot;https://openelec.tv&quot;&gt;OpenELEC&lt;/a&gt; (probably soon to be
+replaced with &lt;a href=&quot;https://libreelec.tv/&quot;&gt;LibreELEC&lt;/a&gt;) and an
+Infocus IN76 video projector.  My projector can be controlled via both
+a infrared remote controller, and a RS-232 serial line.  The vendor of
+my projector, &lt;a href=&quot;https://www.infocus.com/&quot;&gt;InFocus&lt;/a&gt;, had been
+sensible enough to document the serial protocol in its user manual, so
+it is easily available, and I used it some years ago to write
+&lt;a href=&quot;https://github.com/petterreinholdtsen/infocus-projector-control&quot;&gt;a
+small script to control the projector&lt;/a&gt;.  For a while now, I longed
+for a setup where the projector was controlled by Kodi, for example in
+such a way that when the screen saver went on, the projector was
+turned off, and when the screen saver exited, the projector was turned
+on again.&lt;/p&gt;
+
+&lt;p&gt;A few days ago, with very good help from parts of my family, I
+managed to find a Kodi Add-on for controlling a Epson projector, and
+got in touch with its author to see if we could join forces and make a
+Add-on with support for several projectors.  To my pleasure, he was
+positive to the idea, and we set out to add InFocus support to his
+add-on, and make the add-on suitable for the official Kodi add-on
+repository.&lt;/p&gt;
+
+&lt;p&gt;The Add-on is now working (for me, at least), with a few minor
+adjustments.  The most important change I do relative to the master
+branch in the github repository is embedding the
+&lt;a href=&quot;https://github.com/pyserial/pyserial&quot;&gt;pyserial module&lt;/a&gt; in
+the add-on.  The long term solution is to make a &quot;script&quot; type
+pyserial module for Kodi, that can be pulled in as a dependency in
+Kodi.  But until that in place, I embed it.&lt;/p&gt;
+
+&lt;p&gt;The add-on can be configured to turn on the projector when Kodi
+starts, off when Kodi stops as well as turn the projector off when the
+screensaver start and on when the screesaver stops.  It can also be
+told to set the projector source when turning on the projector.
+
+&lt;p&gt;If this sound interesting to you, check out
+&lt;a href=&quot;https://github.com/fredrik-eriksson/kodi_projcontrol&quot;&gt;the
+project github repository&lt;/a&gt;.  Perhaps you can send patches to
+support your projector too?  As soon as we find time to wrap up the
+latest changes, it should be available for easy installation using any
+Kodi instance.&lt;/p&gt;
+
+&lt;p&gt;For future improvements, I would like to add projector model
+detection and the ability to adjust the brightness level of the
+projector from within Kodi.  We also need to figure out how to handle
+the cooling period of the projector.  My projector refuses to turn on
+for 60 seconds after it was turned off.  This is not handled well by
+the add-on at the moment.&lt;/p&gt;
+
+&lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
+activities, please send Bitcoin donations to my address
+&lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>youtube-dl for nedlasting fra NRK med undertekster - nice free software</title>
+               <link>http://people.skolelinux.org/pere/blog/youtube_dl_for_nedlasting_fra_NRK_med_undertekster___nice_free_software.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/youtube_dl_for_nedlasting_fra_NRK_med_undertekster___nice_free_software.html</guid>
+                <pubDate>Sat, 28 Apr 2018 10:30:00 +0200</pubDate>
+               <description>&lt;p&gt;I &lt;a href=&quot;https://no.wikipedia.org/wiki/VHS&quot;&gt;VHS-kassettenes&lt;/a&gt;
+tid var det rett frem å ta vare på et TV-program en ønsket å kunne se
+senere, uten å være avhengig av at programmet ble sendt på nytt.
+Kanskje ønsket en å se programmet på hytten der det ikke var
+TV-signal, eller av andre grunner ha det tilgjengelig for fremtidig
+fornøyelse.  Dette er blitt vanskeligere med introduksjon av
+digital-TV og webstreaming, der opptak til harddisk er utenfor de
+flestes kontroll hvis de bruker ufri programvare og bokser kontrollert
+av andre.  Men for NRK her i Norge, finnes det heldigvis flere fri
+programvare-alternativer, som jeg har
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/Hvordan_enkelt_laste_ned_filmer_fra_NRK.html&quot;&gt;skrevet&lt;/a&gt;
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/Hvordan_enkelt_laste_ned_filmer_fra_NRK_med_den__nye__l_sningen.html&quot;&gt;om&lt;/a&gt;
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/Nedlasting_fra_NRK__som_Matroska_med_undertekster.html&quot;&gt;før&lt;/a&gt;.
+Så lenge kilden for nedlastingen er lovlig lagt ut på nett (hvilket
+jeg antar NRK gjør), så er slik lagring til privat bruk også lovlig i
+Norge.&lt;/p&gt;
+
+&lt;p&gt;Sist jeg så på saken, i 2016, nevnte jeg at
+&lt;a href=&quot;https://rg3.github.com/youtube-dl/&quot;&gt;youtube-dl&lt;/a&gt; ikke kunne
+bake undertekster fra NRK inn i videofilene, og at jeg derfor
+foretrakk andre alternativer.  Nylig oppdaget jeg at dette har endret
+seg.  Fordelen med youtube-dl er at den er tilgjengelig direkte fra
+Linux-distribusjoner som &lt;a href=&quot;https://www.debian.org/&quot;&gt;Debian&lt;/a&gt;
+og &lt;a href=&quot;https://www.ubuntu.com/&quot;&gt;Ubuntu&lt;/a&gt;, slik at en slipper å
+finne ut selv hvordan en skal få dem til å virke.&lt;/p&gt;
+
+&lt;p&gt;For å laste ned et NRK-innslag med undertekster, og få den norske
+underteksten pakket inn i videofilen, så kan følgende kommando
+brukes:&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+youtube-dl --write-sub --sub-format ttml \
+  --convert-subtitles srt --embed-subs \
+  https://tv.nrk.no/serie/ramm-ferdig-gaa/MUHU11000316/27-04-2018
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;URL-eksemplet er dagens toppsak på tv.nrk.no.  Resultatet er en
+MP4-fil med filmen og undertekster som kan spilles av med VLC.  Merk
+at VLC ikke viser frem undertekster før du aktiverer dem.  For å gjøre
+det, høyreklikk med musa i fremviservinduet, velg menyvalget for
+undertekst og så norsk språk.  Jeg testet også &#39;--write-auto-sub&#39;,
+men det kommandolinjeargumentet ser ikke ut til å fungere, så jeg
+endte opp med settet med argumentlisten over, som jeg fant i en
+feilrapport i youtube-dl-prosjektets samling over feilrapporter.&lt;/p&gt;
+
+&lt;p&gt;Denne støtten i youtube-dl gjør det svært enkelt å lagre
+NRK-innslag, det være seg nyheter, filmer, serier eller dokumentater,
+for å ha dem tilgjengelig for fremtidig referanse og bruk, uavhengig
+av hvor lenge innslagene ligger tilgjengelig hos NRK.  Så får det ikke
+hjelpe at NRKs jurister mener at det er
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/Best___ikke_fortelle_noen_at_streaming_er_nedlasting___.html&quot;&gt;vesensforskjellig
+å legge tilgjengelig for nedlasting og for streaming&lt;/a&gt;, når det rent
+teknisk er samme sak.&lt;/p&gt;
+
+&lt;p&gt;Programmet youtube-dl støtter også en rekke andre nettsteder, se
+prosjektoversikten for
+&lt;a href=&quot;http://rg3.github.io/youtube-dl/supportedsites.html&quot;&gt;en
+komplett liste&lt;/a&gt;.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Stortingsflertallet går inn for ny IP-basert sensurinfrastruktur i Norge</title>
                <link>http://people.skolelinux.org/pere/blog/Stortingsflertallet_g_r_inn_for_ny_IP_basert_sensurinfrastruktur_i_Norge.html</link>
@@ -346,107 +473,6 @@ repositories:&lt;/p&gt;
 has mostly retired, but found it best to migrate the source to a good
 version control system to help those willing to move it forward.&lt;/p&gt;
 
-&lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
-activities, please send Bitcoin donations to my address
-&lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
-</description>
-       </item>
-       
-       <item>
-               <title>Using VLC to stream bittorrent sources</title>
-               <link>http://people.skolelinux.org/pere/blog/Using_VLC_to_stream_bittorrent_sources.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Using_VLC_to_stream_bittorrent_sources.html</guid>
-                <pubDate>Wed, 14 Feb 2018 08:00:00 +0100</pubDate>
-               <description>&lt;p&gt;A few days ago, a new major version of
-&lt;a href=&quot;https://www.videolan.org/&quot;&gt;VLC&lt;/a&gt; was announced, and I
-decided to check out if it now supported streaming over
-&lt;a href=&quot;http://bittorrent.org/&quot;&gt;bittorrent&lt;/a&gt; and
-&lt;a href=&quot;https://webtorrent.io&quot;&gt;webtorrent&lt;/a&gt;.  Bittorrent is one of
-the most efficient ways to distribute large files on the Internet, and
-Webtorrent is a variant of Bittorrent using
-&lt;a href=&quot;https://webrtc.org&quot;&gt;WebRTC&lt;/a&gt; as its transport channel,
-allowing web pages to stream and share files using the same technique.
-The network protocols are similar but not identical, so a client
-supporting one of them can not talk to a client supporting the other.
-I was a bit surprised with what I discovered when I started to look.
-Looking at
-&lt;a href=&quot;https://www.videolan.org/vlc/releases/3.0.0.html&quot;&gt;the release
-notes&lt;/a&gt; did not help answering this question, so I started searching
-the web.  I found several news articles from 2013, most of them
-tracing the news from Torrentfreak
-(&quot;&lt;a href=https://torrentfreak.com/open-source-giant-vlc-mulls-bittorrent-support-130211/&quot;&gt;Open
-Source Giant VLC Mulls BitTorrent Streaming Support&lt;/a&gt;&quot;), about a
-initiative to pay someone to create a VLC patch for bittorrent
-support.  To figure out what happend with this initiative, I headed
-over to the #videolan IRC channel and asked if there were some bug or
-feature request tickets tracking such feature.  I got an answer from
-lead developer Jean-Babtiste Kempf, telling me that there was a patch
-but neither he nor anyone else knew where it was.  So I searched a bit
-more, and came across an independent
-&lt;a href=&quot;https://github.com/johang/vlc-bittorrent&quot;&gt;VLC plugin to add
-bittorrent support&lt;/a&gt;, created by Johan Gunnarsson in 2016/2017.
-Again according to Jean-Babtiste, this is not the patch he was talking
-about.&lt;/p&gt;
-
-&lt;p&gt;Anyway, to test the plugin, I made a working Debian package from
-the git repository, with some modifications.  After installing this
-package, I could stream videos from
-&lt;a href=&quot;https://www.archive.org/&quot;&gt;The Internet Archive&lt;/a&gt; using VLC
-commands like this:&lt;/p&gt;
-
-&lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
-vlc https://archive.org/download/LoveNest/LoveNest_archive.torrent
-&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
-
-&lt;p&gt;The plugin is supposed to handle magnet links too, but since The
-Internet Archive do not have magnet links and I did not want to spend
-time tracking down another source, I have not tested it.  It can take
-quite a while before the video start playing without any indication of
-what is going on from VLC.  It took 10-20 seconds when I measured it.
-Some times the plugin seem unable to find the correct video file to
-play, and show the metadata XML file name in the VLC status line.  I
-have no idea why.&lt;/p&gt;
-
-&lt;p&gt;I have created a &lt;a href=&quot;https://bugs.debian.org/890360&quot;&gt;request for
-a new package in Debian (RFP)&lt;/a&gt; and
-&lt;a href=&quot;https://github.com/johang/vlc-bittorrent/issues/1&quot;&gt;asked if
-the upstream author is willing to help make this happen&lt;/a&gt;.  Now we
-wait to see what come out of this.  I do not want to maintain a
-package that is not maintained upstream, nor do I really have time to
-maintain more packages myself, so I might leave it at this.  But I
-really hope someone step up to do the packaging, and hope upstream is
-still maintaining the source.  If you want to help, please update the
-RFP request or the upstream issue.&lt;/p&gt;
-
-&lt;p&gt;I have not found any traces of webtorrent support for VLC.&lt;/p&gt;
-
-&lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
-activities, please send Bitcoin donations to my address
-&lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;
-</description>
-       </item>
-       
-       <item>
-               <title>Version 3.1 of Cura, the 3D print slicer, is now in Debian</title>
-               <link>http://people.skolelinux.org/pere/blog/Version_3_1_of_Cura__the_3D_print_slicer__is_now_in_Debian.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Version_3_1_of_Cura__the_3D_print_slicer__is_now_in_Debian.html</guid>
-                <pubDate>Tue, 13 Feb 2018 06:20:00 +0100</pubDate>
-               <description>&lt;p&gt;A new version of the
-&lt;a href=&quot;https://tracker.debian.org/pkg/cura&quot;&gt;3D printer slicer
-software Cura&lt;/a&gt;, version 3.1.0, is now available in Debian Testing
-(aka Buster) and Debian Unstable (aka Sid).  I hope you find it
-useful.  It was uploaded the last few days, and the last update will
-enter testing tomorrow.  See the
-&lt;a href=&quot;https://ultimaker.com/en/products/cura-software/release-notes&quot;&gt;release
-notes&lt;/a&gt; for the list of bug fixes and new features.  Version 3.2
-was announced 6 days ago.  We will try to get it into Debian as
-well.&lt;/p&gt;
-
-&lt;p&gt;More information related to 3D printing is available on the
-&lt;a href=&quot;https://wiki.debian.org/3DPrinting&quot;&gt;3D printing&lt;/a&gt; and
-&lt;a href=&quot;https://wiki.debian.org/3D-printer&quot;&gt;3D printer&lt;/a&gt; wiki pages
-in Debian.&lt;/p&gt;
-
 &lt;p&gt;As usual, if you use Bitcoin and want to show your support of my
 activities, please send Bitcoin donations to my address
 &lt;b&gt;&lt;a href=&quot;bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&quot;&gt;15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b&lt;/a&gt;&lt;/b&gt;.&lt;/p&gt;