Recherche avancée

Médias (91)

Autres articles (107)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

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

Sur d’autres sites (7772)

  • Having trouble building FFmpeg using GNU make, Makefile:182 : /tests/Makefile : No such file or directory

    24 mai 2022, par Daedalus

    I'm having trouble building FFmpeg as a library to use in a project in vscode C++. I have no experience working with C/C++ libraries and would greatly appreciate any help. I've installed chocolatey and GNU make (GNU Make 4.3) with that, and the source code for FFmpeg. I cannot run make, as it tells me to do in the INSTALL.md file of the source code. I've been using command prompt to run the commands. Here are my errors :

    


    C:\ffmpeg>PowerShell ./configure

C:\ffmpeg>make
Makefile:182: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'.  Stop.

C:\ffmpeg>make install
Makefile:182: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'.  Stop.


    


    I've installed FFmpeg from github, and I can't find a working prebuilt library. I've tried different variations of the commands, with PowerShell and directories, but nothing has worked. This is INSTALL.md :

    


    


    Installing FFmpeg

    


      

    1. Type ./configure to create the configuration. A list of configure options is printed by running configure --help.

      


      configure can be launched from a directory different from the FFmpeg sources to build the objects out of tree. To do this, use an
absolute path when launching configure, e.g.
/ffmpegdir/ffmpeg/configure.

      


    2. 


    3. Then type make to build FFmpeg. GNU Make 3.81 or later is required.

      


    4. 


    5. Type make install to install all binaries and libraries you built.

      


    6. 


    


    NOTICE

    


      

    • Non system dependencies (e.g. libx264, libvpx) are disabled by default.
    • 


    


    


    Any help would be greatly appreciated. Thanks in advance.

    


  • How to pass data cuvidParseVideoData

    28 avril 2022, par Serhan Erkovan

    I try to develop streaming program,I have 4k videos that 5 fps and 20 seconds, I encode frames with cuda encoder successfully, i send encoded data over rtp successfully but when i try to decode that data, i got 0 frame from cuvidParseVideoData. Should i do something before the cuvidParseVideoData for example use ffmpeg demuxer ?

    


    RecvDec.cpp

    


    Server* server = new Server(8890 + thread_no);
server->recv_packets();
totBuf* totBuf = server->getTotalBuf();
            if (totBuf->perBuf == nullptr) {
                
                std::cout << prompt << "perBuf null!" << std::endl;
                nVideoBytes = 1;
                continue;
            }

pVideo = new uint8_t[totBuf->totSize];
memcpy(pVideo, totBuf->perBuf->perBuf, totBuf->totSize);
nVideoBytes = totBuf->perBuf->size;
int nFrameReturned = 0;
nFrameReturned = dec.Decode(pVideo, nVideoBytes);




    


    NvDecoder.cpp

    


    int NvDecoder::Decode(const uint8_t *pData, int nSize, int nFlags, int64_t nTimestamp)
{
    m_nDecodedFrame = 0;
    m_nDecodedFrameReturned = 0;
    CUVIDSOURCEDATAPACKET packet = { 0 };
    packet.payload = pData;
    packet.payload_size = nSize;
    packet.flags = nFlags | CUVID_PKT_TIMESTAMP;
    packet.timestamp = nTimestamp;
    if (!pData || nSize == 0) {
        packet.flags |= CUVID_PKT_ENDOFSTREAM;
    }
    NVDEC_API_CALL(cuvidParseVideoData(m_hParser, &packet));
    m_cuvidStream = 0;

    return m_nDecodedFrame;
}



    


    Decode function always returns 0.
If i have to pass my datas from Ffmpeg demuxer, how can i pass type of uint8_t* data to demuxer ?
My data always starts with 0x00 0x00 0x00 0x01. This is start frame tag.

    


  • How to work with Cuda cuvidParseVideoData

    27 avril 2022, par Serhan Erkovan

    I try to develop streaming program,I have 4k videos that 5 fps and 20 seconds, I encode frames with cuda encoder successfully, i send encoded data over rtp successfully but when i try to decode that data, i got 0 frame from cuvidParseVideoData. Should i do something before the cuvidParseVideoData for example use ffmpeg demuxer ?

    


    RecvDec.cpp

    


    Server* server = new Server(8890 + thread_no);
server->recv_packets();
totBuf* totBuf = server->getTotalBuf();
            if (totBuf->perBuf == nullptr) {
                
                std::cout << prompt << "perBuf null!" << std::endl;
                nVideoBytes = 1;
                continue;
            }

pVideo = new uint8_t[totBuf->totSize];
memcpy(pVideo, totBuf->perBuf->perBuf, totBuf->totSize);
nVideoBytes = totBuf->perBuf->size;
int nFrameReturned = 0;
nFrameReturned = dec.Decode(pVideo, nVideoBytes);




    


    NvDecoder.cpp

    


    int NvDecoder::Decode(const uint8_t *pData, int nSize, int nFlags, int64_t nTimestamp)
{
    m_nDecodedFrame = 0;
    m_nDecodedFrameReturned = 0;
    CUVIDSOURCEDATAPACKET packet = { 0 };
    packet.payload = pData;
    packet.payload_size = nSize;
    packet.flags = nFlags | CUVID_PKT_TIMESTAMP;
    packet.timestamp = nTimestamp;
    if (!pData || nSize == 0) {
        packet.flags |= CUVID_PKT_ENDOFSTREAM;
    }
    NVDEC_API_CALL(cuvidParseVideoData(m_hParser, &packet));
    m_cuvidStream = 0;

    return m_nDecodedFrame;
}



    


    Decode function always returns 0.
If i have to pass my datas from Ffmpeg demuxer, how can i pass type of uint8_t* data to demuxer ?
My data always starts with 0x00 0x00 0x00 0x01. This is start frame tag.