Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (12391)

  • Using ffmpeg with an audio input from System.IO.Stream

    17 juillet 2020, par kevingoos

    So I am creating a project where I need to convert audio comming from azure text to speech.
    
I wanted to use ffmpeg for this, but I am not an expert with all these parameters.
So far I alread got it working where I read from a $.wav file and convert it to an output System.IO.Stream comming from ffmpeg.

    


    But I want to change it that I don't always save a wav file to disk. Instead now I get a System.IO.Stream from azure text to speech, but I have no clue for the params and the documentation is not really clear for me...

    


    var azureAudio = await new AzureSpeechService().Speak(text);

var psi = new ProcessStartInfo
{
    FileName = @"C:\ffmpeg-20200715-a54b367-win64-static\bin\ffmpeg.exe",
    Arguments = "-i pipe:0 -ac 2 -f s16le -ar 48000 pipe:1",
    RedirectStandardOutput = true,
    UseShellExecute = false
};
var ffmpeg = Process.Start(psi);

var inputStream = ffmpeg.StandardInput.BaseStream;

azureAudio.CopyTo(inputStream);

inputStream.Flush();
inputStream.Close();

var outputStream = ffmpeg.StandardOutput.BaseStream;
await SendAudioAsync(client, outputStream);


    


  • Anomalie #4468 : CSS colonne gauche du privé

    4 avril 2020, par jluc -

    Merci Rasta pour les explications. Désolé je suis pas expert mais ouf j’ai échappé à tes majuscules.

    En regardant sur un autre SPIP je vois qu’il n’y a pas autant de différences donc certains pb viennent de mes propres css. Les boutons sont à droite sauf ceux de Duplicator et celui pour supprimer le logo (centré).
    Les boutons de Duplicator sont auto-forms, alors ça justifie peut être un traitement particulier, mais plutôt qu’alignés à gauche, je les préférerais texte-centrés à width-100% de la colonne comme ceux présentés par Tcharlss ou nicod_.
    Et le bouton pour supprimer le logo est tellement associé à l’image qu’il gagnerait à être remplacé par une simple croix dans un coin du logo, non ? Comme ça il n’y aurait plus ce centrage exceptionnel.

    Les changements proposés sont chouettes aussi.
    Et une simple croix en X rouge pour "Del" ? Ça serait plus léger non ?
    Et pourquoi pas aussi un simple plus + vert pour "Add" plutôt qu’un + blanc sur fond rond vert ?

  • FFMPEG code not generating thumbnail, but it was working before [closed]

    25 mars 2020, par Shijil

    I want to save thumbnails in my website using this simple FFMPEG code.
    I tried to run it, but it shows error

       <?php


    $file="Videos/bloodshot.mp4";
    $vname="bloodshot";

    $W = intval($_GET['file']);
    $H = intval($_GET['file']);

    if(substr($file,0,1) != '.'){

    $mov = new ffmpeg_movie($file);
    $wn = $mov->GetFrameWidth();
    $hn = $mov->GetFrameHeight();

    $frame = $mov->getFrame(32);

    $gd = $frame->toGDImage();

    if(!$W and !$H)
    {

    $W = $neww; // width of the image
    $H = $newh; // height image
    }


    $new = imageCreateTrueColor($W, $H);
    imageCopyResized($new, $gd, 0, 0, 0, 0, $neww, $newh, $wn, $hn);
    $black = imagecolorallocate($new, 255, 255, 255);
    imagegif($new);
    imagegif ($new, './thumb/success.gif', 100);
    }
    ?>

    error log is

    [25-Mar-2020 14:52:31 UTC] PHP Fatal error:  Uncaught Error: Class 'ffmpeg_movie' not found in /home/xxxxxxx/public_html/Videos/ffmpeg.php:12
    Stack trace:
    #0 {main}
     thrown in /home/xxxxxxx/public_html/Videos/ffmpeg.php on line 12

    I was able to run it without error in a mobile site few years ago. But it seems to be not working now.
    Server has FFMPEG support.
    I am not an expert in php, please fix this code for me.