Normalement le streaming fonctionne sur Mythtv cependant sous myth 0.19 + ubuntu dapper je n'étais pas arrivé à configurer mon ordinateur (les vidéos étaient téléchargé entièrement avant d'être jouée). J'avais donc réalisé ce petit script php qui créer une playliste m3u. Le navigateur la télécharge (quelques ko) puis le lecteur associé au m3u se lance et joue la vidéo en streaming.
Créer dans “/var/www” un dossier “mythscript”
cd /var/www sudo mkdir mythscript sudo chmod 777 mythscript
Dans se dossier créer un fichier “myth_m3u.php”
cd mythscript
gedit myth_m3u.php
Et copier coller ce script à l'intérieur (en changement IP_MYTHWEB
par l'ip de votre backend)
<?php /* ***** - CRÉATEUR DE PLAYLIST *.M3U POUR MYTHWEB - ****** Auteur : Jonas Fourquier Licence : Créative Commons by-nc (http://creativecommons.org/licenses/by-nc/2.0/fr/) Description & installation : http://jonas.tuxfamily.org */ //Création du fichier M3U $fichier = fopen('myth.m3u',"w"); fwrite($fichier,' #EXTM3U #EXTINF:-1, MythTV http://IP_MYTHWEB/mythweb/data/recordings/'.$_GET['video'] ); fclose($fichier); ?> <!-- Redirection javascript vers la playliste (en php ça ne fonctionnait pas et je n'avais pas envie de me cassé la tête pour savoir pourquoi) --> <script language="javascript"type="text/javascript"> <!-- window.location.replace("myth.m3u"); --> </script> <!-- Si le navigateur ne supporte pas la redirrection --> <a href="myth.m3u">Télécharger la playliste</a>
Enregistrez et fermez
Avec votre navigateur rendez-vous dans la page administration de MythWeb (http://IP_MYTHWEB/mythweb/settings/mythweb
)
Puis dans “Video URL:” entrez : http://IP_MYTHWEB/mythscript/myth_m3u.php?video=
Essayer ! Votre navigateur web devrait vous proposé de télécharger un fichier “myth.m3u”, à vous de l'associer avec votre lecteur vidéo favori. Pour ma part j'ai choisi VLC car :
Pour être averti des nouveautés en rapport avec MythTV abonnez-vous à ce fils.
Des questions, une proposition d'amélioration ? contactez-moi via le forum du site.
Rédacteur : SnouF (y'a longtemps : création de la page – 17/01/2008, mise en page – 17/03/2008, màj pour mythtv 0.21)