Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (36)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 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 (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (4377)

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

  • 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);
  • Gstreamer Pipeline mpeg2ts stream

    24 juillet 2017, par Antoine Duatip

    I’m new here and new on Gstreamer. I want to learn Gstreamer with easy things.
    I want to save the mpeg2ts/rtp/h264 (sends on the 5041 port) stream on a flv file without decoding encoding. In fact i want to replace this ffmpeg command by a pipeline gstreamer :

    ffmpeg -hide_banner -loglevel panic -y -i rtp://192.168.50.2:5041 -c copy toto.flv

    I confirm that this pipeline works for saving and compressing the stream, but I don’t want to compress it anymore, the charge is too important for my device (I can compress only 2 streams and i have 4 to record) :

    gst-launch-1.0 -e udpsrc port=5041 caps="application/x-rtp" ! queue ! rtpmp2tdepay ! aiurdemux streaming_latency=400 ! queue ! vpudec ! decodebin ! videorate ! video/x-raw,framerate=5/1 ! vpuenc_h264  bitrate=0 ! flvmux ! filesink location=toto.flv

    I tried few pipelines which seem good to me but the output file stays to 0B.
    I tried this pipeline :

    gst-launch-1.0 -e udpsrc port=5041 ! rtpmp2tdepay ! tsdemux  ! h264parse !  queue ! flvmux ! filesink location=toto.flv

    gst-launch-1.0 -e udpsrc port=5041 ! rtpmp2tdepay ! decodebin ! queue ! flvmux ! filesink location=toto.flv

    gst-launch-1.0 -e udpsrc port=5041 caps="application/x-rtp" ! rtpmp2tdepay ! aiurdemux ! queue ! h264parse ! queue ! flvmux ! filesink location=toto.flv

    thx you for your help.
    Best regards,