Recherche avancée

Médias (91)

Autres articles (44)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

Sur d’autres sites (5363)

  • FFmpeg command works in terminal but gives an error in php code

    21 mai 2021, par Rider

    Use this command :

    


    ffmpeg -i lecture.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8


    


    It works.

    


    $path = '1/';
  $inputFile = 'lecture.mp4';
  $filePath = 'filename.m3u8';
  $commandOutput = exec ('/opt/ffmpeg/ffmpeg -I '.$path .$inputFile. ' -Codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls'.$path .$filePath);


    


    Using this PHP code I get the error : At least one output file must be specified

    


    What is causing this error ?

    


  • Execute multiple commands in background from terminal & redirecting output

    9 octobre 2016, par Guernica

    I’m running ffmpeg via an exec command from php. I need to wait for the command to finish executing and run another command to call a php script.

    I need the output to be redirected to text files.

    This i have accomplished with the following code but it wont execute in the background. PHP hangs until the script has finished executing.

    exec("ffmpeg -i INPUTFILE -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -strict -2 OUTPUTFILE -hide_banner 1> /tmp/1.txt 2>/tmp/1.txt && php PATH_TO_PHP_SCRIPT/complete.php id=11 1> /tmp/11.txt 2> /tmp/11.txt &");

    Any help would be greatly appreciated.

    EDIT : I’ve got the required functionality by calling my original php containing the above code from another php containing

    exec("php convert.php id=".$id."  1> /tmp/".$id."_error.txt 2>/tmp/".$id."_error.txt &");

    I would rather leave this question open to find a more elegant solution or information as to why my original code at the top doesn’t function in the way i would expect.

  • mac terminal ffmpeg batch recursive conversion preserving directory structure

    13 avril 2020, par kidnim

    i'm using ffmpeg on mac to batch convert .flv to .mp4 files. i'm trying to find all files in subdirectories of the current directory and save new files in the same directory.

    



    for instance starting with :

    



    subdirectory1/video1.flv
subdirectory1/video2.flv
subdirectory2/video1.flv


    



    and ending with

    



    subdirectory1/video1.mp4
subdirectory1/video2.mp4
subdirectory2/video1.mp4


    



    i've gotten this far but can't figure out how to save with preserved recursive directories

    



    for i in  `find -name . "*.flv"`; do ffmpeg -i "$i" "${i%.*}.mp4"; done