Recherche avancée

Médias (91)

Autres articles (102)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

Sur d’autres sites (13351)

  • 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

  • Video Processing in background using ffmpeg

    20 juin 2019, par Mehran

    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.

  • ffmpeg Invalid data found when processing input

    20 mai 2019, par Sulli

    I’m trying to download a specific part of a youtube video with this code :

    step=`youtube-dl -g -f 'bestvideo[ext=mp4]' https://www.youtube.com/watch?v=pMntMsHTDZ0`
    ffmpeg -nostdin  -i "$step" -ss 00:00:10.00 -t 00:00:02.00 -c copy frames/out.mp4

    but I’m getting this error :

    https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/a4c9ed32c1d30d9d/itag/0/ei/fG7iXMihC8_oxwK0qJ-YAQ/playback_host/r6---sn-n4g-jqbd.googlevideo.com/mm/31%2C26/mn/sn-n4g-jqbd%2Csn-5hne6n7s/ms/au%2Conr/mv/m/pl/22/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/716250/mt/1558343198/fvip/4/ip/79.86.92.133/ipbits/0/expire/1558364892/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/D046699C35F9AFF84334BAB20E1D8D4CA5318794.6EF1739E2ED134D16EBBE9242BDDE31F59801AAB/key/yt8: Invalid data found when processing input

    I don’t understand this error, and this code has worked for tens of videos I’ve downloaded before.

    How to fix this or get more information on the error ?