Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (97)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (5206)

  • Can I specify unique pts for each frame in commandline ? [closed]

    24 septembre 2024, par postscripter

    I have a bunch of jpeg pictures, say four : 01.jpg, 05jpg, 12.jpg and 13.jpg. Can I create an mjpeg/mp4 with variable framerate, consisting of exactly four frames with pts = 01 sec, 05 sec, 12 sec and 13 sec respectively ? Without duplicating or looping them ? I believe it can be done with ffmpeg API, but I'm limited to cmd only.

    


  • Correct Use Of avcodec_encode_video2() Flush

    5 février 2016, par mFeinstein

    I have a camera sending pictures to a callback function and I want to make a movie with this pictures using FFmpeg. I have followed the decoding_encoding example here but am not sure how to use the got_output for flushing the encoder and getting the delayed frames.

    1. Shoud I encode all my camera’s pictures when they arrive, and later when I want to stop capturing and close the video, I do the flush loop ?

    Or

    1. Should I do the flush periodically, let’s say, every 100 pictures received ?

    My video capture program could be running for hours, so I am worried about how this delayed frames work in memory consumption, if they stack up there until the flush, this could take all my memory.


    This is the encoding performed by the example, it makes 25 dummy Frames for 1 second of video, and later, in the end, it loop through avcodec_encode_video2() looking for got_output for delayed frames :

    /////  Prepare the Frame, CodecContext and some aditional logic.....

    /* encode 1 second of video */
    for (i = 0; i < 25; i++) {
       av_init_packet(&pkt);
       pkt.data = NULL;    // packet data will be allocated by the encoder
       pkt.size = 0;
       fflush(stdout);
       /* prepare a dummy image */
       /* Y */
       for (y = 0; y < c->height; y++) {
           for (x = 0; x < c->width; x++) {
               frame->data[0][y * frame->linesize[0] + x] = x + y + i * 3;
           }
       }
       /* Cb and Cr */
       for (y = 0; y < c->height/2; y++) {
           for (x = 0; x < c->width/2; x++) {
               frame->data[1][y * frame->linesize[1] + x] = 128 + y + i * 2;
               frame->data[2][y * frame->linesize[2] + x] = 64 + x + i * 5;
           }
       }
       frame->pts = i;
       /* encode the image */
       ret = avcodec_encode_video2(c, &pkt, frame, &got_output);
       if (ret < 0) {
           fprintf(stderr, "Error encoding frame\n");
           exit(1);
       }
       if (got_output) {
           printf("Write frame %3d (size=%5d)\n", i, pkt.size);
           fwrite(pkt.data, 1, pkt.size, f);
           av_free_packet(&pkt);
       }
    }
    /* get the delayed frames */
    for (got_output = 1; got_output; i++) {
       fflush(stdout);
       ret = avcodec_encode_video2(c, &pkt, NULL, &got_output);
       if (ret < 0) {
           fprintf(stderr, "Error encoding frame\n");
           exit(1);
       }
       if (got_output) {
           printf("Write frame %3d (size=%5d)\n", i, pkt.size);
           fwrite(pkt.data, 1, pkt.size, f);
           av_free_packet(&pkt);
       }
    }

    /////  Closes the file and finishes.....
  • How to assign variable to different extension of files in same directory in bash

    3 mai 2021, par Yacer Azeem

    I have a task to :

    


      

    1. Watch a folder for video files (mp4,mov,mkv etc.)
    2. 


    3. Transform the video files to HLS (480p, 720p, 1080p) using ffmpeg
    4. 


    5. Move these files to a different folder
    6. 


    7. Delete the original files from the watch folder
    8. 


    9. Send an email stating that the following video file was transcoded
    10. 


    


    I want to deal with every .mp4 .mov and .mkv as a variable in bash so that I can perform the above-mentioned tasks.
The folder containing these files are in

    


    /mnt/volume1/videos


    


    directory architecture

    


    /mnt/volum1/videos/sample.mp4
/mnt/volum1/videos/sample.mov
/mnt/volum1/videos/sample.mkv