Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (104)

  • 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

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

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

  • Is raw audio in AVFrame->data the same as LPCM ?

    4 décembre 2023, par CheekyChips

    In the ffmpeg documentation for an AVFrame it says

    


    


    This structure describes decoded (raw) audio or video data.

    


    


    In the case of audio data, what format are the samples within an AVFrame in ? Do they basically look like raw LPCM samples ? If you decode audio data into an AVFrame (i.e. via avcodec_send_packet() ... avcodec_receive_frame()) does the audio data of the packet look the same, regardless of what encoding it was originally in in the packet (assuming the same sample rate, sample format, etc) ?

    


    Based on the question How is decoded audio data stored in ffmpeg AVFrame ? it seems like this is the case, but I want to know if this is the same as LPCM, regardless of what encoding the audio data was in before ?

    


    Bonus question : If it is the same as LPCM, why would you use a PCM encoder (e.g. ""pcm_f32le") to encode the frame data to AVPackets ? Does the internal data look the same ? Is it just in order to use functions that take AVPackets like av_interleaved_write_frame()

    


  • QAudioSink play AVFrame data decoded by ffmpeg

    26 mai 2022, par liuyulvv

    I want to using QAudioSink to play PCM data decoded by ffmpeg.

    


    I first try to play a pcm file and I made it :

    


    Here is the override function readData of QIODevice

    


    qint64 PCMDevice::readData(char *data, qint64 maxlen)
{
    int len = m_inputFile.size();
    len = len < maxlen ? len : maxlen;

    m_inputFile.read(data, len);
    return len;
}


    


    And I get the right result, the file is playing.

    


    But I want to play AVFrame data from the memory :

    


    qint64 PCMDevice::readData(char *data, qint64 maxlen)
{
    AVFrame *res = getFrame();
    if (res == nullptr)
        return 0;

    // Something wrong here
    auto ret = res->nb_samples;
    memcpy(data, res->data[0], ret);

    delete res;
    res = nullptr;
    return ret;
}


    


    How to make AVFrame's data to the data that QAudioSink need ?

    


    I'm pretty sure I'm using the correct sample_fmt, sample_rate etc.

    


    Where is the data of the stereo AVFrame and how to copy it to the data correctly ?

    


  • Setting EBP data via FFMPEG

    14 octobre 2016, par user2475310

    With FFMPEG can we insert EBP data on certain frames ? If so what is the command ?

    We have IDR frames that must have EPB data.