Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (73)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (13972)

  • 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;

  • General outline for how to code a YouTube to MP4 converter that allows the user to trim the video according to time stamps they put in ? [closed]

    16 mai 2023, par Vdog22

    I just need a general outline of how to do this.

    &#xA;

    I haven't started yet, but I'm not so experienced so I'm not sure how to go about this.

    &#xA;

    N/A&#xA;‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎ ‏‏‎

    &#xA;

  • Revision 51a0e9825b : General cleanup in vp9_encodeframe.c. Change-Id : I446fca8aa11a4d4fc2b23d4b32348

    7 mars 2014, par Dmitry Kovalev

    Changed Paths :
     Modify /vp9/encoder/vp9_encodeframe.c



    General cleanup in vp9_encodeframe.c.

    Change-Id : I446fca8aa11a4d4fc2b23d4b32348b74d74d0202