Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (80)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

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

Sur d’autres sites (6398)

  • ffmpeg writes invalid fps to the mp4 container (and in avi it is true). What is the reason ?

    8 juin 2020, par Ivan Sh.

    I need to record frames in real time. To test this situation, I make pts non-linear (since frames may be lost), thus :

    



    // AVFrame
video_frame->pts = prev_pts + 2;


    



    I use libavformat to write to a file. Parameters AVCodecContext and AVStream :

    



    #define STREAM_FRAME_RATE 25
#define CODEC_PIX_FMT  AV_PIX_FMT_YUV420P
#define FRAME_WIDTH 1440
#define FRAME_HEIGHT 900

// AVCodecContext
cc->codec_id = video_codec->id;
cc->bit_rate = 400000;
cc->width = FRAME_WIDTH;
cc->height = FRAME_HEIGHT;
cc->gop_size = 12;
cc->pix_fmt = CODEC_PIX_FMT;

// AVStream
video_stream->time_base = AVRational{ 1, STREAM_FRAME_RATE };
cc->time_base = video_stream->time_base;
cc->framerate = AVRational{ STREAM_FRAME_RATE , 1 };


    



    Write to file :

    



    static int write_frame(AVFormatContext *fmt_ctx, const AVRational *time_base, AVStream *st, AVPacket *pkt)
{
    /* rescale output packet timestamp values from codec to stream timebase */
    //av_packet_rescale_ts(pkt, *time_base, st->time_base);
    pkt->pts = av_rescale_q(pkt->pts, *time_base, st->time_base);
    pkt->dts = av_rescale_q(pkt->dts, *time_base, st->time_base);
    pkt->stream_index = st->index;

    /* Write the compressed frame to the media file. */
    //log_packet(fmt_ctx, pkt);
    //return av_write_frame(fmt_ctx, pkt);
    return av_interleaved_write_frame(fmt_ctx, pkt);
}


    



    If you use the avi container, then the information on the number of frames per second is indicated correctly in the file : 25 fps

    



    enter image description here

    



    If you use the mp4 container, then the file information about the number of frames per second is indicated incorrectly : 12.5 fps

    



    enter image description here

    



    Tell me, please, what other settings need to be added ?

    


  • CPU usage overload with Ffmpeg in Video Upload Converter site

    19 avril 2013, par Luis Ferrer Raventos

    i am working on a video converter site in which you can upload a video an then convert it to the format you want.

    Everything works great only problem is CPU usage overload of ffmpeg, when I upload 4 instance 4 HD videos CPU usage gets to 70-80%

    To control this I would like to find a way to low cpu usage or priorizy it, I tried several tutorials like : http://www.nixtutor.com/linux/changing-priority-on-linux-processes/

    but don't seem to control that, I tried this and then ffmpeg didn't work had to update it.

    So once i control CPU usage I would also like to use a php queue system to control video conversion.

    Could anyone give me any tips, orientation on how to get this working ?

    Thank you in advance

    BTW My server is Centos Linux 6

  • Anomalie #2107 (Fermé) : Ajouter un mot-clé à un site

    7 juin 2011, par cedric -