Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (90)

  • 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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (11855)

  • Can I use the file buffer or stream as input for fluent-ffmpeg ? I am trying to avoid saving the video locally to get its path before removing

    22 avril 2023, par Moath Thawahreh

    I am receiving the file via an api, I was trying to process the file.buffer as input for FFmpeg but it did not work, I had to save the video locally first and then process the path and remove the saved video later on.
I don't want to believe that there is no other way to solve this and I have been looking for solutions and workarounds but it was all about ffmpeg input as a path.

    


    I would love to find a solution using fluent-ffmpeg because it has some other great features, but I won't mind any suggestions for compressing the video using any different approaches if it's more efficient

    


    Again my code below works fine but I have to save the video and then remove it I am hoping for a more efficient solution :

    


      fs.writeFileSync(&#x27;temp.mp4&#x27;, file.buffer);&#xA;&#xA;    // Resize the temporary file using ffmpeg&#xA;    ffmpeg(&#x27;temp.mp4&#x27;) // here I tried pass file.buffer as readable stream,it receives paths only &#xA;      .format(&#x27;mp4&#x27;)&#xA;      .size(&#x27;50%&#x27;)&#xA;      .save(&#x27;resized.mp4&#x27;)&#xA;      .on(&#x27;end&#x27;, async () => {&#xA;        // Upload the resized file to Firebase&#xA;        const resizedFileStream = bucket.file(`video/${uniqueId}`).createWriteStream();&#xA;        fs.createReadStream(&#x27;resized.mp4&#x27;).pipe(resizedFileStream);&#xA;&#xA;        await new Promise<void>((resolve, reject) => {&#xA;          resizedFileStream&#xA;            .on(&#x27;finish&#x27;, () => {&#xA;              // Remove the local files after they have been uploaded&#xA;              fs.unlinkSync(&#x27;temp.mp4&#x27;);&#xA;              fs.unlinkSync(&#x27;resized.mp4&#x27;);&#xA;              resolve();&#xA;            })&#xA;            .on(&#x27;error&#x27;, reject);&#xA;        });&#xA;&#xA;        // Get the URL of the uploaded resized version&#xA;        const resizedFile = bucket.file(`video/${uniqueId}`);&#xA;        const url = await resizedFile.getSignedUrl({&#xA;          action: &#x27;read&#x27;,&#xA;          expires: &#x27;03-17-2025&#x27;, // Change this to a reasonable expiration date&#xA;        });&#xA;&#xA;        console.log(&#x27;Resized file uploaded successfully.&#x27;);&#xA;      })&#xA;      .on(&#x27;error&#x27;, (err) => {&#xA;        console.log(&#x27;An error occurred: &#x27; &#x2B; err.message);&#xA;      });&#xA;</void>

    &#xA;

  • Could not find com.arthenica:ffmpeg-kit-full:6.0-2

    13 juin, par gabocalero

    I started receiving this message when I build my project

    &#xA;

    > Could not find com.arthenica:ffmpeg-kit-full:6.0-2.&#xA;  Searched in the following locations:&#xA;    - https://dl.google.com/dl/android/maven2/com/arthenica/ffmpeg-kit-full/6.0-2/ffmpeg-kit-full-6.0-2.pom&#xA;    - https://repo.maven.apache.org/maven2/com/arthenica/ffmpeg-kit-full/6.0-2/ffmpeg-kit-full-6.0-2.pom&#xA;    - https://jcenter.bintray.com/com/arthenica/ffmpeg-kit-full/6.0-2/ffmpeg-kit-full-6.0-2.pom&#xA;    - https://jitpack.io/com/arthenica/ffmpeg-kit-full/6.0-2/ffmpeg-kit-full-6.0-2.pom&#xA;    - https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1/com/arthenica/ffmpeg-kit-full/6.0-2/ffmpeg-kit-full-6.0-2.pom&#xA;    - https://oss.sonatype.org/content/repositories/snapshots/com/arthenica/ffmpeg-kit-full/6.0-2/ffmpeg-kit-full-6.0-2.pom&#xA;  Required by:&#xA;      project :presentation > project :domain&#xA;

    &#xA;

    These are the project's repositories

    &#xA;

    allprojects {     &#xA;   repositories {&#xA;      google()&#xA;      mavenCentral()&#xA;      jcenter()&#xA;      maven { url &#x27;https://jitpack.io&#x27; }&#xA;      maven { url "https://oss.sonatype.org/content/repositories/snapshots" }     &#xA;   } &#xA;}&#xA;

    &#xA;

    And this is the dependency I'm adding

    &#xA;

        implementation(libs.arthenica.ffmpeg.full)&#xA;

    &#xA;

    This is my libs.version.toml

    &#xA;

    ffmpeg = "6.0-2"&#xA;arthenica-ffmpeg-full = {  group = "com.arthenica", name = "ffmpeg-kit-full", version.ref = "ffmpeg" }&#xA;

    &#xA;

    AFAICS in the project's github page, it will not be maintained anymore&#xA;ffmpeg-kit is archived on April 21, 2025

    &#xA;

    In the short term, do you know any other repository that still servers this dependency ?

    &#xA;

    On the other hand, do you know any other project to replace Arthenica ffmpeg-kit-full dependency ?

    &#xA;

    Thank you very much

    &#xA;

  • flutter_ffmpeg is discontinued with no alternatives ?

    13 mars, par Rageh Azzazy

    Based on this article by Taner Sener&#xA;https://tanersener.medium.com/saying-goodbye-to-ffmpegkit-33ae939767e1

    &#xA;

    and after the discontinuation of flutter_ffmpeg and ffmpeg_kit_flutter packages.

    &#xA;

    most packages for executing video editing commands were built depending on them and so won't work After April 1, 2025 as mentioned in the package documentation and Taner's article.

    &#xA;

    example of packages depending on flutter_ffmpeg or ffmpeg_kit_flutter like

    &#xA;

      &#xA;
    • video_trimmer
    • &#xA;

    • zero_video_trimmer
    • &#xA;

    • flutter_video_trimmer
    • &#xA;

    • video_trim
    • &#xA;

    • bemeli_compress
    • &#xA;

    • video_trimmer_pro
    • &#xA;

    • ... others
    • &#xA;

    &#xA;

    and editing video using video_editor or video_editor_2 or video_editor_pits has become a problem

    &#xA;

    and I believe downloading the binaries and doing the whole thing locally is not just tedious but illegal as well.

    &#xA;

    so I broke down exactly what I need to edit videos in my flutter app

    &#xA;

    and I found those package but not yet tested them

    &#xA;

    Trimming : flutter_native_video_trimmer

    &#xA;

    Compression : video_compress or video_compress_plus

    &#xA;

    Muting : video_compress handles this

    &#xA;

    Encoding : Not sure, I just need a simple MP4 video files

    &#xA;

    Cropping : I can't find a solution for video cropping

    &#xA;

    I don't need to rotate, reverse or do any fancy stuff to the videos, just those five functions.

    &#xA;

    so now only remaining solution for this approach is to find a simple video cropping function and an encoder that work on flutter IOS & Android

    &#xA;

    so my question is not looking for external library recommendation but&#xA;do you have any ideas how to crop a video in flutter natively ?

    &#xA;