Recherche avancée

Médias (91)

Autres articles (65)

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

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

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (6376)

  • Which FFMPEG Arguments to Copy .m4a Audio File in Flutter ?

    25 juillet 2021, par Meggy

    I've got my own fork of GSPrakashNaidu' Flutter Audio_Trimmer plugin which I'd like to use to edit an M4a audio file.

    


    https://github.com/meghead/audio_trimmer

    


    The plugin passes the following command to Flutter's FFMPEG plugin ;

    


    "-y -i \"$path\" -vn -ss $start -to $end -ar 16k -ac -c:a aac -b:a 96k -acodec copy $outPath"; 


    


    Which can be seen here in the Android Studio console ;

    


    Running FFmpeg with arguments: [-y, -i, /storage/emulated/0/Android/data/myfiles/files/flutter_audio_recorder_1627212132002.m4a.temp, -vn, -ss, 5.0, -to, 10.5, -ar, 44k, -ac, 2, -b:a, 96k, -acodec, copy, /data/user/0/myfiles/cache/output.m4a].


    


    But here's the error which gets thrown ;

    


    Guessed Channel Layout for Input Stream #0.0 : mono
I/mobile-ffmpeg(21007): Input #0, wav, from '/storage/emulated/0/Android/data/myfiles/files/flutter_audio_recorder_1627212265033.m4a':
I/mobile-ffmpeg(21007):   Duration: 
I/mobile-ffmpeg(21007): 00:00:01.91
I/mobile-ffmpeg(21007): , bitrate: 
I/mobile-ffmpeg(21007): 705 kb/s
I/mobile-ffmpeg(21007): 
I/mobile-ffmpeg(21007):     Stream #0:0
I/mobile-ffmpeg(21007): : Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
I/mobile-ffmpeg(21007): 
E/mobile-ffmpeg(21007): [ipod @ 0x7277f388c0] Could not find tag for codec pcm_s16le in stream #0, codec not currently supported in container
E/mobile-ffmpeg(21007): Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
I/mobile-ffmpeg(21007): Stream mapping:
I/mobile-ffmpeg(21007):   Stream #0:0 -> #0:0
I/mobile-ffmpeg(21007):  (copy)
I/mobile-ffmpeg(21007): 
E/mobile-ffmpeg(21007): 
I/mobile-ffmpeg(21007): Conversion failed!
D/flutter-ffmpeg(21007): FFmpeg exited with rc: 1 


    


    What argument can I use to output .m4a ?

    


  • Which FFMPEG Arguments to Pass for .m4a Audio File in Flutter ?

    25 juillet 2021, par Meggy

    I've got my own fork of GSPrakashNaidu' Flutter Audio_Trimmer plugin which I'd like to use to edit an M4a audio file.

    


    https://github.com/meghead/audio_trimmer

    


    The plugin passes the following command to Flutter's FFMPEG plugin ;

    


    "-y -i \"$path\" -vn -ss $start -to $end -ar 16k -ac -c:a aac -b:a 96k -acodec copy $outPath"; 


    


    Which can be seen here in the Android Studio console ;

    


    Running FFmpeg with arguments: [-y, -i, /storage/emulated/0/Android/data/myfiles/files/flutter_audio_recorder_1627212132002.m4a.temp, -vn, -ss, 5.0, -to, 10.5, -ar, 44k, -ac, 2, -b:a, 96k, -acodec, copy, /data/user/0/myfiles/cache/output.m4a].


    


    But here's the error which gets thrown ;

    


    Guessed Channel Layout for Input Stream #0.0 : mono
I/mobile-ffmpeg(21007): Input #0, wav, from '/storage/emulated/0/Android/data/myfiles/files/flutter_audio_recorder_1627212265033.m4a':
I/mobile-ffmpeg(21007):   Duration: 
I/mobile-ffmpeg(21007): 00:00:01.91
I/mobile-ffmpeg(21007): , bitrate: 
I/mobile-ffmpeg(21007): 705 kb/s
I/mobile-ffmpeg(21007): 
I/mobile-ffmpeg(21007):     Stream #0:0
I/mobile-ffmpeg(21007): : Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
I/mobile-ffmpeg(21007): 
E/mobile-ffmpeg(21007): [ipod @ 0x7277f388c0] Could not find tag for codec pcm_s16le in stream #0, codec not currently supported in container
E/mobile-ffmpeg(21007): Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
I/mobile-ffmpeg(21007): Stream mapping:
I/mobile-ffmpeg(21007):   Stream #0:0 -> #0:0
I/mobile-ffmpeg(21007):  (copy)
I/mobile-ffmpeg(21007): 
E/mobile-ffmpeg(21007): 
I/mobile-ffmpeg(21007): Conversion failed!
D/flutter-ffmpeg(21007): FFmpeg exited with rc: 1 


    


    What argument can I use to output .m4a ?

    


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