Recherche avancée

Médias (91)

Autres articles (51)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (7068)

  • How to batch "touch" files in subfolder with data from parent folder

    12 août 2019, par Constantine Grigorakis

    I have a folder named "Video" on my Desktop and inside that folder are a bunch of .MTS video files. (00000.MTS, 00001.MTS, 00002.MTS etc...)

    There is also a subfolder "H.265" (Video > H.265) which contains files (00000.mp4, 00001.mp4, 00002.mp4 etc...) which were made by converting the files from the parent folder. The problem is they don’t contain the correct date created metadata.

    I want to use the command

    touch -r 00000.MTS 00000.mp4
    touch -r 00001.MTS 00001.mp4
    ...
    touch -r 000mn.MTS 000mn.mp4

    to copy the date from the MTS to the mp4 file.

    Is there a way I could write a for loop or something to do this for every single file ?

    I am using MacOS Mojave.

  • Video Processing in background with work manager using ffmpeg

    24 novembre 2020, par Naseer Attari

    The problem comes when during the video processing user closes the application himself from the task manager then its processing stops.

    


    I am working on video file processing in android using FFMpeg, which is working perfectly but when I do close the application during processing from task manager then video processing has stopped working even I added all the work in work manager.

    


        @Override 
public Result doWork() {
        shellCommand = new ShellCommand();
        ffmpegBinary = new String[] {
            FileUtils.getFFmpeg(context).getAbsolutePath()
        };
        command = concatenate(ffmpegBinary, command);
        CommandResult commandResult = getCommandResult(command);
        if (command`enter code here`Result.success) {
            onSuccess(videoPath);
        } else {
            onFailure(videoPath);
        }
    }
    //getCommandResult
    private CommandResult getCommandResult(String[] command) {
        try {
            process = shellCommand.run(command, null);
    
            if (process == null) {
                return CommandResult.getDummyFailureResponse();
            }
            checkAndUpdateProcess();
            return CommandResult.getOutputFromProcess(process);
        } catch(Exception e) {} finally {
            Util.destroyProcess(process);
        }
        return CommandResult.getDummyFailureResponse();
    }


    


    As far as I can tell, when the application closes from the background then the parent process destroys it and is destroying all of its sub-process too, FFMpeg is using the android process to execute the command and check the video file status during video processing.

    


    Looking forward to hear from you.
Thanks

    


  • Android Video Processing in background with work manager using ffmpeg

    27 juin 2019, par Naseer Attari

    The problem comes when during the video processing user closes the application himself from the task manager then its processing stops.

    I am working on video file processing in android using FFMpeg, which is working perfectly but when I do close the application during processing from task manager then video processing has stopped working even I added all the work in work manager.

       @Override
    public Result doWork() {
           shellCommand = new ShellCommand();
           ffmpegBinary = new String[] {
               FileUtils.getFFmpeg(context).getAbsolutePath()
           };
           command = concatenate(ffmpegBinary, command);
           CommandResult commandResult = getCommandResult(command);
           if (command`enter code here`Result.success) {
               onSuccess(videoPath);
           } else {
               onFailure(videoPath);
           }
       }
       //getCommandResult
       private CommandResult getCommandResult(String[] command) {
           try {
               process = shellCommand.run(command, null);

               if (process == null) {
                   return CommandResult.getDummyFailureResponse();
               }
               checkAndUpdateProcess();
               return CommandResult.getOutputFromProcess(process);
           } catch(Exception e) {} finally {
               Util.destroyProcess(process);
           }`enter code here`
           return CommandResult.getDummyFailureResponse();
       }

    As far as I can tell, when the application closes from the background then the parent process destroys it and is destroying all of its sub-process too, FFMpeg is using the android process to execute the command and check the video file status during video processing.

    Looking forward to hear from you.
    Thanks