Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (56)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10341)

  • save ffmpeg AVFrame as dds file

    16 septembre 2017, par HamedBB

    Currently I can capture each frame of the video and save them as .bmp file on disk using following function (copied from an example) :

    bool BMPSave ( const char *pFileName, AVFrame * frame, int w, int h ) {
       bool bResult = false;


       if ( frame ) {
           FILE* file = fopen ( pFileName, "wb" );

           if ( file ) {
               // RGB image
               int imageSizeInBytes = 3 * w * h;
               int headersSize = sizeof( BITMAPFILEHEADER ) +sizeof( BITMAPINFOHEADER );
               int fileSize = headersSize + imageSizeInBytes;

               uint8_t * pData = new uint8_t[headersSize];

               if ( pData != NULL ) {
                   BITMAPFILEHEADER& bfHeader = *( ( BITMAPFILEHEADER * ) ( pData ) );

                   bfHeader.bfType = 'MB';
                   bfHeader.bfSize = fileSize;
                   bfHeader.bfOffBits = headersSize;
                   bfHeader.bfReserved1 = bfHeader.bfReserved2 = 0;

                   BITMAPINFOHEADER& bmiHeader = *( ( BITMAPINFOHEADER * ) ( pData + headersSize - sizeof( BITMAPINFOHEADER ) ) );

                   bmiHeader.biBitCount = 3 * 8;
                   bmiHeader.biWidth = w;
                   bmiHeader.biHeight = h;
                   bmiHeader.biPlanes = 1;
                   bmiHeader.biSize = sizeof( bmiHeader );
                   bmiHeader.biCompression = BI_RGB;
                   bmiHeader.biClrImportant = bmiHeader.biClrUsed =
                       bmiHeader.biSizeImage = bmiHeader.biXPelsPerMeter =
                       bmiHeader.biYPelsPerMeter = 0;

                   fwrite ( pData, headersSize, 1, file );

                   uint8_t *pBits = frame->data[0] + frame->linesize[0] * h - frame->linesize[0];
                   int nSpan = -frame->linesize[0];

                   int numberOfBytesToWrite = 3 * w;

                   for ( size_t i = 0; i < h; ++i, pBits += nSpan ) {
                       fwrite ( pBits, numberOfBytesToWrite, 1, file );
                   }

                   bResult = true;
                   delete[] pData;
               }

               fclose ( file );
           }
       }

       return bResult;
    }

    However I want to encode each of frame to dds format then use them with D3DX11CreateShaderResourceViewFromFile in direct3D but I can’t figure out how to convert my raw data to dds format.

  • How to save an audiostream with ffmpeg

    13 juillet 2020, par Nico Eymael

    I want to save an audiostream from beatport.com with ffmpeg.

    


      

    1. The audiostream is : https://www.beatport.com/track/maximal-happiness/13855065
    2. 


    3. Outputfile : audiotrack1.aac
    4. 


    5. I know that the music is streamed in aac format. I want my output file to be also aac. I've looked up in which format it is being streamed.
    6. 


    


    So in cmd I write :

    


    ffmpeg -i https://www.beatport.com/track/maximal-happiness/13855065.aac -vn -c:a copy audiotrack1.aac

    


    My cmd answers me :

    


    https://www.beatport.com/track/maximal-happiness/13855065: Invalid data found when processing input

    


    example1

    


  • How to save stream with ffmpeg to chunks, But in temporary name and change the name after to const

    10 janvier, par Eliya

    I use ffmpeg to record IP camera and I save every 10 minutes to mp4 file.
This is my code :

    


    ffmpeg -rtsp_transport tcp -i "rtsp://$user_name:$password@$IP:$port/cam/realmonitor?channel=1&subtype=1" -c copy -map 0 -reset_timestamps 1  -f segment -segment_time 600 -strftime 1   "%Y-%m-%d__%H:%M:%S.mp4"


    


    Is there a way to save the file in temporary name until 10 minutes is done ?
I mean when the recording of 10 minutes didn't end the suffix will be bla.temp and when the recording of the 10 minutes is over, ffmpeg will change the suffix to .mp4 ?
is that possible ?