Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (54)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (11405)

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