Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (5)

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (1929)

  • Do avcodec_receive_frame and avcodec_send_packet block / how to design ffmpeg decoding loop ?

    12 octobre 2020, par Paprika

    I'm thinking about how to design a loop that reads frames from internet, feed to ffmpeg decoder and then receive from ffmpeg to send to a render.

    


    Take this pseudocode loop in consideration :

    


    while true {
    auto packet = receive_packet_from_network();
    avcodec_send_packet(packet);
    auto frame = alloc_empty_frame();
    int r = avcodec_receive_frame(&frame);
    if (r==0) {
        send_to_render(frame);
    }
}


    


    do avcodec_send_packet or avcodec_receive_frame block or ffmpeg has an internal thread ? I'm concerned about this loop because it waits for packets from network, so it has some delay. I'd like to do something like this instead :

    


    //thread 1
while true {
    auto packet = receive_packet_from_network();
    avcodec_send_packet(packet);
}
//thread 2
while true {
    auto frame = alloc_empty_frame();
    int r = avcodec_receive_frame(&frame);
    if (r==0) {
        send_to_render(frame);
    }
}


    


    however, now, if avcodec_receive_frame does not block, then this loop would run too fast, millions of times per second.

    


    So, how should I design the send/receive of packets in ffmpeg in the most efficient way ? I don't want to spend cpu cycles like in the thread2 loop.

    


  • Preview video in android before saving to phone

    13 novembre 2014, par Zoe

    I’m in the process of creating a video editor for android.
    I am loading .mp4 videos into a timeline, where each rectangle in the timeline represents an imported video and I can drag/drop and rearrange these videos etc before saving the new .mp4 to my phone.

    I’ve been using mp4parser to do this, however I have ffmpeg loaded too but have avoided using this as I’m not too familiar with c++

    I have a space for a video player in my app. The idea is to have a seek line that can be dragged along the timeline as you are editing, and I want the player to be able to play a
    the edited video at the given point.

    However, the only examples on how to implement video players in android require you to load this video from your phone to play it. I was thinking I could just play the loaded videos separately but one after another giving the impression you’re watching a whole video, but I’m later planning to add functionality to include transitions and subtitles to videos which you would not be able to preview using this method.

    Any ideas on how about I can go about implementing a video player to preview the media whilst editing ?

    Thank you.

  • FFmpeg C++ APIs to detect if a video is rotated (shot on phone)

    11 mars 2016, par williamtroup

    Using the FFmpeg C++ API, is there a way to determine if a video was shot on a phone and if its rotated ?

    When extracting the frames, the are rotated at a 90 degree angle, which is fine, but it would be good to report back that the video is rotated.