Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (48)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (3732)

  • What is the best way to implement ffmpeg for mp3 compression with php on the fly ? [on hold]

    11 décembre 2015, par Akash Bose

    I am trying to compress mp3 files to 92 kbps on the fly when a user uploads a mp3 file. It looks like conversion takes my 35% of CPU for a single file. So if three conversion process happens together it takes my entire CPU recourse. i am using the following command :

    $cmd = 'ffmpeg -i ' . $mp3path . ' -ab 92k ' . $smp3path . '.mp3';
    exec($cmd);
  • Flutter video_compress and then ffmpeg trim video to 30s fails with endless logs

    7 mars 2021, par Charles Bass

    I am trying to make a simple app in Flutter. A user can either take or pick a video and then upload it. However, I wanted to compress the video for storage purposes on firebase storage, and also trim it to only get the first 30 seconds.

    


    I am facing a very puzzling problem. I am able to compress the video, but with the resultant file, FFmpeg fails to trim it and I get endless logs which result in me having to stop the app and re-run. Alternatively, I am able to trim the video, but with the resultant file, I am unable to compress it getting the error :  Failed to open file '/data/user/0/live.roots.roots/app_flutter/TRIMMED.mp4'. (No such file or directory) PlatformException(error, java.io.IOException: Failed to instantiate extractor., null, java.lang.RuntimeException: java.io.IOException: Failed to instantiate extractor.

    


    This is my code below :

    


    

    

    //! function that controls file compression and trimming&#xA;static Future<file> compressFile(File file) async {&#xA;    print(&#x27;[COMPRESSING FILE]&#x27;);&#xA;&#xA;    String mimeStr = lookupMimeType(file.path);&#xA;    var fileType = mimeStr.split(&#x27;/&#x27;);&#xA;&#xA;    if (fileType.contains("image")) {&#xA;      print(&#x27;[COMPRESSING FILE] - file is image&#x27;);&#xA;      String tempPath = (await getTemporaryDirectory()).path;&#xA;      String targetPath = &#x27;$tempPath/${DateTime.now().toIso8601String()}.jpg&#x27;;&#xA;      return await compressImageAndGetFile(file, targetPath);&#xA;    } else {&#xA;      print(&#x27;[COMPRESSING FILE] - file is video&#x27;);&#xA;&#xA;      final compressedVideoFile = await compressVideoAndGetFile(file);&#xA;      print(&#x27;[VIDEO FILE COMPRESSED]&#x27;);&#xA;      return await trimVideoGetFile(compressedVideoFile);&#xA;    }&#xA;  }&#xA;  &#xA;  &#xA;//! function to compress video&#xA;static Future<file> compressVideoAndGetFile(File file) async {&#xA;    print(&#x27;[COMPRESSING VIDEO]&#x27;);&#xA;&#xA;    var result = await VideoCompress.compressVideo(&#xA;      file.absolute.path,&#xA;      quality: VideoQuality.DefaultQuality,&#xA;      deleteOrigin: true,&#xA;    );&#xA;&#xA;    print(&#x27;[COMPRESSED VIDEO TO]: ${result.file.path}&#x27;);&#xA;&#xA;    return result.file;&#xA;  }&#xA;  &#xA;//! function to trim video&#xA;static Future<file> trimVideoGetFile(File file) async {&#xA;    print(&#x27;[TRIMMING VIDEO]&#x27;);&#xA;&#xA;    Directory appDocumentDir = await getApplicationDocumentsDirectory();&#xA;    String rawDocumentPath = appDocumentDir.path;&#xA;    String outputPath = rawDocumentPath &#x2B; "/TRIMMED.mp4";&#xA;&#xA;    final newFile = File(outputPath);&#xA;&#xA;    if (await newFile.exists()) {&#xA;      await newFile.delete();&#xA;    }&#xA;&#xA;    _flutterFFmpeg&#xA;        .execute(&#xA;            "-ss 00:00:00 -i ${file.path} -to 00:00:30 -c copy $outputPath")&#xA;        .then((rt) async {&#xA;      print(&#x27;[TRIMMED VIDEO RESULT] : $rt&#x27;);&#xA;      if (rt == -1) {&#xA;        throw Exception("Something went wrong when trimming the video");&#xA;      }&#xA;    });&#xA;&#xA;    return File(outputPath);&#xA;  }</file></file></file>

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;

    Thank you in advance

    &#xA;

  • The real time compression with ffmpeg [on hold]

    14 avril 2015, par midrel

    I am working on a project that will make real time video compression. All images come from camera and are stored in the RAM at a rate of 30 fps.

    I want to use FFmpeg to compress it image by image and to transmit either to RAM or anywhere.

    Could somebody help me please ?