Recherche avancée

Médias (91)

Autres articles (83)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

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

Sur d’autres sites (5518)

  • How do I add a custom thumbnail to a .mp4 file using ffmpeg ?

    8 avril 2020, par cooder_one

    I am trying to find the proper ffmpeg command to add a .png or .jpg image to a .mp4 video as a thumbnail. The command will eventually automatically be executed by a C# program.

    



    This is what I have so far :

    



    # This does not work. It only removes the default thumbnail.
ffmpeg -i video.mp4 -i image.png -acodec copy -vcodec copy -map 0 -map 1:0 OUTPUT.mp4


    



    Is what I want possible with ffmpeg ? If so, please guide me in the right direction.

    


  • Image sequence to video stream ?

    15 novembre 2020, par Hauns TM

    Like many people already seem to have (there are several threads on this subject here) I am looking for ways to create video from a sequence of images.

    



    I want to implement my functionality in C# !

    



    Here is what I wan't to do :

    



    /*Pseudo code*/&#xA;void CreateVideo(List<image> imageSequence, long durationOfEachImageMs, string outputVideoFileName, string outputFormat)&#xA;{&#xA;    // Info: imageSequence.Count will be > 30 000 images&#xA;    // Info: durationOfEachImageMs will be &lt; 300 ms&#xA;&#xA;    if (outputFormat = "mpeg")&#xA;    {&#xA;    }&#xA;    else if (outputFormat = "avi")&#xA;    {      &#xA;    }&#xA;    else&#xA;    {&#xA;    }&#xA;&#xA;    //Save video file do disk&#xA;}&#xA;</image>

    &#xA;&#xA;

    I know there's a project called Splicer (http://splicer.codeplex.com/) but I can't find suitable documentation or clear examples that I can follow (these are the examples that I found).

    &#xA;&#xA;

    The closest I want to do, which I find here on CodePlex is this :&#xA;How can I create a video from a directory of images in C# ?

    &#xA;&#xA;

    I have also read a few threads about ffmpeg (for example this : C# and FFmpeg preferably without shell commands ? and this : convert image sequence using ffmpeg) but I find no one to help me with my problem and I don't think ffmpeg-command-line-style is the best solution for me (because of the amount of images).

    &#xA;&#xA;

    I believe that I can use the Splicer-project in some way (?).

    &#xA;&#xA;

    In my case, it is about about > 30 000 images where each image should be displayed for about 200 ms (in the videostream that I want to create).

    &#xA;&#xA;

    (What the video is about ? Plants growing ...)

    &#xA;&#xA;

    Can anyone help me complete my function ?

    &#xA;

  • subprocess Task fail after 8min when run inside Flask or BaseHTTPServer

    6 août 2015, par jthemovie

    I’m doing live HLS encoding with ffmpeg, and i usually run it via a python program as follow (i made some shortcuts...) :

    import subprocess

    def main():
       subprocess.Popen("ffmpeg -i .... (live hls encoding)", shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    if __name__ == '__main__':
      main()

    And everything works like a charm, but when i use Flask or BaseHTTPServer, the very same weird behaviour occurs.

    After around 8min (more or less few seconds), the program stop responding and the encoding stop.

    import subprocess
    from flask import Flask, url_for, request, json, Response

    @app.route('/api/v2/livetv', methods = ['POST'])
    def api_live():
       subprocess.Popen("ffmpeg -i .... (live hls encoding)", shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
       return "-"

    if __name__ == '__main__':
      app.run(host='127.0.0.1', port=5001,debug=True)

    I tried using BaseHTTPServer, the very same behaviour occurs, it usually stop encoding after the segment number 46, or 47, which correspond at those 8 min.

    I have no idea why this behavior occurs. For example, the first script, once terminated, the ffmpeg will continue in background, while if i terminate the script with the web server, the ffmpeg program will exit as well.

    So if anyone could help me out with that, i would be more than glad.

    Thanks a lot for your help.

    Regards

    ps : if interested , my ffmpeg line look like this :

    /usr/bin/ffmpeg -user-agent "A User Agent" -headers "X-Forwarded-For:x.x.x.x"$’\r\n’ -re -i "http://..../index_2000_av-p.m3u8" -c:v libx264 -profile:v baseline -preset medium -x264opts level=41 -b:v 500k -s 600x340 -g 90 -bf 2 -c:a copy -f hls -hls_list_size 20 -hls_time 10 -hls_flags delete_segments -hls_segment_filename /var/www/livestream/"segment%03d.ts" /var/www/livestream/playlist.m3u8