Recherche avancée

Médias (91)

Autres articles (31)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

Sur d’autres sites (2321)

  • Revision 70728 : Un chouilla de phpdoc et éviter une notice si ...

    14 mars 2013, par kent1@… — Log

    Un chouilla de phpdoc et éviter une notice si $argscontexte ?modele ? n’est pas défini

  • Revision 70728 : Un chouilla de phpdoc et éviter une notice si ...

    14 mars 2013, par kent1@… — Log

    Un chouilla de phpdoc et éviter une notice si $argscontexte ?modele ? n’est pas défini

  • how to capture continuous Realtime progress stream of output (from ffmpeg)

    6 décembre 2022, par user206904

    I am having trouble showing the progress of ffmpeg through my script. I compile my script to exe with ps2exe and ffmpeg output on standard error instead of outputting on standard out
So I used to pipe 1 option

    


    my script.ps1 now is :

    


    # $nb_of_frames= #some_int
& $ffmpeg_path -progress pipe:1 -i input.mp4 -c:v libx264 -pix_fmt yuv420p -crf 25 -preset fast -an output.mp4


    


    then I compile it with ps2exe. (to reproduce you don't need the compile, just use the above command with pipe:1 directly in cmd or PowerShell you will get the same behavior)

    


    Normally with ffmpeg you get a progress reporting (that is interactive), one line containing the information and it keeps getting updated as 1 single line without spamming the console with 100s of lines, it looks like this.

    


    frame= 7468 fps=115 q=22.0 size=   40704kB time=00:05:10.91 bitrate=1072.5kbits/s speed= 4.8x


    


    But this does not appear in the compiled version of my script, so after digging I added -progress pipe:1 to get the progress to appear on std out

    


    Now I get a continuous output every second that looks like this :

    


    frame=778
fps=310.36
stream_0_0_q=16.0
bitrate= 855.4kbits/s
total_size=3407872
progress=continue
...
frame=1092
fps=311.04
stream_0_0_q=19.0
bitrate= 699.5kbits/s
total_size=3932160
progress=continue 


    


    I would like to print some sort of updatable percentage out of this, I can compute a percentage easily if I can capture that frame number, but in this case, I don't know how to capture a real-time output like this and how to make my progress reporting update 1 single line of percentage in real-time (or some progress bar via symbols) instead of spamming on many lines

    


    (or if there is a way to make the default progress of FFmpeg appear in the compiled version of my script that would work too)

    


    edit : a suggestion based on the below answer

    


    #use the following lines instead of write-progress if using with ps2exe
            #$a=($frame * 100 / $maxFrames)
            #$str = "#"*$a
            #$str2 = "-"*(100-$a)
            #Write-Host -NoNewLine "`r$a% complete | $str $str2|"



    


    Thanks