Recherche avancée

Médias (91)

Autres articles (54)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • 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 (9646)

  • 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

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

  • fluent-ffmpeg throw er when concatenate videos

    2 mai 2020, par Romualdo Arrechea Hernández

    I'm using fluent-ffmpeg version 2.1.2.&#xA;When I execute the current code the output show off a error message :

    &#xA;&#xA;

    var ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;var glob= require(&#x27;glob&#x27;);&#xA;ffmpeg.setFfmpegPath("/usr/bin/ffmpeg");&#xA;ffmpeg.setFfprobePath("/usr/bin/ffprobe");&#xA;var command = ffmpeg();&#xA;&#xA;const path=&#x27;/home/username/somefolder/*/output.mp4&#x27;;&#xA;&#xA;var videos=glob.sync(path);&#xA;var output="./output.mp4";&#xA;videos.map(video=>command.addInput(video));&#xA;command.mergeToFile(output);&#xA;

    &#xA;&#xA;

    the console output>

    &#xA;&#xA;

    **events.js:287&#xA;      throw er; // Unhandled &#x27;error&#x27; event&#xA;      ^&#xA;&#xA;Error: ffmpeg exited with code 1: Conversion failed!&#xA;&#xA;    at ChildProcess.<anonymous> (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:182:22)&#xA;    at ChildProcess.emit (events.js:310:20)&#xA;    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)&#xA;Emitted &#x27;error&#x27; event on FfmpegCommand instance at:&#xA;    at emitEnd (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:424:16)&#xA;    at endCB (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:544:13)&#xA;    at handleExit (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:170:11)&#xA;    at ChildProcess.<anonymous> (/home/r/Projects/prueba/node_modules/fluent-ffmpeg/lib/processor.js:182:11)&#xA;    at ChildProcess.emit (events.js:310:20)&#xA;    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)**&#xA;</anonymous></anonymous>

    &#xA;&#xA;

    The video should be created, but it's unable to concat. Some clue ?

    &#xA;