Recherche avancée

Médias (91)

Autres articles (49)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (5490)

  • Why ffmpeg launched on a google cloud function can throw "Error : Output stream error : Maximum call stack size exceeded" ?

    15 décembre 2020, par Stepan Shilin

    I'm trying to process video files with ffmpeg running on google cloud functions. Video files are downloaded from a google file storage, processed in stream by fluent-ffmpeg and streamed to a new google storage file. It works on smaller files but throws an "Output stream error : Maximum call stack size exceeded" on larger files.

    



    I tried running the code on a normal pc, and I haven't encountered this error, even with larger files.

    



    These are the parameters I deploy the function with

    



    gcloud functions deploy $FUNCTION_NAME --runtime nodejs8 --trigger-http --timeout=180 --memory 256


    



    This is the code that processes video

    



    function cutVideo({videoUrl, startTime, duration, dist}) {
    return ffmpeg(videoUrl)
    .outputOptions('-movflags frag_keyframe+empty_moov')
    .videoCodec('copy')
    .audioCodec('copy')
    .format('mp4')
    .setStartTime(startTime)
    .setDuration(duration);
}

const sectionStream = cutVideo({
    videoUrl,
    startTime,
    duration,
    dist: tempFilePath,
});

const outputStream = bucket.file(sectionPath)
.createWriteStream({
    metadata: {
        contentType: config.contentType,
    },
    public: true,
});


    



    Actual error stack looks like this

    



      Error: Output stream error: Maximum call stack size exceeded&#xA;                                                                  at Pumpify.<anonymous> (/srv/node_modules/fluent-ffmpeg/lib/processor.js:498:34)&#xA;                                                                  at emitOne (events.js:121:20)&#xA;                                                                  at Pumpify.emit (events.js:211:7)&#xA;                                                                  at Pumpify.Duplexify._destroy (/srv/node_modules/duplexify/index.js:191:15)&#xA;                                                                  at /srv/node_modules/duplexify/index.js:182:10&#xA;                                                                  at _combinedTickCallback (internal/process/next_tick.js:132:7)&#xA;                                                                  at process._tickDomainCallback (internal/process/next_tick.js:219:9)&#xA;  RangeError: Maximum call stack size exceeded&#xA;                                                                  at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:28:31)&#xA;                                                                  at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:37:30)&#xA;                                                                  at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:37:30)&#xA;                                                                  at value.map.v (/srv/node_modules/@google-cloud/projectify/build/src/index.js:30:32)&#xA;                                                                  at Array.map (<anonymous>)&#xA;                                                                  at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:30:23)&#xA;                                                                  at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:37:30)&#xA;                                                                  at replaceProjectIdToken (/srv/node_modules/@google-cloud/projectify/build/src/index.js:37:30)&#xA;                                                                  at value.map.v (/srv/node_modules/@google-cloud/projectify/build/src/index.js:30:32)&#xA;                                                                  at Array.map (<anonymous>)&#xA;</anonymous></anonymous></anonymous>

    &#xA;&#xA;

    What could cause this error on a google cloud function ?

    &#xA;

  • PHP-FFMpeg filters()->resize() throw Use of undefined constant RESIZEMODE_INSET

    17 avril 2017, par Angus Simons

    I’m using PHP-FFMpeg to use FFMpeg with php, unfortunately I can’t set resize filter.

    This is my code :

    $video = $ffmpeg->open('video.mov');

    $dimension = new FFMpeg\Coordinate\Dimension(1920, 1080);
    $video->filters()
         ->resize($dimension, RESIZEMODE_INSET, true, 1)
         ->synchronize();

    $format = new FFMpeg\Format\Video\X264('aac', 'libx264');
    $format->setAudioChannels(2)->setAudioKiloBitrate(256);
    $video->save($format, 'video.mp4');

    But it throws this error :

    Use of undefined constant RESIZEMODE_INSET - assumed 'RESIZEMODE_INSET'

    I tried also :

    ->resize($dimension, 'RESIZEMODE_INSET', true, 1)

    and

    ->resize($dimension, 'inset', true, 1)

    But I can’t get the video converted without stretching.

    Thanks in advance

  • ffserver : Throw ffm.h out its not used except for a constant that is part of the...

    28 octobre 2016, par Michael Niedermayer
    ffserver : Throw ffm.h out its not used except for a constant that is part of the format
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] ffserver.c
    • [DH] ffserver_config.c
    • [DH] ffserver_config.h