Advanced search

Medias (91)

Other articles (63)

  • Le profil des utilisateurs

    12 April 2011, by

    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 November 2010, by

    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 May 2011, by

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

On other websites (4312)

  • iOS, FFmpeg render video with UIimage vs OpenGL

    23 January 2013, by finlir

    I have an IP camera that streams h264 video over RTSP. On iOS I use FFmpeg to capture the RTSP stream and decode the frames then render with an UIimage and UIimageview.

    I have seen examples of of rendering video from FFmpeg, they all seem to use OpenGL ES or the SDL library.

    My question is what are the benefits for using OpenGL? since rendering with UIimage is easy and seem to work fine.

  • How to create a video out of frames without saving it to disk using python?

    6 September 2022, by brenodacosta

    I have a function that returns a frame as result. I wanted to know how to make a video out of a for-loop with this function without saving every frame and then creating the video.

    


    What I have from now is something similar to:

    


    import cv2
out = cv2.VideoWriter('video.mp4',cv2.VideoWriter_fourcc(*'DIVX'), 14.25,(500,258))
for frame in frames:
    img_result = MyImageTreatmentFunction(frame) # returns a numpy array image
    out.write(img_result)
out.release()


    


    Then the video will be created as video.mp4 and I can access it on memory. I'm asking myself if there's a way to have this video in a variable that I can easily convert to bytes later. My purpose for that is to send the video via HTTP post.

    


    I've looked on ffmpeg-python and opencv but I didn't find anything that applies to my case.

    


  • ffmpeg How to get PCM floats from AVFrame with AV_SAMPLE_FMT_FLT

    26 November 2020, by cs guy

    I have an AVFrame obtained through a decoder that has a format of AVSampleFormat::AV_SAMPLE_FMT_FLT. My issue is I want to convert the data stored inside

    


    avFrame->data; // returns uint8_t *


    


    to Array of floats that are between [-1, +1]. I see that avFrame->data; returns uint8_t * how may I use this to obtain the float pcm data for each channel of the audio?

    


    I tried the following:

    


    auto *floatArrPtr = (float *)(avResampledDecFrame->data[0]);

    for (int i = 0; i < avResampledDecFrame->nb_samples; i++) {
        // TODO: store interleaved floats somewhere
        floatArrPtr++;
    }


    


    but I am not sure if this is the right way to get data