Recherche avancée

Médias (91)

Autres articles (97)

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

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (3556)

  • examples/c/decode/file/main.c : Add extra error handling.

    20 novembre 2014, par Erik de Castro Lopo
    examples/c/decode/file/main.c : Add extra error handling.
    

    Michele Spagnuolo provided a file that initially had frames with two
    channels but then had a frame with a single channel. This example
    program only supports exactly two channels and previously had
    insufficient validation.

    Closes : https://sourceforge.net/p/flac/bugs/418/
    Reported-by : Michele Spagnuolo,
    Google Security Team <mikispag@google.com>

    • [DH] examples/c/decode/file/main.c
  • avutil/log : print level prefix also when no AVClass context is available

    14 mars 2018, par Tobias Rapp
    avutil/log : print level prefix also when no AVClass context is available
    

    Adds the level prefix to all log messages, except those with level <=
    AV_LOG_QUIET as they seem to be used for flushing the log buffer.

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Tobias Rapp <t.rapp@noa-archive.com>

    • [DH] libavutil/log.c
  • Rotating an MP4 Video at the Packet Level Using FFmpeg's Java CPP Presets and Outputting as M3U8

    16 mars 2023, par Yunus Emre Guney Student

    I'm attempting to rotate an MP4 video at the packet level and output it as an M3U8 using FFmpeg's Java CPP presets. Here's what I've tried :

    &#xA;

    First, I created a rotationMatrixPointer using an IntPointer and allocated memory for it using avutil.av_malloc(size). Then, I set the display rotation to 90 degrees using avutil.av_display_rotation_set(rotationMatrixPointer, 90).

    &#xA;

    Next, I created a bytePointer using the rotationMatrixPointer and set its limit to rotationMatrixPointer.sizeof() * rotationMatrixPointer.limit(). I then added side data to the videoPkt using av_packet_add_side_data(videoPkt, AV_PKT_DATA_DISPLAYMATRIX, bytePointer, bytePointer.limit()).

    &#xA;

    If ret < 0, I print "cannot add side data". Finally, I write the packet using writePacket(videoPkt, (AVCodecContext)null) and release the videoPkt using av_packet_unref(videoPkt).

    &#xA;

    packet level rotation matrix side data hls stream output :

    &#xA;

     IntPointer rotationMatrixPointer = new IntPointer(avutil.av_malloc(size)).capacity(size);&#xA; avutil.av_display_rotation_set(rotationMatrixPointer, 90);&#xA; BytePointer bytePointer = new BytePointer(rotationMatrixPointer);&#xA; bytePointer.limit(rotationMatrixPointer.sizeof() * rotationMatrixPointer.limit());&#xA; int ret = av_packet_add_side_data(videoPkt, AV_PKT_DATA_DISPLAYMATRIX, bytePointer, bytePointer.limit());&#xA;        &#xA; if (ret &lt; 0) {&#xA; System.out.println("cannot add side data");&#xA;            }&#xA; writePacket(videoPkt, (AVCodecContext)null);&#xA;        &#xA; av_packet_unref(videoPkt);&#xA;

    &#xA;

    Although I'm not getting any errors, the video isn't being rotated. However, if I add the rotation matrix at the stream level and output it as an MP4, it works properly.

    &#xA;

    stream level mp4 to mp4 is working :

    &#xA;

    int size = 9 * Pointer.sizeof(IntPointer.class);&#xA;                IntPointer rotationMatrixPointer = new IntPointer(avutil.av_malloc(size)).capacity(size);&#xA;                &#xA;                avutil.av_display_rotation_set(rotationMatrixPointer, rotation);&#xA;&#xA;                BytePointer bytePointer = new BytePointer(rotationMatrixPointer);&#xA;                bytePointer.limit(rotationMatrixPointer.sizeof() * rotationMatrixPointer.limit());&#xA;                &#xA;                ret = avformat.av_stream_add_side_data(stream, avcodec.AV_PKT_DATA_DISPLAYMATRIX , bytePointer, bytePointer.limit());&#xA;                if (ret &lt; 0) {&#xA;                }&#xA;

    &#xA;

    What is the proper way to rotate an MP4 input and output it as an HLS stream (M3U8) at the packet level using FFmpeg ? C++ examples are also acceptable.

    &#xA;