
Recherche avancée
Autres articles (41)
-
ANNEXE : Les extensions, plugins SPIP des canaux
11 février 2010, parUn plugin est un ajout fonctionnel au noyau principal de SPIP. MediaSPIP consiste en un choix délibéré de plugins existant ou pas auparavant dans la communauté SPIP, qui ont pour certains nécessité soit leur création de A à Z, soit des ajouts de fonctionnalités.
Les extensions que MediaSPIP nécessite pour fonctionner
Depuis la version 2.1.0, SPIP permet d’ajouter des plugins dans le répertoire extensions/.
Les "extensions" ne sont ni plus ni moins que des plugins dont la particularité est qu’ils se (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (4914)
-
Anomalie #4295 (Nouveau) : Bug sur Boucle DATA et fusion sur un #ARRAY
21 février 2019Bonjour,
J’ai fait une boucle complexe pour lister par année, et mois les articles et les brèves d’un site : https://zone.spip.org/trac/spip-zone/changeset/113991
Dans mon jeu de test, elle génère ce tableau :
- <span class="CodeRay"><span class="predefined">Array</span>
- (
- [<span class="integer">0</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">12</span>
- [lemois] => décembre
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">12</span>-<span class="integer">18</span> <span class="integer">23</span>:<span class="integer">05</span>:<span class="integer">51</span>
- [url] => <span class="constant">Test</span>-modele-exergue.html
- [descriptif] =>
- [titre] => <span class="constant">Test</span> modèle exergue
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">1</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">10</span>-<span class="integer">27</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">00</span>
- [url] => <span class="constant">Derniers</span>-articles.html
- [descriptif] =>
- [titre] => <span class="constant">Derniers</span> articles
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">2</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">09</span>
- [lemois] => septembre
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">09</span>-<span class="integer">06</span> <span class="integer">20</span>:<span class="integer">20</span>:<span class="integer">42</span>
- [url] => <span class="constant">Test</span>-<span class="constant">Form</span>-<span class="constant">IP</span>.html
- [descriptif] =>
- <span class="constant">Tentez</span> de gagner par tirage au <span class="predefined">sort</span> le remboursement de votre achat [<span class="integer">1</span>]
- [titre] => <span class="constant">Test</span> <span class="constant">Form</span> <span class="constant">IP</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">3</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">07</span>
- [lemois] => juillet
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">07</span>-<span class="integer">29</span> <span class="integer">14</span>:<span class="integer">45</span>:<span class="integer">00</span>
- [url] => <span class="constant">Article</span>-avec-logo.html
- [descriptif] =>
- [titre] => <span class="constant">Article</span> avec logo
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">4</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">05</span>
- [lemois] => mai
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">22</span> <span class="integer">17</span>:<span class="integer">29</span>:<span class="integer">43</span>
- [url] => <span class="constant">Long</span>.html
- [descriptif] =>
- [titre] => <span class="constant">Long</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">5</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">05</span>
- [lemois] => mai
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">22</span> <span class="integer">17</span>:<span class="integer">03</span>:<span class="integer">50</span>
- [url] => <span class="constant">Repetition</span>-avec-debut-dans-le-passe.html
- [descriptif] =>
- [titre] => <span class="constant">Répétition</span> avec début dans le passé
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">6</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">05</span>
- [lemois] => mai
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">05</span>-<span class="integer">02</span> <span class="integer">07</span>:<span class="integer">42</span>:<span class="integer">45</span>
- [url] => <span class="constant">Test</span>-previsualisation-etendue.html
- [descriptif] =>
- <span class="constant">Je</span> suis un testeur
- [titre] => <span class="constant">Test</span> prévisualisation étendue
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">7</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2016</span>
- [month] => <span class="integer">04</span>
- [lemois] => avril
- [<span class="predefined">date</span>] => <span class="integer">2016</span>-<span class="integer">04</span>-<span class="integer">01</span> <span class="integer">04</span>:<span class="integer">10</span>:<span class="integer">12</span>
- [url] => <span class="constant">Test</span>-forme-colorees.html
- [descriptif] =>
- <span class="constant">Test</span> qui va bien
- [titre] => <span class="constant">Test</span> forme colorées
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">8</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">12</span>
- [lemois] => décembre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">12</span>-<span class="integer">06</span> <span class="integer">15</span>:<span class="integer">00</span>:<span class="integer">00</span>
- [url] => <span class="constant">Test</span>-article-sur-embargo.html
- [descriptif] =>
- [titre] => <span class="constant">Test</span> article sur embargo
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">9</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">11</span>
- [lemois] => novembre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">11</span>-<span class="integer">24</span> <span class="integer">09</span>:<span class="integer">48</span>:<span class="integer">01</span>
- [url] => <span class="constant">Intentions</span>-de-prieres.html
- [descriptif] =>
- <span class="constant">Test</span> des <span class="constant">IP</span>
- [titre] => <span class="constant">Intentions</span> de prières
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">10</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">26</span> <span class="integer">23</span>:<span class="integer">06</span>:<span class="integer">31</span>
- [url] => <span class="constant">Test</span>-<span class="constant">Newsletter</span>.html
- [descriptif] =>
- <span class="constant">Un</span> autre descriptif
- [titre] => <span class="constant">Test</span> <span class="constant">Newsletter</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">11</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Historique</span>-des-versions-de-<span class="constant">SPIP</span>.html
- [descriptif] =>
- [titre] => <span class="constant">Historique</span> des versions de <span class="constant">SPIP</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">12</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Evenement</span>-exceptionnel.html
- [descriptif] =>
- [titre] => Événement exceptionnel
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">13</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Installation</span>-du-site.html
- [descriptif] =>
- [titre] => <span class="constant">Installation</span> du site
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">14</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Demonstration</span>-<span class="constant">Agenda</span>.html
- [descriptif] =>
- [titre] => <span class="constant">Démonstration</span> <span class="constant">Agenda</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">15</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Titre</span>-de-la-rubrique.html
- [descriptif] =>
- [titre] => <span class="constant">Titre</span> de la rubrique
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">16</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">03</span>
- [url] => <span class="constant">Logo</span>-de-survol.html
- [descriptif] =>
- [titre] => <span class="constant">Logo</span> de survol
- <span class="constant">Nouveauté</span>
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">17</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Altera</span>-sententia-est.html
- [descriptif] =>
- [titre] => <span class="constant">Altera</span> sententia est
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">18</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Quis</span>-enim.html
- [descriptif] =>
- [titre] => <span class="constant">Quis</span> enim
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">19</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Oportunum</span>-est.html
- [descriptif] =>
- [titre] => <span class="constant">Oportunum</span> est
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">20</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Rogatus</span>-ad-ultimum.html
- [descriptif] =>
- [titre] => <span class="constant">Rogatus</span> ad ultimum
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">21</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Urbibus</span>-decorata.html
- [descriptif] =>
- [titre] => <span class="constant">Urbibus</span> decorata
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">22</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Les</span>-derniers-articles-modifies.html
- [descriptif] =>
- [titre] => <span class="constant">Les</span> derniers articles modifiés
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">23</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Image</span>-logo.html
- [descriptif] =>
- [titre] => <span class="constant">Image</span> = logo
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">24</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Articles</span>-avec-le-<span class="constant">Mot</span>-clef-<span class="constant">ALaUne</span>.html
- [descriptif] =>
- <span class="constant">Ceci</span> est une bulle d’aide !
- [titre] => <span class="constant">Articles</span> avec le <span class="constant">Mot</span> clef : « <span class="constant">ALaUne</span> »
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">25</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Un</span>-sourire-peut-changer-une-vie.html
- [descriptif] =>
- [titre] => <span class="constant">Un</span> sourire peut changer une vie
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">26</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Le</span>-nombre-d-article-affiche-est-administrable.html
- [descriptif] =>
- [titre] => <span class="constant">Le</span> nombre d’article affiché est administrable
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">27</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">02</span>
- [url] => <span class="constant">Iamque</span>-non-umbratis.html
- [descriptif] =>
- [titre] => <span class="constant">Iamque</span> non umbratis (pdq2n)
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">28</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
- [url] => <span class="constant">Mensarum</span>-enim.html
- [descriptif] =>
- [titre] => <span class="constant">Mensarum</span> enim
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">29</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
- [url] => <span class="constant">Ideo</span>-urbs-venerabilis.html
- [descriptif] =>
- [titre] => <span class="constant">Ideo</span> urbs venerabilis
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">30</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2015</span>
- [month] => <span class="integer">10</span>
- [lemois] => octobre
- [<span class="predefined">date</span>] => <span class="integer">2015</span>-<span class="integer">10</span>-<span class="integer">22</span> <span class="integer">11</span>:<span class="integer">33</span>:<span class="integer">01</span>
- [url] => <span class="constant">Et</span>-prima-post-<span class="constant">Osdroenam</span>-quam.html
- [descriptif] =>
- [titre] => <span class="constant">Et</span> prima post <span class="constant">Osdroenam</span> quam
- [<span class="keyword">class</span>] =>
- )
- [<span class="integer">31</span>] => <span class="predefined">Array</span>
- (
- [year] => <span class="integer">2019</span>
- [month] => <span class="integer">02</span>
- [lemois] => février
- [<span class="predefined">date</span>] => <span class="integer">2019</span>-<span class="integer">02</span>-<span class="integer">21</span> <span class="integer">12</span>:<span class="integer">46</span>:<span class="integer">24</span>
- [url] => +<span class="constant">Test</span>-d-une-breve+.html
- [descriptif] =>
- [titre] => <span class="constant">Test</span> d’une brève
- [<span class="keyword">class</span>] => iconbreves
- )
- )
- </span>
Mais le résultat n’affiche rien à partir de l’année 2015.
Si je modifie les boucles pour ne générer dans l’array que l’année 2015, celle-ci est affichée correctement.
Si j’enlève des critères fusion lemois, l’année 2015 est parcourue.Testé en SPIP 3.2.3 SVN [24229]
-
mxfdec : set audio timebase to 1/samplerate
28 septembre 2013, par Anton Khirnovmxfdec : set audio timebase to 1/samplerate
Fixes sync in some samples (e.g. bugs 7581 and 8374 in VLC).
Based on a commit by Matthieu Bouron <matthieu.bouron@gmail.com>Reported-by : Jean-Baptiste Kempf <jb@videolan.org>
CC : libav-stable@libav.org -
Stream Live Video and relay audio only to icecast2 server
28 avril 2019, par BadAddyI have a working nginx server which allows me to stream live video from our mobile production system. We also have a radio station on a separate server and would like to stream to both. But I cannot make it work, nor can I get any logs or error information to explain why. I have tried nginx config and FFMPEG to try and resolve this.
I have tried various attempts using what I think I understand from other pages online :
exec_push FFREPORT=file=ffreport.log:level=48 ffmpeg -i $basename.flv -vn -acodec mp3 rtmp://source:********!!@xxx.xxx.xxx.180:8000/live;
Also tried using the simple restream in the nginx conf :
application restream {
live on;
exec_push ffmpeg -i $basename.flv -vn -acodec mp3 rtmp://source:***********@xxx.xxx.xxx.180:8000/live;
# push server2:1935
}I have used the same information on Mixxx Live Broadcast Connection to get the details, thinking I am asking the same thing on the icecast2 server. Just the source is the nginx server.
This is the full conf on nginx
rtmp {
server {
listen 1935;
chunk_size 4000;
application live {
live on;
allow publish 127.0.0.1;
allow publish all;
allow play all;
record all;
record_path /usr/local/nginx/flv-streams;
record_unique on;
exec_record_done ffmpeg -i $basename.flv /usr/local/nginx/html/streams/$basename.mp4;
hls on;
hls_nested on;
hls_path /mnt/hls;
hls_fragment 1s;
hls_sync 1ms;
#exec_push FFREPORT=file=ffreport.log:level=48 ffmpeg -i $basename.flv -vn -acodec mp3 rtmp://source:*************@xxx.xxx.xxx.xxx:8000/live;
}
# Video on Demand
application streams {
play /usr/local/nginx/html/streams/;
}
# Restream
application restream {
live on;
exec_push ffmpeg -i $basename.flv -vn -acodec mp3 rtmp://source***************@xxx.xxx.xxx:8000/live;
# push server2:1935
}
}I would like those that can watch any broadcast with video, but if they can only listen, like a radio, I want them to listen via our radio player. They are two different streams, on different servers.
At the moment I am using software to stream to both and would like to prevent this.
Not found, by my own wording perhaps, any idea on how to do this.
UPDATE
With the help from TBR I have managed to get the stream from the Nginx Server going to a new server hosting icecast2. However, not in the way expected. It does this 32x faster, so not a stream as such.
ffmpeg -i fcpr-1554651146.flv -vn -c:a mp3 icecast://source:password@10.0.0.0:8000/fcprlive.mp3
However, I wonder if I have been thinking of this the wrong way. In my liquidsoap file I have this code :
#!/usr/bin/liquidsoap
# Log dir set("log.file.path","/tmp/basic-radio.log")
# Music
myplaylist = mksafe(playlist("/home/offlineftp/playlist"))
#Live Source
set("harbor.bind_addr","0.0.0.0")
live = input.http("http://localhost:8000/fcprlive")
radio = fallback(track_sensitive=false, [live,plist])
# Stream it out
output.icecast(%mp3, host = "localhost", port = 8000,
password = "pass", mount = "/fcpr")Should I look at using LiquidSoap to pull the stream from Nginx, when live, and if no signal than go to the fallback ?