Recherche avancée

Médias (91)

Autres articles (56)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (9794)

  • Shadow on Central Image via FFMPEG [closed]

    9 octobre 2023, par Ashish Chaturvedi

    enter image description here

    


    To create an image for use in portrait orientations and for YouTube thumbnails in both 16 by 9 and 9 by 16 aspect ratios,

    


    I want to add a shadow effect to the central cover art image.

    


    The desired effect involves placing the main image in the center and surrounding it with a blurred background.

    


    The primary focus is to achieve a shadowing effect on the central image via the FFMPEG command as show in the below image.

    


    Any help/idea will be more helpful.

    


  • What is video timescale, timebase, or timestamp in ffmpeg ? [on hold]

    11 avril 2017, par Please Help

    There does not seem to be any explanation online as to what these are. People talk about them a lot. I just want to know what they are and why they are significant. Using -video_track_timescale, how would I determine a number for it ? Is it random ? Should it be 0 ?

  • how can i use the sox library to process the audio frame decoded by ffmpeg ?

    14 juin 2023, par bishop

    使用sox音频处理库处理经过ffmpeg解码得到的音频帧,

    


         //使用sox处理音频&#xA;            int sox_count = 9;&#xA;            if (StreamType::AUDIO == stream_type_ ) {&#xA;                sox_init();&#xA;&#xA;                sox_signalinfo_t* in_signal = new sox_signalinfo_t();&#xA;                in_signal->rate = frame->sample_rate;&#xA;                in_signal->channels = frame->ch_layout.nb_channels;&#xA;                in_signal->length = frame->nb_samples * in_signal->channels;&#xA;                in_signal->precision = av_get_bytes_per_sample(static_cast<avsampleformat>(frame->format)) * 8;&#xA;&#xA;                 //= new sox_format_t();&#xA;                sox_encodinginfo_t* in_encoding = new sox_encodinginfo_t ();&#xA;                in_encoding->encoding = SOX_ENCODING_SIGN2 ;&#xA;                 sox_format_t* tempFormat = sox_open_mem_read(frame->data[0],&#xA;                                               frame->linesize[0],&#xA;                                               in_signal, in_encoding, "raw");&#xA;&#xA;                //sox_write(tempFormat, reinterpret_cast<const>(frame->data[0]), frame->nb_samples);&#xA;&#xA;                 sox_signalinfo_t* out_signal = in_signal;  // 输出音频的参数与输入音频相同&#xA;                 //out_signal->rate = new_sample_rate;  // 新的采样率,根据需要进行修改&#xA;&#xA;                 sox_encodinginfo_t* out_encoding = in_encoding;  // 输出音频的编码格式与输入音频相同&#xA;&#xA;                 sox_format_t* outputFormat = sox_open_mem_write(frame->data[0],&#xA;                                                                 frame->linesize[0],&#xA;                    out_signal, out_encoding, "raw", nullptr);&#xA;&#xA;                 // 3. 使用SoX处理临时文件中的音频数据&#xA;                sox_effects_chain_t* chain = sox_create_effects_chain(&amp;tempFormat->encoding, &amp;outputFormat->encoding);&#xA;                sox_effect_t* effect;&#xA;                char* args[10];&#xA;&#xA;                effect = sox_create_effect(sox_find_effect("input"));&#xA;                args[0] = (char*)tempFormat; // 变调参数,可以根据需求进行修改&#xA;                assert(sox_effect_options(effect, 1, args) ==SOX_SUCCESS);&#xA;                assert(sox_add_effect(chain, effect, &amp;tempFormat->signal, &amp;tempFormat->signal) == SOX_SUCCESS);&#xA;                free(effect);&#xA;&#xA;&#xA;                effect = sox_create_effect(sox_find_effect("vol"));&#xA;                args[0] = "200dB", assert(sox_effect_options(effect, 1, args) == SOX_SUCCESS);&#xA;                /* Add the effect to the end of the effects processing chain: */&#xA;                assert(sox_add_effect(chain, effect, &amp;tempFormat->signal, &amp;tempFormat->signal) == SOX_SUCCESS);&#xA;                free(effect);&#xA;&#xA;                /*&#xA;                effect = sox_create_effect(sox_find_effect("pitch"));&#xA;                args[0] = {"50.0"}; // 变调参数,可以根据需求进行修改&#xA;                assert(sox_effect_options(effect, 1, args) == SOX_SUCCESS);&#xA;                assert(sox_add_effect(chain, effect, &amp;tempFormat->signal, &amp;outputFormat->signal) == SOX_SUCCESS);&#xA;                free(effect);&#xA;                 */&#xA;&#xA;                effect = sox_create_effect(sox_find_effect("output"));&#xA;                args[0] = (char*)outputFormat; // 变调参数,可以根据需求进行修改&#xA;                assert(sox_effect_options(effect, 1, args) == SOX_SUCCESS);&#xA;                if(sox_add_effect(chain, effect, &amp;tempFormat->signal, &amp;outputFormat->signal) == SOX_SUCCESS) {&#xA;                    std::cout&lt;&lt;"true"&lt;/assert(sox_add_effect(chain, effect, &amp;tempFormat->signal, &amp;outputFormat->signal) == SOX_SUCCESS);&#xA;                free(effect);&#xA;&#xA;                // 4. 处理音频数据&#xA;                sox_flow_effects(chain, nullptr, nullptr);&#xA;&#xA;                fflush((FILE*)outputFormat->fp); &#xA;                memcpy(frame->data[1], frame->data[0], frame->linesize[0]);&#xA;&#xA;                // 释放资源&#xA;                sox_delete_effects_chain(chain);&#xA;                sox_close(tempFormat);&#xA;                sox_close(outputFormat);&#xA;                sox_quit();&#xA;&#xA;            }&#xA;</const></avsampleformat>

    &#xA;

    error :"input : : this handler does not support this data size"

    &#xA;

    when execute in the line of "sox_flow_effects(chain, nullptr, nullptr) ;"

    &#xA;

    how can i fixed this problem ?

    &#xA;

    i have changed the val of "sox_format_t* tempFormat = sox_open_mem_read(frame->data[0],&#xA;frame->linesize[0],&#xA;in_signal, in_encoding, "raw") ;" buffer_size,but also not right.

    &#xA;