Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (70)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

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

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (5897)

  • lavf : move avpriv function definition to internal.h

    1er avril 2018, par Josh de Kock
    lavf : move avpriv function definition to internal.h
    

    Signed-off-by : Josh de Kock <josh@itanimul.li>

    • [DH] libavdevice/alldevices.c
    • [DH] libavformat/allformats.c
    • [DH] libavformat/avformat.h
    • [DH] libavformat/internal.h
  • FFmpeg output to textfile causing 500 Internal Server Error in PHP

    27 mars 2018, par user3080392

    I have a PHP script with two FFmpeg commands. The first command combines a list of .ts files into a single .ts file and logs the output information into a textfile. The second command converts the combined .ts file into an mp4 file and logs the output information into a textfile.

    Here’s the PHP :

    &lt;?php
    error_reporting(E_ALL);
    ini_set('display_errors', 'On');

    $ffmpeg = "/usr/local/bin/ffmpeg";
    $vidClips = 'my_vids/vidClipslist.txt';
    $combinedFileTs = 'my_vids/combinedFileTs.ts';
    $logFileCombine = 'my_vids/logFileCombine.txt';
    $logFileConvert = 'my_vids/logFileConvert.txt';
    $combinedFileMp4 = 'my_vids/combinedFileMp4.mp4';

    shell_exec("$ffmpeg -f concat -safe 0 -i $vidClips -c copy $combinedFileTs 1> $logFileCombine 2>&amp;1");

    shell_exec("$ffmpeg -i $combinedFileTs -f mpegts -codec:v mpeg1video -bf 0 -codec:a mp2 -q 12 $combinedFileMp4 1> $logFileConvert 2>&amp;1");

    echo "Video finished.";
    ?>

    When I run this, my 500.shtml file message is shown on the page. However, I get no other error message echoed to the page nor are there any errors in my Cpanel error log. I also have a php error log set up, but it doesn’t show any errors.
    Oddly, both of the FFmpeg commands do what they’re supposed to, i.e., the "combinedFileTs.ts", "logFileCombine.txt", "combinedFileMp4.mp4", and "logFileConvert.txt" are all created. It’s just that I’m getting the 500 error and the PHP script following the two FFmpeg commands is not being run, i.e., echo "video finished."

    When I remove the output directive on the first FFmpeg command, i.e., "1> $logFileCombine 2>&1", everything works. All the files are created, the proceeding PHP script is run, and I don’t get the 500 error.

    &lt;?php
    error_reporting(E_ALL);
    ini_set('display_errors', 'On');

    $ffmpeg = "/usr/local/bin/ffmpeg";
    $vidClips = 'my_vids/vidClipslist.txt';
    $combinedFileTs = 'my_vids/combinedFileTs.ts';
    $logFileCombine = 'my_vids/logFileCombine.txt';
    $logFileConvert = 'my_vids/logFileConvert.txt';
    $combinedFileMp4 = 'my_vids/combinedFileMp4.mp4';

    shell_exec("$ffmpeg -f concat -safe 0 -i $vidClips -c copy $combinedFileTs");

    shell_exec("$ffmpeg -i $combinedFileTs -f mpegts -codec:v mpeg1video -bf 0 -codec:a mp2 -q 12 $combinedFileMp4 1> $logFileConvert 2>&amp;1");

    echo "Video finished.";
    ?>    

    Also, the first FFmpeg command takes about 2 min to run. Thinking that the problem was due to the PHP script being killed, I increased the max_execution_time to 600 and the memory_limit to 512M in my php.ini file but that did not fix the problem.

    I need both FFmpeg commands to produce an output log textfile and I need the proceeding PHP code to run.

  • avcodec/noise_bsf : move the reference in the bsf internal buffer

    20 mars 2018, par James Almer
    avcodec/noise_bsf : move the reference in the bsf internal buffer
    

    There's no need to allocate a new packet for it.

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/noise_bsf.c