Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (48)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (8056)

  • ffmpeg boxblur filter takes too long

    12 juin 2020, par Prashant_Sarin

    I am using below command to blur a video but it is very slow. Can anyone please help if i can improve the speed somehow.

    



    "ffmpeg -i $inputPath -lavfi [0:v]split=2[original][copy];[copy]scale=ih*16/9:-1,crop=h=iw*9/16,boxblur=luma_radius=50:chroma_radius=25:luma_power=2[blurred];[blurred][original]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[final] -map [final] -map a:0 -g 2 -preset ultrafast $outputPath -y"


    


  • Trying to merge two videos from my photo roll with Flutter ffmpeg without success

    4 avril 2023, par Stéphane de Luca

    My goal is to merge too video I pick from my photo roll.
My code starts as follows :

    


    // videos[0] contains: "content://media/external/video/media/2779"
 final v1 = await videos[0].getMediaUrl();
    if (v1 == null) return;
    final v1Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v1);


    


    But printing v1Pathgive a path with jpeg extension :
/data/user/0/com.example.shokaze/cache/OutputFile_1669939088711.jpeg' which I though would have bear mp4` as it is a video.

    


    Why is it so ?

    


    Another question I have is how can I make a relevant path so that the ffmpeg video appears in my roll after its creation ? Should I do the following and provide outputPathto the code ?

    


    The command it executes is :
-i /data/user/0/com.example.shokaze/cache/OutputFile_1669940421875.jpeg -i /data/user/0/com.example.shokaze/cache/OutputFile_1669940428723.jpeg -filter_complex '[0:0][1:0]concat=n=2:v=1:a=0[out]' -map '[out]' /data/user/0/com.example.shokaze/app_flutter/output.mp4

    


    And I get an error :
I/flutter (30190): error 1

    


    My code is as follows :

    


        String output = "content://media/external/video/media/output";
    final outputPath = await LecleFlutterAbsolutePath.getAbsolutePath(uri: output);
    if (outputPath == null) return;


    


    The full code is as follows :

    


    // Makes the final video by merging all videos from the mixing table
  void makeFinalVideo() async {
    if (videos.length < 2) return;

    final v1 = await videos[0].getMediaUrl();
    if (v1 == null) return;
    final v1Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v1);
    if (v1Path == null) return;
    //String v1 = "";
    final v2 = await videos[1].getMediaUrl();
    if (v2 == null) return;
    final v2Path = await LecleFlutterAbsolutePath.getAbsolutePath(uri: v2);
    if (v2Path == null) return;
    String output = "content://media/external/video/media/output";
    final outputPath = "";
    // await LecleFlutterAbsolutePath.getAbsolutePath(uri: output);
    // if (outputPath == null) return;

    Video.merge(v1Path, v2Path, outputPath);
  }



class Video {
  /// Merges the video [v1] with [v2] as [output] video located in app doc path
  static void merge(String v1, String v2, String output) async {
    final appDocDir = await getApplicationDocumentsDirectory();

    //final appDir = await syspaths.getApplicationDocumentsDirectory();
    String rawDocumentPath = appDocDir.path;
    final outputPath = '$rawDocumentPath/output.mp4';

    final command =
        '-i $v1 -i $v2 -filter_complex \'[0:0][1:0]concat=n=2:v=1:a=0[out]\' -map \'[out]\' $outputPath';
    //await execute(command);
    try {
      final r = await FFmpegKit.execute(command);

      //.then((rc) => print("FFmpeg process exited with rc $rc"));
      print("Result: $r");
    } catch (e) {
      print("Exception: $e");
    }
  }
}


    


  • Flutter Animated Thumbnails

    2 septembre 2020, par user433575

    I'm using the camera package to record videos and want to have animated thumbnails. I don't see any packages other than ffmpeg which might be able to do it but I'm stuck.

    


    I need to capture videos using the camera package, save them to mp4 and generate webp animated images from it. Any help or suggestions greatly appreciated.

    


    Here's some of my code :

    


        static Future<string> getThumb(videoPath, width, height) async {&#xA;assert(File(videoPath).existsSync());&#xA;&#xA;final String outPath = &#x27;$videoPath.webp&#x27;;&#xA;final arguments =&#xA;    &#x27;-y -i $videoPath -vcodec webp -loop 0 -pix_fmt yuv420p $outPath&#x27;;&#xA;&#xA;    &#xA;final int rc = await _encoder.execute(arguments);&#xA;assert(rc == 0);&#xA;assert(File(outPath).existsSync());&#xA;&#xA;return outPath;&#xA;</string>

    &#xA;

    }

    &#xA;

    Thanks

    &#xA;