Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (66)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

Sur d’autres sites (13699)

  • Flutter : Running FFmpeg.execute to generate thumbnails in a different isolate doesn't work ?

    12 novembre 2024, par Vasudev

    This is the current code to generate thumbnails for Video and Audio files.. It is working fine in most cases.

    


    @override&#xA;Future<imageprovider> thumbnail(String path,&#xA;{required double width, required double height}) async {&#xA;&#xA;&#xA;  final FFmpegSession session = await FFmpegKit.executeAsync(&#xA;          "-loglevel quiet -i &#x27;$filePath&#x27; -y -ss 00:00:00.000 -vframes 1 &#x27;$thumbnailPath&#x27;");&#xA;&#xA;&#xA;  final returnCode = await session.getReturnCode();&#xA;  if (returnCode == null || returnCode.isValueError()) {&#xA;    throw Exception("Thumbnail generation failed");&#xA;  }&#xA;&#xA;/* Returns ImageProvider */&#xA;}&#xA;</imageprovider>

    &#xA;

    Now in iOS, for large files, the thumbnail generation doesn't really fail. But takes a long time and doesn't complete at all.

    &#xA;

    This causes performance issues. I would like to run this FFmpeg.execute() in a different isolate, but it doesn't work at all.

    &#xA;

      final FFmpegSession session = await Isolate.run(&#xA;    () async {&#xA;      return await FFmpegKit.executeAsync(&#xA;          "-loglevel quiet -i &#x27;$filePath&#x27; -y -ss 00:00:00.000 -vframes 1 &#x27;$thumbnailPath&#x27;");&#xA;    },&#xA;  );&#xA;

    &#xA;

  • ffmpeg timelapse discard garbage jpg [duplicate]

    12 mai 2021, par piekn

    I'm successfully creating timelapse video (jpg->mp4) using command line&#xA;$ffmpeg -r $fps -f concat -safe 0 -i $concat_file -c:v libx264 -vf 'format=yuv420p' $thumbnail 2>&1 &

    &#xA;

    But some of source jpg are 'garbage' (look picture below what I mean) - part of the picture is lost.&#xA;part of picture is lost

    &#xA;

    As result, final clip contains damaged frames (see below)&#xA;final clip

    &#xA;

    As I see, the best for me is to discard these jpg. But I have no ideas how to define them ? - file system don't see them as 'broken', etc.

    &#xA;

    Any ideas ?

    &#xA;

  • ffmpeg with Flutter - Error in my code - Video not created

    30 juillet 2020, par cssler

    I try to create a video from images with flutter and ffmpeg. I think the logic of my code is correct, but I always get the return value 1 which says that the execute was not successfull.

    &#xA;

    Do you find the error in my code ?

    &#xA;

    Future<void> _onCreateVideoFromImages() async {&#xA;      Directory tempDir = await getTemporaryDirectory();&#xA;      String tempPath = tempDir.path;&#xA;&#xA;      final allPictures = await picturesData.getPicturesFromAlbum(albumID);&#xA;&#xA;      List textFileMap = [];&#xA;&#xA;      for (var i = 0; i &lt; allPictures.length; i&#x2B;&#x2B;) {&#xA;        var file = File(allPictures[i].path);&#xA;&#xA;        final newFile = await file&#xA;            .copySync("$tempPath/img${i.toString().padLeft(4, &#x27;0&#x27;)}.jpg");&#xA;&#xA;        print("File has been moved successfully to temporary folder: $newFile");&#xA;&#xA;        textFileMap.add("file &#x27;" &#x2B; newFile.path &#x2B; "&#x27;");&#xA;      }&#xA;&#xA;      print("Final list:");&#xA;      print(textFileMap);&#xA;&#xA;      print("Create txt file for ffmpeg");&#xA;      final File file = File(&#x27;${tempPath}/images.txt&#x27;);&#xA;      final textFile = await file.writeAsString(textFileMap.join("\n"));&#xA;      print("txt file created successfully: $textFile");&#xA;&#xA;      await _flutterFFmpeg.execute(&#xA;              "ffmpeg -f concat -safe 0 -i $textFile -c copy $tempPath/output.mp4")&#xA;          .then((rc) {&#xA;        if (rc == 0) {&#xA;          print("Video completed");&#xA;        } else {&#xA;          print(rc); // Returns 1&#xA;        }&#xA;      });&#xA;    }&#xA;</void>

    &#xA;

    And here the console log

    &#xA;

    flutter: File has been moved successfully to temporary folder: File: &#x27;/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0001.jpg&#x27;&#xA;flutter: Final list::&#xA;flutter: [file &#x27;/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0000.jpg&#x27;, file &#x27;/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0001.jpg&#x27;]&#xA;flutter: Create txt file for ffmpeg"&#xA;flutter: txt file created successfully: &#x27;/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/images.txt&#x27;&#xA;flutter: Code: 1&#xA;

    &#xA;

    I appreciate your help !

    &#xA;