Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (72)

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

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

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

  • AVFrame in AV_PIX_FMT_YUV420P format to H*W*3 data buffer conversion using sws_scale not accurate ?

    13 février 2024, par user3133806

    I have an AVFrame that is in YUV420 format and I am trying to convert to packed RGB in a data buffer :

    


      // Allocate enough for 8 bits per color in RGB.&#xA;  // Note that I want packed, not planar. i.e. RGBRGBRGB...&#xA;  // Each pixel is 3 bytes of RGB in row-major order&#xA;  buffer = new unsigned char[frame->height * frame->width * 3];&#xA;&#xA;  enum AVPixelFormat frameFormat =&#xA;      static_cast<enum avpixelformat="avpixelformat">(frame->format);&#xA;&#xA;  // Make sure the input is in the expected format.&#xA;  CHECK_EQ(frameFormat, AV_PIX_FMT_YUV420P);&#xA;&#xA;  SwsContext* swsContext = sws_getContext(&#xA;      frame->width,&#xA;      frame->height,&#xA;      frameFormat,&#xA;      frame->width,&#xA;      frame->height,&#xA;      AV_PIX_FMT_RGB24,&#xA;&#xA;      // I played around with these flags but could not get an accurate image&#xA;      SWS_BICUBIC | SWS_ACCURATE_RND,&#xA;      nullptr,&#xA;      nullptr,&#xA;      nullptr);&#xA;&#xA;  // My understanding is that because I am using packed format, not planar&#xA;  // I only need to fill in the first pointer.&#xA;  unsigned char* out_planes[4];&#xA;  out_planes[0] = buffer;&#xA;  out_planes[1] = nullptr;&#xA;  out_planes[2] = nullptr;&#xA;  out_planes[3] = nullptr;&#xA;&#xA;  sws_scale(&#xA;      swsContext,&#xA;      frame->data,&#xA;      frame->linesize,&#xA;      0,&#xA;      frame->height,&#xA;      &amp;out_planes,&#xA;&#xA;      // My understanding is that the stride of each plane is frame->width * 3&#xA;      (const int[4]){frame->width * 3, 0, 0, 0});&#xA;  sws_freeContext(swsContext);&#xA;&#xA;</enum>

    &#xA;

    This code does produce an image but the image appears to be wrong.

    &#xA;

    On a 300x200 video, the right few columns are wrong.

    &#xA;

    On a bigger resolution video the image seems correct, but on a smaller video it is not :

    &#xA;

    image produced by code

    &#xA;

    expected image

    &#xA;

    EDIT : It appears this is a bug in sws_scale (bug or expected feature). Turning off vector instructions causes it to work as expected :

    &#xA;

    // Adding this line before sws_scale causes the images to be bit exact.&#xA;av_set_cpu_flags_mask(0);&#xA;

    &#xA;

    I got that idea from this answer on SO : Turn off sw_scale conversion to planar YUV 32 byte alignment requirements

    &#xA;

  • Révision 18371 : Report de r18366 :

    22 août 2011, par cedric -

    Manque dans l’analyseur de DTD : il ne verifie pas qu’un attribut de type NMTOKEN ou NMTOKENS ne contient que des noms. Utile pour certains attributs des balises d’en-tete dans la DTD XHTML Basic 1.1, mais curieusement pas pour l’attribut "class" qui est clairement un NMTOKENS pourtant. (...)

  • Record D3.js whiteboard animation as mp4 audio and video

    9 août 2015, par Jin Ng

    I have a whiteboard/hand sketching app written with D3.js svg path elements. These elements are grouped into scenes with their own mp3 audio.

    Multiple scenes with their animated svg paths are played according to a timeline, with the audio running perfectly.

    So the end result is like a whiteboard animated movie. This works well within the app. How can i record the whole animation as a mp4 file ?

    I would like to run this entirely on the client side. I have looked at ffmpeg but prefer not to do a desktop install for this web app.

    I looked into using chrome tab extension but it only works on chrome browser.

    What other options do I have ?