Recherche avancée

Médias (91)

Autres articles (25)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (2790)

  • avcodec/v4l2_m2m_dec : remove redundant packet and fix double free

    16 juillet 2020, par Andriy Gelman
    avcodec/v4l2_m2m_dec : remove redundant packet and fix double free
    

    v4l2_receive_frame() uses two packets s->buf_pkt and avpkt. If avpkt
    cannot be enqueued, the packet is buffered in s->buf_pkt and enqueued in
    the next call. Currently the ownership transfer between the two packets
    is not properly handled. A double free occurs if
    ff_v4l2_context_enqueue_packet() returns EAGAIN and v4l2_try_start
    returns EINVAL.

    In fact, having two AVPackets is not needed and everything can be
    handled by s->buf_pkt.

    This commit removes the local avpkt from v4l2_receive_frame(), meaning
    that the ownership transfer doesn't need to be handled and the double
    free is fixed.

    Signed-off-by : Andriy Gelman <andriy.gelman@gmail.com>

    • [DH] libavcodec/v4l2_m2m_dec.c
  • Convert encoded audio file to text with signal values

    15 août 2017, par Niccolò Cirone

    I’ve been programming in c for the first time with audio files. I found this code which supposedly should read an audio file and then write a csv file containing several info in order to analyse the audio waves,that in case will be a simple voice : i’m interested in amplitude of the waves, in the timbre of the voice and its hight and extension.

              main () {  
              // Create a 20 ms audio buffer (assuming Fs = 44.1 kHz)
              int16_t buf[N] = {0}; // buffer
              int n;                // buffer index

             // Open WAV file with FFmpeg and read raw samples via the pipe.
             FILE *pipein;
             pipein = popen("ffmpeg -i whistle.wav -f s16le -ac 1 -", "r");
             fread(buf, 2, N, pipein);
             pclose(pipein);

             // Print the sample values in the buffer to a CSV file
             FILE *csvfile;
             csvfile = fopen("samples.csv", "w");
             for (n=0 ; n<n></n>code>

    Could someone explain me in detail how can I read an audio file so that I could extract from it the info I need ? Referring to this code, could someone explain me the meaning of the pipe at line 8

    pipein = popen("ffmpeg -i whistle.wav -f s16le -ac 1 -", "r");

    p.s. I already know how to read the header of the audio file, which contains a lot of useful info, but I also want to analyse the entire audio file, sample by sample.

  • setting bit rates in creating video from images in ffmpeg not working

    2 mai 2014, par mast kalandar

    I have a HQ video of one second

    Some information of this video is as below

    Dimensions : 1920 x 1080    
    Codec : H.264    
    Framerate : 30 frames per second    
    Size : 684.7 kB (6,84,673 bytes)
    Bitrates : 5458 kbps

    I have extracted frames from video

    ffmpeg -i f1.mp4 f%d.jpg

    All images are of 1920 x 1020 pixels by default 30 frames are generated (f7_1.jpg, f7_2.jpg,.....,f7_30.jpg)

    I have added some texts and objects to these images (without changing dimensions of any image, all 30 images are still of 1920 x 1020 pixels)

    Now I am trying to merge all these images to create single video (of 1 second)

    I referred this official document, I have run below command

    ffmpeg -f image2 -i f7_%d.jpg -r 30 -b:v 5458k foo_5458_2.mp4

    Video created is also of one second, thing is its bit rates are higher then the original one. New video has 6091 kbps bit rates, while I expect are 5458 kbps only.

    Because of higher bits, its gets finish very quickly compare to original video in video player.

    Is there any thing I missing ??

    And I don’t know what is exact meaning and job of -f image2 option, when I run command without this option, I am getting same video.