Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (55)

  • 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

  • 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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (9975)

  • avcodec/qtrleenc : Fix negative linesizes, don't use NULL + offset

    26 mars 2021, par Andreas Rheinhardt
    avcodec/qtrleenc : Fix negative linesizes, don't use NULL + offset
    

    Before commit f1e17eb446577180ee9976730aacb46563766518, the qtrle
    encoder had undefined pointer arithmetic : Outside of a loop, two
    pointers were set to point to the ith element (with index i-1) of
    a line of a frame. At the end of each loop iteration, these pointers
    were decremented, so that they pointed to the -1th element of the line
    after the loop. Furthermore, one of these pointers can be NULL (in which
    case all pointer arithmetic is automatically undefined behaviour).

    Commit f1e17eb44 added a check in order to ensure that the elements
    never point to the -1th element of the array : The pointers are only
    decremented if they are bigger than the frame's base pointer
    (i.e. AVFrame.data[0]). Yet this check does not work at all in case of
    negative linesizes ; furthermore in case the pointer that can be NULL is
    NULL initializing it still involves undefined pointer arithmetic.

    This commit fixes both of these issues : First, non-NULL pointers are
    initialized to point to the element after the ith element and
    decrementing is moved to the beginning of the loop. Second, if a pointer
    is NULL, it is just made to point to the other pointer, as this allows
    to avoid checks before decrementing it.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/qtrleenc.c
  • FFmpeg : negative video duration

    19 octobre 2020, par quento

    FFmpeg is used to combine images into video and then duration is taken out of this video.

    &#xA;

    Surprisingly I found out that FFmpeg could return negative duration.

    &#xA;

    Command to get duration. This command is the most reliable according to this spec

    &#xA;

    &#xA;

    You can also use ffmpeg to get the duration by fully decoding the file. The null muxer is used so no output file is created. Refer to time= in the next-to-last line of the console output. In this example the input has a duration of 00:57:28.87.

    &#xA;

    &#xA;

    ffmpeg -i input.webm -f null -  &#xA;

    &#xA;

    Output ex :

    &#xA;

    frame=206723 fps=1390 q=-0.0 Lsize=N/A time=00:57:28.87 bitrate=N/A speed=23.2x&#xA;

    &#xA;

    Actual example

    &#xA;

    Generation of mp4 of screenshots :

    &#xA;

    `/usr/bin/ffmpeg&#x27; -framerate 30 -pattern_type glob -i &#x27;/app/tmp/ecc0fe7b5ca4d7b20ea54d3ba757cfbf_b4581272-c485-4be2-a210-cbc99d71bd14_0/*.jpeg&#x27; -c:v libx264 -vf &#x27;scale=trunc(iw/2)*2:trunc(ih/2)*2&#x27; -pix_fmt yuv420p -filter:v &#x27;setpts=1.11*PTS&#x27; &#x27;/app/tmp/ecc0fe7b5ca4d7b20ea54d3ba757cfbf_b4581272-c485-4be2-a210-cbc99d71bd14_0/ecc0fe7b5ca4d7b20ea54d3ba757cfbf.mp4`&#xA;

    &#xA;

    Next, extracting duration :

    &#xA;

    /usr/bin/ffmpeg&#x27; -i &#x27;/app/tmp/ecc0fe7b5ca4d7b20ea54d3ba757cfbf_b4581272-c485-4be2-a210-cbc99d71bd14_0/ecc0fe7b5ca4d7b20ea54d3ba757cfbf.mp4  -f null&#xA;

    &#xA;

    Output :

    &#xA;

    time=-577014:32:22.77&#xA;

    &#xA;

    Unfortunately I can't reproduce this issue on local machine so far, so there are not many details to share. However, such cases appear on other machines quite frequently. Different videos get exactly the same broken time. There are also enough other inconsistent cases.

    &#xA;

    One of the suggestions is to parse extraction out of first command, which generates video. I'm not sure that I won't also face negative numbers there, though.

    &#xA;

    Most probably I miss much more easier solution. The only requirement is that is must be 100% precise.

    &#xA;

    Thanks in advance !

    &#xA;

  • swscale/x86/swscale : Fix undefined left shifts of negative numbers

    28 septembre 2019, par Andreas Rheinhardt
    swscale/x86/swscale : Fix undefined left shifts of negative numbers
    

    This affected many FATE-tests : The number of failing tests went down
    from 663 to 344. (Both numbers exclude tests that failed because of
    unaligned accesses in code that is inside #if HAVE_FAST_UNALIGNED.)

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libswscale/x86/swscale.c