Recherche avancée

Médias (91)

Autres articles (11)

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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (3534)

  • Scaling and stacking 2 videos

    31 octobre 2019, par Gambit2007

    I have 2 inputs and I want to scale, crop and put them on top of each other at the same time. My command should look something like this :

    ffmpeg -i input1 -i input2 -filter_complex crop=10000:5000:1000:0,scale=3840:1536 vstack output.mp4

    I know I need to use chaining (?) but I tried to look it up online and couldn’t really get it to work.

    So what would be the correct syntax the scale and crop both inputs and then put them vertically on top of each other while using ’-filter_complex’ only once ?

  • the same audio have different length using different tools (librosa,ffprobe)

    29 octobre 2019, par Fathy Eltanany

    I want to measure an audio file’s duration.
    I’m using two different tools and got different values.

    1. ffprobe :
      I’m using this line to get duration using ffprobe
    ffprobe -i audio.m4a -show_entries format=duration -v quiet -of csv="p=0"

    result :780.320000 seconds
    2. Librosa (python library)
    and using this line to get duartion using librosa

    y1, sr1 = librosa.load(audio_path, sr=44100)
    librosa.get_duration(y1, sr1) * 1000

    result 780329.7959183673 milliseconds

    Does anyone know what’s causing the difference ?

  • x264 encoding with libav

    25 mars 2014, par user3453729

    I try to encode raw image data to x264 with libav :

    AVPacket vpkt = { 0 };
    av_init_packet(&vpkt);

    int got;
    int ret = avcodec_encode_video2(vcodec, &vpkt, frameyuv.get(), &got);

    if (!ret && got && vpkt.size) {
       if (vpkt.pts != AV_NOPTS_VALUE) {
           vpkt.pts = av_rescale_q(vpkt.pts, vcodec->time_base, videost->time_base);
       }
       if (vpkt.dts != AV_NOPTS_VALUE) {
           vpkt.dts = av_rescale_q(vpkt.dts, vcodec->time_base, videost->time_base);
       }

       vpkt.stream_index = videost->index;

       if(vcodec->coded_frame->key_frame) {
           vpkt.flags |= AV_PKT_FLAG_KEY;
       }
       /* -> will return -22 if max_b_frames > 0 */
       ret = av_interleaved_write_frame(oc, &vpkt);
    }

    Runs fine when vcodec->max_b_frames is set to 0, but on any other value av_interleaved_write_frame returns -22 (invalid argument).

    /* will fail */
    c->max_b_frames = 3;
    /* -> ok*/
    c->max_b_frames = 0;

    Why ? Am i missing something ?

    Codec options are

    AVDictionary *opts = NULL;
    av_dict_set(&opts, "vprofile", "baseline", 0);

    /* ... */
    c->codec_type = AVMEDIA_TYPE_VIDEO;
    c->bit_rate = 500 * 1000;
    c->width = VideoWidth;
    c->height = VideoHeight;
    c->time_base.den = fps;
    c->time_base.num = 1;
    c->pix_fmt = AV_PIX_FMT_YUV420P;

    Container format is mp4.