Recherche avancée

Médias (91)

Autres articles (50)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (11345)

  • avformat/mpegtsenc : Support a user specified PAT/PMT period

    16 juillet 2015, par Michael Niedermayer
    avformat/mpegtsenc : Support a user specified PAT/PMT period
    

    Can be used to fix Ticket3714

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] doc/muxers.texi
    • [DH] libavformat/mpegtsenc.c
  • crossorigin header in php is not working after previous php exec ffmpeg command

    17 avril 2022, par ivyyeziyang

    I am using php exec function to execute a FFMPEG command, but I am also using Javascript to send the request and they are cross origin requests, but after the exec command, while I start to send next cross origin request, it shows&#xA;Access to XMLHttpRequest at 'https://www..com:550/api/adminapi' from origin 'https://www..com:8081' has been blocked by CORS policy : No 'Access-Control-Allow-Origin' header is present on the requested resource.&#xA;which means the cross origin header is not working in the next cross origin request after exec command,&#xA;below is the code :

    &#xA;

    if (isset($_POST[&#x27;crossorigin&#x27;])) {&#xA;$crossoriginallow = array();&#xA;$crossoriginallow = [&#xA;&#x27;https://www.***.com:8080&#x27;, &#xA;&#x27;https://www.***.com:8081&#x27;, &#xA;&#x27;https://www.***.com:8082&#x27;];&#xA;for ($i = 0; $i &lt; sizeof($crossoriginallow); $i&#x2B;&#x2B;) {&#xA;if ($crossoriginallow[$i] == $_POST[&#x27;crossorigin&#x27;]) {&#xA;  $crossorigin = $_POST[&#x27;crossorigin&#x27;];&#xA;  break;&#xA;  }&#xA;}&#xA;header("Access-Control-Allow-Origin:$crossorigin");&#xA;header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE");&#xA;header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep- &#xA;Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache- &#xA;Control,Content-Type, Accept-Language, Origin, Accept-Encoding");&#xA;}&#xA;&#xA;exec("ffmpeg -i " . $infilepath . " -c:v mpeg4 -preset veryslow - &#xA; c:a mp3 -q 0 " . $outfilepath /* . " 2>&amp;1" *//* , $out */);&#xA;&#xA; $infilepathsep = explode(&#x27;/&#x27;, $infilepath);&#xA; $folderpath = &#x27;&#x27;;&#xA; for ($i = 0; $i &lt; sizeof($infilepathsep) - 1; $i&#x2B;&#x2B;) {&#xA; $folderpath = $folderpath . $infilepathsep[$i];&#xA; $folderpath = $folderpath . &#x27;/&#x27;;&#xA;}&#xA;&#xA; $opendirhandle = opendir($folderpath);&#xA; closedir($opendirhandle);&#xA; $openfilehandle = fopen($infilepath, &#x27;r&#x27;);&#xA; fclose($openfilehandle);&#xA; unlink(iconv("utf-8", "gbk", $infilepath));&#xA; $result[&#x27;data&#x27;] = $outfilepath;&#xA; $result[&#x27;msg&#x27;] = &#x27;success&#x27;;&#xA; $jsonresult = json_encode($result);&#xA; echo $jsonresult;&#xA; ob_get_contents();&#xA; ob_end_flush();&#xA;

    &#xA;

    I does not encounter this problem before using the same code,but after I reinstall the computer it happens, May I please ask the reason if you know the problem ? Thank you very much for your help !

    &#xA;

  • Is it feasible to dynamically add specific headers to a single page within an Angular SPA application when served from the server ?

    18 octobre 2024, par gokul m

    I'm concerned that since Angular's routing is handled client-side, this might not be directly possible or is it ?

    &#xA;

    I attempted to add headers on my local Angular server as follows :

    &#xA;

    &#xA;&#xA;          "options": {&#xA;            "headers": {&#xA;              "Cross-Origin-Embedder-Policy": "require-corp",&#xA;              "Cross-Origin-Opener-Policy": "same-origin"&#xA;            }&#xA;          }&#xA;

    &#xA;

    This resulted in CORS errors for all app resources loading from different origins. Given that Angular routers operate client-side, I'm exploring options to achieve server-side rendering for a specific single page. I need to apply the above headers to that path both locally and when deploying with Cloudflare.

    &#xA;