Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (30)

  • 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 ) (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

Sur d’autres sites (2648)

  • ffmpeg : How to change video duration (slow-down or speed-up) to exact value ?

    2 février 2017, par Moo

    I have miltiple videos with different durations and need to always set it to be exactly 10 seconds.

    I know that I can use -filter:v "setpts=speed*duration" but is there any way to make a universal one-line function to convert any-duration video to 10 seconds video ?

  • How to convert popular video formats into each other using Python without FFmpeg ?

    16 janvier 2021, par Manbir Judge

    I am creating a universal file convert in Python using various image or document processing modules and now the goal was to able to convert video files. The only way I was able to find was using FFmpeg but I wanted my application to be standalone without requiring other applications. Is there any way to convert video formats without using FFmpeg ?

    


    Thanks in advance !

  • PHP script works when called from command line, does not when called as background via web server

    6 juin 2014, par fNek

    I am facing a problem with a certain PHP script (CLI mode) I wrote. It should take certain arguments to convert a video with FFMPEG. When I call it from the command prompt, it works fine. However, I have to call it from a web server.

    The PHP script that handles the request calls the PHP script in the background via code I found here at SE :

    if (substr(php_uname(), 0, 7) == "Windows"){
       pclose(popen("start /B ". $cmd, "r"));  
    }
    else {
       exec("nohup " . $cmd . " > /dev/null &");
    }

    When run this way, however, the PHP script does not create the files, even after a much longer time than it took via the command prompt.

    The script runs, I have checked that by letting it insert dummy entries into the database. It also has the permission to create files, which I verified by letting it create a text file.

    What could be the difference that prevents my script from working properly ? I develop and test this code with XAMPP on Windows 7.

    //EDIT : I forgot to give you this link to the background PHP script : http://pastebin.com/pfTZMfwi

    //EDIT2 : I found out that the PHP process runs for a very short time (only until next refresh of the Windows task manager). Could it be that PHP kills its children when it exits ?

    //EDIT3 : No, that seems not to be the problem. I cannot execute programs via exec() when the script is called as background from the web server. What could the problem be, and what would be a solution/workaround ?

    //EDIT4 : The command that seems to cause the trouble is not exec()/etc. but the echo command I did before the exec(). I am going to remove it, but why does it cause a problem ?