Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (104)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    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 (...)

Sur d’autres sites (13502)

  • Trouble understanding XHR streams and express

    17 janvier 2017, par Jon

    I’m having some trouble understanding how I can trigger an XHR response from an express server res.write.

    I’m creating a request on the client with the following code :

    var xhr = new XMLHttpRequest();

    xhr.open(opts.method || 'get', url);

    for (var k in opts.headers||{}) {
      xhr.setRequestHeader(k, opts.headers[k]);
    }

    xhr.onload = e => res(e.target.responseText);
    xhr.onerror = rej;

    if (xhr.upload && progressCb) {
      xhr.upload.onprogress = progressCb;
    }

    xhr.send(opts.body);

    On the node server, I’m doing multiple res.write() in response to this request.

    For example, I’m creating a video using ffmpeg() and throughout the creation process, I’ll res.write() a JSON.stringified status update.

    The client will receive the last .write(), but the xhr.upload.onprogress callback is not triggered, so I don’t think I understand how to use it correctly. I’m guessing that the xhr.upload.onprogress is meant solely for callbacks related to uploading data to the server, not for triggering a response to multiple writes

    Is there a way for an XHR request to fire a callback every time it receives a res.write() from express ? If not, what’s a better way of achieving this goal ?

  • xmv : validate sample_rate

    23 octobre 2016, par Andreas Cadhalpun
    xmv : validate sample_rate
    

    AVCodecParameters.sample_rate is a signed integer, so
    XMVAudioPacket.sample_rate should be, too.

    A negative sample rate doesn’t make sense and triggers assertions in
    av_rescale_rnd.

    Signed-off-by : Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>

    • [DH] libavformat/xmv.c
  • Inconsistant rendering in mlt XML and C interface and 'hold' producer and avformat consumer

    14 octobre 2016, par Leif Andersen

    I am trying to create a short video that is just a single image. (I know its a bit silly, but its a test for something bigger).

    The code I have for rendering it is :

    #include <framework></framework>mlt.h>
    #include
    #include

    int main() {
     if(mlt_factory_init(NULL)) {
       mlt_profile p = mlt_profile_init(NULL);
       mlt_consumer target = mlt_factory_consumer(p, "avformat",
       mlt_producer source = mlt_factory_producer(p, "hold", "/Users/leif/logo.png");
       mlt_producer_set_in_and_out(source, 0, 10);
       mlt_consumer_connect(target, mlt_producer_service(source));
       mlt_consumer_start(target);

       sleep(5);
       mlt_consumer_stop(target);

       mlt_consumer_close(target);
       mlt_producer_close(source);
       mlt_factory_close();
     } else {
       printf("No\n");
     }

     return 0;
    }

    Where logo.png is this file.

    When I run this code and play output.mp4, the picture comes out all garbelled. There is a green line in the middle and the logo is superimposed on itself a lot.

    On the other hand, if I change the consumer to be SDL, the image plays just fine.

    And finally, if I change the consumer to be XML, and then use the melt command line application to render it :

    melt -consumer avformat:xmlout.mp4 output.xml

    and play the video, it also plays fine.

    Is there something I am missing in the avformat consumer that I should be setting ? Or something else that I am missing here ?

    Edit : For reference, the outputted xml file : output.xml is :

    &lt;?xml version="1.0" encoding="utf-8"?>
    <mlt version="6.2.0" root="/Users/leif/src/video/private" title="Anonymous Submission" parent="producer0" in="0" out="10">
         <profile description="DV/DVD PAL" width="720" height="576" progressive="0" colorspace="601"></profile>
     <producer title="Anonymous Submission" in="0" out="10">
       <property>15000</property>
       <property>pause</property>
       <property>/Users/leif/logo.png</property>
       <property>1.06667</property>
       <property>0</property>
       <property>onefield</property>
       <property>hold</property>
       <property>1</property>
     </producer>
    </mlt>