Recherche avancée

Médias (91)

Autres articles (35)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • How can I add one song file to multiple video files using ffmpeg ?

    8 février 2023, par Charlie Figueroa

    I want to add one song, for example dualipa.mp3 file to "n" different videos mp4 files using ffmpeg. After running the code I need as a result to get the same "n" mp4 video files but with the one song dualipa.mp3 added to all of them.

    


    I find a code that lets you attach one song with just one video, but I need it to do it with multiple videos in order to save a lot of time :

    


    ffmpeg -i video.mp4 -i song.mp3 -c:v copy -c:a aac -map 0:v -map 1:a -shortest output\video.mp4

    


  • Anomalie #2686 (Fermé) : Boucle {date>=#ENV{date}} en erreur

    5 mai 2012, par cedric -

    Appliqué par commit r19343.

  • FFmpeg - Lost in the hell of av_seek_frame()

    14 octobre 2022, par Jean-Milost Reymond

    I'm writing a video player which uses FFmpeg. I need to implement a seek functionality.

    


    So I implemented a seek function (see code below) which I tested against a video with a duration of 2,8s :

    



    static void seek_to(AVFormatContext* fmt, int64_t pos)
{
    AVStream* stream = fmt->streams[0];
    int64_t   seek_pos = pos;
    int       seek_flags;

    if (fmt->duration == AV_NOPTS_VALUE)
        seek_flags = AVSEEK_FLAG_FRAME;
    else
        seek_flags = AVSEEK_FLAG_BACKWARD;

    AVRational time_base = { 1, AV_TIME_BASE };

    int64_t seek_target = seek_flags == AVSEEK_FLAG_BACKWARD ?
            av_rescale_q(seek_pos, time_base, stream->time_base) : seek_pos;

    int ret = av_seek_frame(fmt, 0, seek_target, seek_flags);

    if (ret < 0)
    {
        // log the error...
    }

    ...

    // perform some tasks like flushing the decoder(s) by calling the mp_decode_flush() function
}


    


    I certify that the pos value is well passed in microseconds (it's the format expected by AV_TIME_BASE and matching with the duration exposed in format context - I strongly checked it), and contains a valid number between 0 and the video duration time.

    


    As a result, the seek roughly works, however it is very choppy and ugly. It's like the video contained only 3 possible position (0, 1/3 and 2/3 of the total length) and there is no way to have a smooth and precise seek position.

    


    I suspect a conversion issue somewhere (as if the final value was in seconds instead of microseconds), but I cannot figure out what I'm doing wrong.

    


    My assumptions are :

    


      

    • I have effectively a conversion issue, but I strongly tested all my values and I can certify that they are passed in the expected ranges and well converted in the correct time bases. So the issue would be on the FFmpeg side
    • 


    • The FFmpeg library is not planned to work well with so small values, it needs at least a huger video to works well
    • 


    • I'm doing something wrong, and perhaps my approach isn't the good one to seek in my videos
    • 


    


    Is one of my above assumptions correct, or there is something else which may break my seek function ? Has someone already faced a such issue and how he resolved it ?