Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (83)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (12604)

  • avfilter/aeval : Fix leak of expressions upon reallocation error

    6 octobre 2021, par Andreas Rheinhardt
    avfilter/aeval : Fix leak of expressions upon reallocation error
    

    Fix this by switching to av_dynarray_add_nofree() which is more
    natural anyway because the entries of the array are pointers.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavfilter/aeval.c
  • Piwik Mobile est maintenant disponible !

    18 août 2010, par SteveG

    Après quelques mois de développement, l’équipe Piwik est fière de vous présenter le client mobile. Piwik Mobile est déjàdisponible pour les markets des différents téléphones avec IOS (comme iPhone, iPod et iPad) ou Android (1.6 ou supérieure). Piwik Mobile dans les markets : Android : http://www.androidpit.com/en/android/market/apps/app/org.piwik.mobile/Piwik-Mobile-Beta iOS : http://itunes.apple.com/us/app/piwikmobile/id385536442?mt=8 Piwik Mobile a été développé en utilisant [...]

    ]]>

  • Why does fluent-ffmpeg only work when it throws the error Output stream closed

    29 mars 2024, par volume one

    I am using fluent-ffmpeg to process a video file (and then upload that to Amazon S3). The code is very straightforward but it only works if :

    &#xA;

      &#xA;
    • pipe option {end: true} is set in .output()
    • &#xA;

    • which has a side-effect that causes the following console log output
    • &#xA;

    &#xA;

    &#xA;

    Processing : 19.261847354642416% done Processing :&#xA;32.365144874807335% done Processing : 48.80978326261429% done Processing : 78.35771917058617%&#xA;Processing : 91.49377493455148% done Processing :&#xA;99.91264359125745% done An error occurred : Output stream closed

    &#xA;

    &#xA;

    Despite that error, it seems the file is generated correctly and it gets uploaded to Amazon S3 fine.

    &#xA;

    This is the fluent-ffmpeg code :

    &#xA;

    import {PassThrough} from &#x27;node:stream&#x27;;&#xA;import FFMpeg from &#x27;fluent-ffmpeg&#x27;;&#xA;&#xA;let PassThroughStream = new PassThrough();&#xA;&#xA;             FFMpeg(&#x27;/testvideo.mp4&#x27;)&#xA;                    .videoCodec(&#x27;libx264&#x27;)&#xA;                    .audioCodec(&#x27;libmp3lame&#x27;)&#xA;                    .size(`640x480`)&#xA;                    // Stream output requires manually specifying output formats&#xA;                    .format(&#x27;mp4&#x27;)&#xA;                    .outputOptions(&#x27;-movflags dash&#x27;)&#xA;                    .on(&#x27;progress&#x27;, function (progress) {&#xA;                        console.log(&#x27;Processing: &#x27; &#x2B; progress.percent &#x2B; &#x27;% done&#x27;);&#xA;                    })&#xA;                    .on(&#x27;error&#x27;, function (err) {&#xA;                        console.log(&#x27;An error occurred: &#x27; &#x2B; err.message);&#xA;                    })&#xA;                    .on(&#x27;end&#x27;, function () {&#xA;                        console.log(&#x27;FFMpeg Processing finished!&#x27;);&#xA;                    })&#xA;                    .output(PassThroughStream, {end: true})&#xA;                    .run();&#xA;&#xA;   // Now upload to S3&#xA;    try {&#xA;          await s3Upload({&#xA;              AWSS3Client: &#x27;mys3client&#x27;,&#xA;              Bucket: &#x27;publicbucket,&#xA;              ACL: "public-read",&#xA;              ContentType: &#x27;video/mp4&#x27;,&#xA;              Key: &#x27;whoever/whatever.mp4&#x27;,&#xA;              Body: PassThroughStream&#xA;           });&#xA;    } catch (error) {&#xA;                    console.log(`s3Upload error`, error)&#xA;                }&#xA;

    &#xA;

    If I set the pipe output() option to {end: false} then there is no error from fluent-ffmpeg and I get "Processing: 100% done FFMpeg Processing finished!" as the final console log.

    &#xA;

    BUT the problem is that the s3Upload() does not do anything. There are no errors. Just no activity.

    &#xA;

    I feel very uncomfortable letting fluent-ffmpeg end in an error even if the code itself does the job intended. It will also cause testing to fail. What could be the issue ?

    &#xA;

    The command line code is : ffmpeg -i https:/xxxbucket.s3.amazonaws.com/14555/file-example.mp4 -acodec libmp3lame -vcodec libx264 -filter:v scale=w=trunc(oh*a/2)*2:h=480 -f mp4 -movflags dash pipe:1

    &#xA;