Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (79)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (14999)

  • Revision 06eed502bd : adjust the context we got from file Change-Id : Ifeed2fa6b8dbc735f3746548e4535d5

    2 juillet 2014, par Jim Bankoski

    Changed Paths :
     Modify /vp9/encoder/vp9_encodeframe.c



    adjust the context we got from file

    Change-Id : Ifeed2fa6b8dbc735f3746548e4535d522e732990

  • What should I put as the context - FFmpeg - Android/Java

    6 août 2017, par pudility

    I am following the documentation for FFmpeg here and I am wondering what I should put as the context ?

    My function

    public static void conversion(String[] cmd) {

    FFmpeg ffmpeg = FFmpeg.getInstance(context); //what should I put as the context here?

    try {


     // to execute "ffmpeg -version" command you just need to pass "-version"
     ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {

       @Override
       public void onStart() {
       }

       @Override
       public void onProgress(String message) {
       }

       @Override
       public void onFailure(String message) {
       }

       @Override
       public void onSuccess(String message) {
       }

       @Override
       public void onFinish() {
       }
     });
    } catch (FFmpegCommandAlreadyRunningException e) {
     // Handle if FFmpeg is already running
     e.printStackTrace();
    }
    }

    And then I call my function like this (from the same class) :

    public void alert(String message) {
         String[] cmd = {"-i"
                 , message
                 , "Image.gif"};
         conversion(cmd);
     }
  • Save generated image to ImageField model Django

    7 janvier 2023, par MrLonely
    


    Detected path traversal attempt in '/home/mrlonely/Desktop/lumen/lumen/media/thumbnail/6.jpeg'

    


    


    When i run this in the views.py :

    


    def generate_thumbnail(instance):
   post = Post.objects.get(pk=instance.pk)
   output = 'media/thumbnail/' + post.title + '.jpeg'
   filename_thumbnail = Path.joinpath(filename, output)  
   try:
      (
            ffmpeg
            .input(str(filename)+post.video.url, ss='00:00:20')
            .output(output, vframes=1)
            .overwrite_output()
            .run(capture_stdout=True, capture_stderr=True)
        )
      with open(filename_thumbnail, 'rb') as file_handler:
         django_file = File(file_handler)
         post.thumbnail.save(filename_thumbnail, 'thumbnail/')
   except ffmpeg.Error as e:
        print(e.stderr.decode(), file=sys.stderr)
        sys.exit(1)


    


    I am trying to connect the ffmpeg generated thumbnail to the model ImageField on the Post model (instance is post)