Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (59)

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

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (3929)

  • avformat/mlvdec : Only store dimensions after having validated them

    10 août 2020, par Andreas Rheinhardt
    avformat/mlvdec : Only store dimensions after having validated them
    

    Otherwise it might happen that invalid dimensions are used when reading
    a video packet ; this might lead to undefined overflow.

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

    • [DH] libavformat/mlvdec.c
  • avcodec/put_bits : Make skip_put_bits() less dangerous

    31 juillet 2020, par Andreas Rheinhardt
    avcodec/put_bits : Make skip_put_bits() less dangerous
    

    Before c63c303a1f2b58677d480505ec93a90f77dd25b5 (the commit which
    introduced a typedef for the type of the buffer of a PutBitContext)
    skip_put_bits() was as follows :

    static inline void skip_put_bits(PutBitContext *s, int n)

    s->bit_left -= n ;
    s->buf_ptr -= 4 * (s->bit_left >> 5) ;
    s->bit_left &= 31 ;

    If s->bit_left was negative after the first subtraction, then the next
    line will divide this by 32 with rounding towards -inf and multiply by
    four ; the result will be negative, of course.

    The aforementioned commit changed this to :

    static inline void skip_put_bits(PutBitContext *s, int n)

    s->bit_left -= n ;
    s->buf_ptr -= sizeof(BitBuf) * ((unsigned)s->bit_left / BUF_BITS) ;
    s->bit_left &= (BUF_BITS - 1) ;

    Casting s->bit_left to unsigned meant that the rounding is still towards
    - inf ; yet the right side is now always positive (it transformed the
    arithmetic shift into a logical shift), so that s->buf_ptr will always
    be decremented (by about UINT_MAX / 8 unless n is huge) which leads to
    segfaults on further usage and is already undefined pointer arithmetic
    before that. This can be reproduced with the mpeg4 encoder with the
    AV_CODEC_FLAG2_NO_OUTPUT flag set.

    Furthermore, the earlier version as well as the new version share
    another bug : s->bit_left will be in the range of 0..(BUF_BITS - 1)
    afterwards, although the assumption throughout the other PutBitContext
    functions is that it is in the range of 1..BUF_BITS. This might lead to
    a shift by BUF_BITS in little-endian mode. This has been fixed, too.
    The new version is furthermore able to skip zero bits, too.

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

    • [DH] libavcodec/put_bits.h
  • I'm running a process in Java and am getting stuck when I wait for it to finish

    31 juillet 2020, par nottAbott

    I have a Java program that is supposed to make copies of segments of a video and then stitch them back together, using ffmpeg. My "snip" method, the one that makes the segment files, has a problem, it gets stuck when I call "process.waitfor()". When I take it out, the videos load partly, but cannot be accessed until I close the program. When I try to delete them, while the program is running, it says that they cannot be deleted because they are in use. Could anyone lead me in the right direction ? Here is the method :

    &#xA;

    //snips out all the clips from the main video&#xA;public void snip() throws IOException, InterruptedException {&#xA;    &#xA;    for(int i = 0; i &lt; snippets.size(); i&#x2B;&#x2B;) {&#xA;        //Future reference: https://stackoverflow.com/questions/9885643/ffmpeg-executed-from-javas-processbuilder-does-not-return-under-windows-7/9885717#9885717&#xA;        //Example: ffmpeg -i 20sec.mp4 -ss 0:0:1 -to 0:0:5 -c copy foobar.mp4&#xA;        String newFile = "foobar" &#x2B; String.valueOf(i) &#x2B; ".mp4";&#xA;        ProcessBuilder processBuilder = new ProcessBuilder("ffmpeg", "-i", videoName, "-ss",&#xA;                snippets.get(i).getStartTime(), "-to", snippets.get(i).getEndTime(), newFile);&#xA;        &#xA;        //I tried this first and then added in the process/process.waitfor below&#xA;        //processBuilder.start();&#xA;        &#xA;        Process process = processBuilder.start();&#xA;        process.waitFor();&#xA;        &#xA;        System.out.println("Snip " &#x2B; i &#x2B; "\n");&#xA;        &#xA;        //add to the formatted list of files to be concat later&#xA;        if(i == snippets.size() - 1) {&#xA;            stitchFiles &#x2B;= newFile &#x2B; "\"";&#xA;        }&#xA;        &#xA;        else {&#xA;            stitchFiles &#x2B;= newFile &#x2B; "|";&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;