Recherche avancée

Médias (0)

Mot : - Tags -/configuration

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (62)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

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

  • Array Getting Lost While Passing From C++ to C Using Callback [duplicate]

    23 décembre 2020, par Abhishek Sharma

    I am trying to write Video Using FFmpeg by generating frame at run time using direct3d and the frames are generated using sharp dx at c# and I use window runtime to callback to c# to generate Frame And return Platform::Array of Byte ;

    


    so for writing video using FFmpeg, I used C code that writes video, and to ask for generating frame I implemented a callback to generate a frame and all that in StaticLib

    


    uint8_t*(*genrate_frame_callback)(int) = NULL;   


    


    now in C-File, I call fill_image to get the frame and write to the video

    


    static void fill_image(int frame_index, int width, int height)
{
    int x, y, i;

    i = frame_index;
    auto result = genrate_frame_callback(frame_index);// after passing this point while using debugger reults single element not even array
    .
    .
    .
    code to write video
    
}


    


    now when I call to Write Video before that pass this function to the callback that is in the c++ file in a Window Runtime Component that reference to static lib

    


    uint8_t* genrate_frame(int args)&#xA;{&#xA;    auto frame = FireGenrateFramet(args); // returns Platform::Array<byte>&#xA;    vector v(frame->begin(), frame->end());&#xA;    return v.data();// data is abilabe to this point &#xA;}&#xA;</byte>

    &#xA;

    now the result variable contains a single element&#xA;I am new to c++ and c and unable to understand why is data not passed to the function using call back

    &#xA;

    Edit :

    &#xA;

    then can you help me with how to pass Data I tried using the global Scope Variable c++ file too but still,&#xA;it gets lost,&#xA;but after introducing another call back to read data stored in global Variable it read the whole data correctly

    &#xA;

    vector frame_v;&#xA;uint8_t* genrate_frame(int args)&#xA;{&#xA;    auto frame = FireGenrateFrame(args);&#xA;     vector v(frame->begin(), frame->end());&#xA;    frame_v = v;&#xA;    return v.data();// this loose the Same &#xA;}&#xA;&#xA;uint8_t read_pixal(int args)&#xA;{&#xA;    return frame_v[args];// where as it read out correctly&#xA;}&#xA;

    &#xA;

    but I don't want to store and add new call back an read from their just pass the array

    &#xA;

  • ffmpeg concat drops audio frames

    5 octobre 2017, par Shaun

    I have an mp4 file and I want to take two sequential sections of the video out and render them as individual files, later recombining them back into the original video. For instance, with my video video.mp4, I can run

    ffmpeg -i video.mp4 -ss 56 -t 4 out1.mp4
    ffmpeg -i video.mp4 -ss 60 -t 4 out2.mp4

    creating out1.mp4 which contains 00:00:56 to 00:01:00 of video.mp4, and out2.mp4 which contains 00:01:00 to 00:01:04. However, later I want to be able to recombine them again quickly (i.e., without reencoding), so I use the concat demuxer,

    ffmpeg -f concat -safe 0 -i files.txt -c copy concat.mp4

    where files.txt contains

    file out1.mp4
    file out2.mp4

    which theoretically should give me back 00:00:56 to 00:01:04 of video.mp4, however there are always dropped audio frames where the concatenation occurs, creating a very unpleasant sound artifact, an audio blip, if you will.

    missing audio frames

    I have tried using async and -af apad on initially creating the two sections of the video but I am still faced with the same problem, and have not found the solution elsewhere. I have experienced this issue in multiple different use cases, so hopefully this simple example will shed some light on the real problem.

  • Getting the file name of downloaded video using yt-dlp

    31 décembre 2024, par LT_Orange

    I'm intending to use yt-dlp to download a video and then cut the video down afterward using ffmpeg. But to be able to use ffmpeg I am going to have to know the name of the file that yt-dlp produces. I have read through their documentation but I can't seem to find a way of getting the file name back into my program.

    &#xA;