Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (82)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (13579)

  • Error : ffmpeg exited with code 1 :

    16 juin 2022, par jibran

    I am using the videoshow node package to create straightforward video slideshows based on images using ffmpeg, with additional features such as audio. I am following the documentation exactly but I get the following error :

    



    


    Error : ffmpeg exited with code 1 :

    


    



    Here is the code :

    



        var videoshow = require(&#x27;videoshow&#x27;)&#xA;    const ffmpeg = require(&#x27;@ffmpeg-installer/ffmpeg&#x27;);&#xA;&#xA;&#xA;    var images = [&#xA;      &#x27;image1.jpg&#x27;,&#xA;      &#x27;image1.jpg&#x27;,&#xA;      &#x27;image1.jpg&#x27;&#xA;&#xA;    ]&#xA;    var videoOptions = {&#xA;      fps: 25,&#xA;      loop: 5, // seconds &#xA;      transition: true,&#xA;      transitionDuration: 1, // seconds &#xA;      videoBitrate: 1024,&#xA;      videoCodec: &#x27;libx264&#x27;,&#xA;      size: &#x27;640x640&#x27;,&#xA;      audioBitrate: &#x27;128k&#x27;,&#xA;      audioChannels: 2,&#xA;      format: &#x27;mp4&#x27;,&#xA;      pixelFormat: &#x27;yuv420p&#x27;&#xA;    }&#xA;&#xA;     var videoOptions = {&#xA;      fps: 24,&#xA;      transition: false,&#xA;      videoBitrate: 1024 ,&#xA;      videoCodec: &#x27;libx264&#x27;, &#xA;      size: &#x27;640x640&#x27;,&#xA;      outputOptions: [&#x27;-pix_fmt yuv420p&#x27;],&#xA;      format: &#x27;mp4&#x27; &#xA;    }&#xA;    videoshow(images, videoOptions)&#xA;      .audio(&#x27;nd.mp3&#x27;)&#xA;      .save(&#x27;/home/jibran/Desktop/video.avi&#x27;)&#xA;      .on(&#x27;start&#x27;, function (command) {&#xA;        console.log(&#x27;ffmpeg process started:&#x27;, command)&#xA;      })&#xA;      .on(&#x27;error&#x27;, function (err, stdout, stderr) {&#xA;        console.error(&#x27;Error:&#x27;, err)&#xA;        console.error(&#x27;ffmpeg stderr:&#x27;, stderr)&#xA;        console.error(&#x27;ffmpeg stdeout:&#x27;, stdout)&#xA;      })&#xA;      .on(&#x27;end&#x27;, function (output) {&#xA;        console.error(&#x27;Video created in:&#x27;, output)&#xA;      })&#xA;&#xA;    and on a console I get&#xA;&#xA;    ffmpeg process started: ffmpeg -i /tmp/videoshow-44a65b07-0949-4b1b-8a6e-bf8a71d5f5ca -i /tmp/videoshow-c7dd4222-385d-406e-8f10-c4160df3db17 -i /tmp/videoshow-2324c514-1738-4c6b-96dc-ab1cc3551d67 -y -filter_complex concat=n=3:v=1:a=0 /home/jibran/Desktop/video.avi&#xA;&#xA;    ffmpeg process started: ffmpeg -i /tmp/videoshow-0ff6909b-db19-4ba1-91ba-dc961127317f -i nd.mp3 -y -r 24 -b:v 1024k -vcodec libx264 -filter:v scale=w=640:h=640 -pix_fmt yuv420p -f mp4 -map 0:0 -map 1:0 -t 15 -af afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=12:d=3 /home/jibran/Desktop/video.avi&#xA;    Error: Error: ffmpeg exited with code 1: &#xA;        at ChildProcess.<anonymous> (/home/jibran/Desktop/hello-world/node_modules/fluent-ffmpeg/lib/processor.js:182:22)&#xA;        at ChildProcess.emit (events.js:127:13)&#xA;        at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)&#xA;    ffmpeg stderr: undefined&#xA;    ffmpeg stdeout: undefined&#xA;</anonymous>

    &#xA;

  • Piping ppm files to ffmpeg to create movie in c++

    17 mars 2018, par chasep255

    I want to create a movie of a zoom on the Mandelbrot set. To do this I want to create image data in the ppm format and then pipe it into ffmpeg using popen. The following command works if I first save the ppm to my disc and then run ffmpeg through the terminal.

    ffmpeg -i out.ppm -r 1/5 out.mp4

    Here is what I am trying to do in code.

    FILE* p = popen("ffmpeg -i /dev/stdin -r 1/5 out.mp4", "w");
    ppm_pipe(p, pix_buffers[0], w, h);
    fclose(p);
    ...
    void ppm_pipe(FILE* f, unsigned char* pix, int w, int h)
    {
       assert(fprintf(f, "P6 %d %d 255\n", w, h) > 0);
       size_t sz = 3 * (size_t)w * (size_t)h;
       assert(fwrite(pix, 1, sz, f) == sz);
    }

    I get the following error message.

    ffmpeg version 2.5.8-0ubuntu0.15.04.1 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
     configuration: --prefix=/usr --extra-version=0ubuntu0.15.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    /dev/stdin: Invalid data found when processing input
  • ffmpeg watermark transparent background

    19 février 2018, par Mihai Vilcu

    I’m trying to add a watermark to a video file but i’m having problems with the background of the watermark because i want it to be transparent.

    My approach is like this : i make a png file the size of the video with transparent background like this

    $im = imagecreatetruecolor($width, $height);
    $almostblack = imagecolorallocate($im,254,254,254);
    imagefill($im,0,0,$almostblack);
    $black = imagecolorallocate($im,0,0,0);
    imagecolortransparent($im,$almostblack);

    $textcolor = imagecolorallocate($im, 255, 0, 0);

    // Write the string at the top left
    imagestring($im, 5, 0, 0, 'Hello world!', $textcolor);

    imagepng($im, $img);
    imagedestroy($im);

    and then i add it to the video like this

    exec("/usr/bin/ffmpeg -y -i '$file->path' -sameq -vf 'movie=$img [logo]; [in][logo] overlay=main_w-overlay_w:main_h-overlay_h [out]' '$new_path'");

    the watermark is added but it’s background is not transparent.

    Any idea what i’m doing wrong ?

    UPDATE : it turns out it works just fine for other png images so the problem must be in the way i build the png file any ideas why it doesn’t work that way ?