Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (83)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (11030)

  • 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

    


  • 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 generate video thumbnail in node.js and save it as a buffer ?

    4 septembre 2021, par Jourdelune

    I want to get the thumbnails of a video at half of it but I should not save the image in a file but get the buffer. I tested ffmepg
ffmpeg -ss 146 -i video.mp4 -y -an -t 4 source
but it does not propose to recover the buffer. Do you know a solution ?