X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/2b349e4d1b72895a9c3ca655dbed6da41e44cc79..b38eca45f0255535c3c019500d538a7bdbd0e3e6:/blog/index.rss diff --git a/blog/index.rss b/blog/index.rss index 0581cf3d48..d870555ae3 100644 --- a/blog/index.rss +++ b/blog/index.rss @@ -6,6 +6,78 @@ http://people.skolelinux.org/pere/blog/ + + VLC in Debian now can do bittorrent streaming + http://people.skolelinux.org/pere/blog/VLC_in_Debian_now_can_do_bittorrent_streaming.html + http://people.skolelinux.org/pere/blog/VLC_in_Debian_now_can_do_bittorrent_streaming.html + Mon, 24 Sep 2018 21:20:00 +0200 + <p>Back in February, I got curious to see +<a href="http://people.skolelinux.org/pere/blog/Using_VLC_to_stream_bittorrent_sources.html">if +VLC now supported Bittorrent streaming</a>. It did not, despite the +fact that the idea and code to handle such streaming had been floating +around for years. I did however find +<a href="https://github.com/johang/vlc-bittorrent">a standalone plugin +for VLC</a> to do it, and half a year later I decided to wrap up the +plugin and get it into Debian. I uploaded it to NEW a few days ago, +and am very happy to report that it +<a href="https://tracker.debian.org/pkg/vlc-plugin-bittorrent">entered +Debian</a> a few hours ago, and should be available in Debian/Unstable +tomorrow, and Debian/Testing in a few days.</p> + +<p>With the vlc-plugin-bittorrent package installed you should be able +to stream videos using a simple call to</p> + +<p><blockquote><pre> +vlc https://archive.org/download/TheGoat/TheGoat_archive.torrent +</pre></blockquote></p> + +</p>It can handle magnet links too. Now if only native vlc had +bittorrent support. Then a lot more would be helping each other to +share public domain and creative commons movies. The plugin need some +stability work with seeking and picking the right file in a torrent +with many files, but is already usable. Please note that the plugin +is not removing downloaded files when vlc is stopped, so it can fill +up your disk if you are not careful. Have fun. :)</p> + +<p>I would love to get help maintaining this package. Get in touch if +you are interested.</p> + +<p>As usual, if you use Bitcoin and want to show your support of my +activities, please send Bitcoin donations to my address +<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> + + + + + Using the Kodi API to play Youtube videos + http://people.skolelinux.org/pere/blog/Using_the_Kodi_API_to_play_Youtube_videos.html + http://people.skolelinux.org/pere/blog/Using_the_Kodi_API_to_play_Youtube_videos.html + Sun, 2 Sep 2018 23:40:00 +0200 + <p>I continue to explore my Kodi installation, and today I wanted to +tell it to play a youtube URL I received in a chat, without having to +insert search terms using the on-screen keyboard. After searching the +web for API access to the Youtube plugin and testing a bit, I managed +to find a recipe that worked. If you got a kodi instance with its API +available from http://kodihost/jsonrpc, you can try the following to +have check out a nice cover band.</p> + +<p><blockquote><pre>curl --silent --header 'Content-Type: application/json' \ + --data-binary '{ "id": 1, "jsonrpc": "2.0", "method": "Player.Open", + "params": {"item": { "file": + "plugin://plugin.video.youtube/play/?video_id=LuRGVM9O0qg" } } }' \ + http://projector.local/jsonrpc</pre></blockquote></p> + +<p>I've extended kodi-stream program to take a video source as its +first argument. It can now handle direct video links, youtube links +and 'desktop' to stream my desktop to Kodi. It is almost like a +Chromecast. :)</p> + +<p>As usual, if you use Bitcoin and want to show your support of my +activities, please send Bitcoin donations to my address +<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> + + + Software created using taxpayers’ money should be Free Software http://people.skolelinux.org/pere/blog/Software_created_using_taxpayers__money_should_be_Free_Software.html @@ -622,94 +694,6 @@ first. It might be a better option than my above mentioned script. Also, "aptutude upgrade" can upgrade single packages, thus avoiding the need for using "dpkg -i" in the script above.</p> -<p>As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> - - - - - The worlds only stone power plant? - http://people.skolelinux.org/pere/blog/The_worlds_only_stone_power_plant_.html - http://people.skolelinux.org/pere/blog/The_worlds_only_stone_power_plant_.html - Sat, 30 Jun 2018 10:35:00 +0200 - <p>So far, at least hydro-electric power, coal power, wind power, -solar power, and wood power are well known. Until a few days ago, I -had never heard of stone power. Then I learn about a quarry in a -mountain in -<a href="https://en.wikipedia.org/wiki/Bremanger">Bremanger</a> i -Norway, where -<a href="https://www.bontrup.com/en/activities/raw-materials/bremanger-quarry/">the -Bremanger Quarry</a> company is extracting stone and dumping the stone -into a shaft leading to its shipping harbour. This downward movement -in this shaft is used to produce electricity. In short, it is using -falling rocks instead of falling water to produce electricity, and -according to its own statements it is producing more power than it is -using, and selling the surplus electricity to the Norwegian power -grid. I find the concept truly amazing. Is this the worlds only -stone power plant?</p> - -<p>As usual, if you use Bitcoin and want to show your support of my -activities, please send Bitcoin donations to my address -<b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p> - - - - - Add-on to control the projector from within Kodi - http://people.skolelinux.org/pere/blog/Add_on_to_control_the_projector_from_within_Kodi.html - http://people.skolelinux.org/pere/blog/Add_on_to_control_the_projector_from_within_Kodi.html - Tue, 26 Jun 2018 23:55:00 +0200 - <p>My movie playing setup involve <a href="https://kodi.tv/">Kodi</a>, -<a href="https://openelec.tv">OpenELEC</a> (probably soon to be -replaced with <a href="https://libreelec.tv/">LibreELEC</a>) 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, <a href="https://www.infocus.com/">InFocus</a>, 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 -<a href="https://github.com/petterreinholdtsen/infocus-projector-control">a -small script to control the projector</a>. 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.</p> - -<p>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.</p> - -<p>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 -<a href="https://github.com/pyserial/pyserial">pyserial module</a> in -the add-on. The long term solution is to make a "script" type -pyserial module for Kodi, that can be pulled in as a dependency in -Kodi. But until that in place, I embed it.</p> - -<p>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. - -<p>If this sound interesting to you, check out -<a href="https://github.com/fredrik-eriksson/kodi_projcontrol">the -project github repository</a>. 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.</p> - -<p>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.</p> - <p>As usual, if you use Bitcoin and want to show your support of my activities, please send Bitcoin donations to my address <b><a href="bitcoin:15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b</a></b>.</p>