Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (57)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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

Sur d’autres sites (7448)

  • ffmpeg image to video sequence stops after 10

    18 mai 2012, par Jim

    Probably a fast anwser, but my first time trying to do this. I have 77 jpeg pictures, I have renamed them to be 000.jpg - 076.jpg. The next step is using ffmpeg and here is my command statement :

    ffmpeg -f image2 -r .1 -i %d.jpg -r 25 test.avi

    It creates an avi with 10 images for 10seconds each, why only 10 ? I've tried other iterations of %d.jpg in the ffmpeg command with no success.

    thanks for the help all !

    -Jim

    Here is the listing of the directory with the images :

    ls -l
    total 77472
    -rwxr-xr-x 1 jim jim 2329065 May 17 16:31 000.jpg
    -rwxr-xr-x 1 jim jim  716563 May 17 16:31 001.jpg
    -rwxr-xr-x 1 jim jim  716626 May 17 16:31 002.jpg
    -rwxr-xr-x 1 jim jim  726686 May 17 16:31 003.jpg
    -rwxr-xr-x 1 jim jim  739312 May 17 16:31 004.jpg
    -rwxr-xr-x 1 jim jim  720249 May 17 16:31 005.jpg
    -rwxr-xr-x 1 jim jim  666757 May 17 16:31 006.jpg
    -rwxr-xr-x 1 jim jim  656259 May 17 16:31 007.jpg
    -rwxr-xr-x 1 jim jim  664960 May 17 16:31 008.jpg
    -rwxr-xr-x 1 jim jim  740801 May 17 16:31 009.jpg
    -rwxr-xr-x 1 jim jim  882502 May 17 16:31 010.jpg
    -rwxr-xr-x 1 jim jim  631117 May 17 16:31 011.jpg
    -rwxr-xr-x 1 jim jim  730331 May 17 16:31 018.jpg
    -rwxr-xr-x 1 jim jim  725132 May 17 16:31 019.jpg
    -rwxr-xr-x 1 jim jim  729626 May 17 16:31 020.jpg
    -rwxr-xr-x 1 jim jim  731980 May 17 16:31 021.jpg
    -rwxr-xr-x 1 jim jim  671597 May 17 16:31 022.jpg
    -rwxr-xr-x 1 jim jim  681978 May 17 16:31 023.jpg
    -rwxr-xr-x 1 jim jim  686600 May 17 16:31 024.jpg
    -rwxr-xr-x 1 jim jim  675316 May 17 16:31 025.jpg
    -rwxr-xr-x 1 jim jim  681826 May 17 16:31 026.jpg
    -rwxr-xr-x 1 jim jim  740998 May 17 16:31 027.jpg
    -rwxr-xr-x 1 jim jim  568480 May 17 16:31 028.jpg
    -rwxr-xr-x 1 jim jim  747400 May 17 16:31 029.jpg
    -rwxr-xr-x 1 jim jim  630995 May 17 16:31 030.jpg
    -rwxr-xr-x 1 jim jim  689926 May 17 16:31 031.jpg
    -rwxr-xr-x 1 jim jim  685054 May 17 16:31 032.jpg
    -rwxr-xr-x 1 jim jim  710620 May 17 16:31 033.jpg
    -rwxr-xr-x 1 jim jim  658365 May 17 16:31 034.jpg
    -rwxr-xr-x 1 jim jim  657037 May 17 16:31 035.jpg
    -rwxr-xr-x 1 jim jim  772135 May 17 16:31 036.jpg
    -rwxr-xr-x 1 jim jim  741759 May 17 16:31 037.jpg
    -rwxr-xr-x 1 jim jim  807470 May 17 16:31 038.jpg
    -rwxr-xr-x 1 jim jim  748423 May 17 16:31 039.jpg
    -rwxr-xr-x 1 jim jim  712377 May 17 16:31 040.jpg
    -rwxr-xr-x 1 jim jim  715804 May 17 16:31 041.jpg
    -rwxr-xr-x 1 jim jim  701025 May 17 16:31 042.jpg
    -rwxr-xr-x 1 jim jim  759446 May 17 16:31 043.jpg
    -rwxr-xr-x 1 jim jim  621801 May 17 16:31 044.jpg
    -rwxr-xr-x 1 jim jim  720843 May 17 16:31 045.jpg
    -rwxr-xr-x 1 jim jim  704002 May 17 16:31 046.jpg
    -rwxr-xr-x 1 jim jim  696075 May 17 16:31 047.jpg
    -rwxr-xr-x 1 jim jim  723685 May 17 16:31 048.jpg
    -rwxr-xr-x 1 jim jim  732332 May 17 16:31 049.jpg
    -rwxr-xr-x 1 jim jim  747235 May 17 16:31 050.jpg
    -rwxr-xr-x 1 jim jim  883655 May 17 16:31 051.jpg
    -rwxr-xr-x 1 jim jim 1750723 May 17 16:31 052.jpg
    -rwxr-xr-x 1 jim jim 1002588 May 17 16:31 053.jpg
    -rwxr-xr-x 1 jim jim  540666 May 17 16:31 054.jpg
    -rwxr-xr-x 1 jim jim 1876002 May 17 16:31 055.jpg
    -rwxr-xr-x 1 jim jim 1893761 May 17 16:31 056.jpg
    -rwxr-xr-x 1 jim jim 1979442 May 17 16:31 057.jpg
    -rwxr-xr-x 1 jim jim 1766249 May 17 16:31 058.jpg
    -rwxr-xr-x 1 jim jim 2085989 May 17 16:31 059.jpg
    -rwxr-xr-x 1 jim jim  883871 May 17 16:31 060.jpg
    -rwxr-xr-x 1 jim jim  755714 May 17 16:31 061.jpg
    -rwxr-xr-x 1 jim jim  797146 May 17 16:31 062.jpg
    -rwxr-xr-x 1 jim jim 2431531 May 17 16:31 065.jpg
    -rwxr-xr-x 1 jim jim 2413333 May 17 16:31 066.jpg
    -rwxr-xr-x 1 jim jim 2449278 May 17 16:31 067.jpg
    -rwxr-xr-x 1 jim jim 2458183 May 17 16:31 068.jpg
    -rwxr-xr-x 1 jim jim 2514419 May 17 16:31 069.jpg
    -rwxr-xr-x 1 jim jim 2477737 May 17 16:31 070.jpg
    -rwxr-xr-x 1 jim jim 2471347 May 17 16:31 071.jpg
    -rwxr-xr-x 1 jim jim 2384936 May 17 16:31 072.jpg
    -rwxr-xr-x 1 jim jim 2459983 May 17 16:31 073.jpg
    -rwxr-xr-x 1 jim jim 2501286 May 17 16:31 074.jpg
    -rwxr-xr-x 1 jim jim 2367710 May 17 16:31 075.jpg
    -rwxr-xr-x 1 jim jim 2455564 May 17 16:31 076.jpg

    FFMPEG Command and OUTPUT :

    ffmpeg -v verbose -f image2 -r .1 -i %03d.jpg -r 25 test.avi
    ffmpeg version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav developers
     built on Mar 22 2012 05:09:06 with gcc 4.6.3
     configuration: --extra-version='4:0.8.1-0ubuntu1' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libfreetype --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
     avutil      configuration: --extra-version='4:0.8.1ubuntu1+medibuntu1' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libfreetype --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
     avcodec     configuration: --extra-version='4:0.8.1ubuntu1+medibuntu1' --arch=amd64 --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libfreetype --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
     libavutil    51. 22. 1 / 51. 22. 1
     libavcodec   53. 35. 0 / 53. 35. 0
     libavformat  53. 21. 0 / 53. 21. 0
     libavdevice  53.  2. 0 / 53.  2. 0
     libavfilter   2. 15. 0 /  2. 15. 0
     libswscale    2.  1. 0 /  2.  1. 0
     libpostproc  52.  0. 0 / 52.  0. 0
    This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes).
    [image2 @ 0x1bef9c0] max_analyze_duration reached

    Seems stream 0 codec frame rate differs from container frame rate: 0.10 (1/10) -> 0.50 (1/2)
    Input #0, image2, from '%03d.jpg':
     Duration: 00:02:00.00, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: mjpeg, yuvj440p, 1920x2560, 0.10 fps, 0.50 tbr, 0.10 tbn, 0.10 tbc
    File 'test.avi' already exists. Overwrite ? [y/N] y
    Incompatible pixel format 'yuvj440p' for codec 'mpeg4', auto-selecting format 'yuv420p'
    [buffer @ 0x1bf0100] w:1920 h:2560 pixfmt:yuvj440p
    [avsink @ 0x1bf13c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 0x1bf1ae0] w:1920 h:2560 fmt:yuvj440p -> w:1920 h:2560 fmt:yuv420p flags:0x4
    Output #0, avi, to 'test.avi':
     Metadata:
       ISFT            : Lavf53.21.0
       Stream #0.0: Video: mpeg4, yuv420p, 1920x2560, q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    [buffer @ 0x1bf0100] Changing frame properties on the fly is not supported.
       Last message repeated 10 times
    frame=    1 fps=  0 q=5.7 Lsize=      97kB time=0.04 bitrate=19823.2kbits/s    
    video:91kB audio:0kB global headers:0kB muxing overhead 6.106282%

    Now test.avi is only 99Kbs and doesn't play anything.

  • Anomalie #2668 : MediaBox

    6 mai 2012, par marcimat -

    Ah oui, si j’en crois http://www.jacklmoore.com/colorbox il faut que la description ’current’ (transmis par ’boxstr_current’ en question) contienne les chaines current et total qui seront remplacé par colorbox par leurs valeurs. Du coup, les traduire n’a pas de sens et crée un (...)

  • FFmpeg : undefined references to av_frame_alloc()

    6 août 2014, par dontrythisathome

    I want to get into FFmpeg developing and i started following these samples tutorial here : here

    I started with the first tutorial - tutorial01.c - but i run into this problem ’undefined references to av_frame_alloc()’.

    I’m on Ubuntu 12.04 LTS.

    This is my program :

    /*
    * File:   main.c
    * Author: dontrythisathome
    *
    * Created on 3 giugno 2014, 23.02
    */

    #include
    #include <libavcodec></libavcodec>avcodec.h>
    #include <libavformat></libavformat>avformat.h>
    #include <libavutil></libavutil>frame.h>
    #include <libswscale></libswscale>swscale.h>
    /*
    *
    */
    void SaveFrame(AVFrame *pFrame, int width, int height, int iFrame)
       {
           FILE   *pFile;
           char  szFilename[32];
           int       y;

           //Apre il file
           sprintf(szFilename, "frame%d.ppm", iFrame);
           pFile=fopen(szFilename, "wb");
           if(pFile==NULL)
           {return; }

           //Scrive l'intestazione del file ( Larghezza x Altezza su video)
           fprintf(pFile, "P6\n%d %d\n255\n", width, height);

           //Scrive i data pixel
           for(y=0; ydata[0]+y*pFrame->linesize[0], 1, width*3, pFile);
           }

           //Chiude il file
           fclose(pFile);
         }
    /*
    *
    */
    /*Main Function*/
    int main(int argc, char *argv[])
    {
       AVFormatContext *pFormatCtx;
       int                                     i, videoStreamIdx;
       AVCodecContext   *pCodecCtx;
       AVCodec                      *pCodec;
       AVFrame                      *pFrame;
       AVFrame                      *pFrameRGB;
       AVPacket                     packet;
       int                                     frameFinished;
       int                                     numBytes;
       uint8_t                           *buffer;
       static struct SwsContext  *img_convert_ctx;

       if(argc &lt; 2){
           printf("Inserisci un file video\n");
           return -1;
       }

       //Registra tutti i formati e i codec
       av_register_all();

       //Apre il file video
       if(avformat_open_input(&amp;pFormatCtx, argv[1], NULL, NULL) != 0)
       {return -1;} //Impossibile aprire il file

       //Recupera le informazioni dello stream
       if(avformat_find_stream_info(pFormatCtx, NULL) &lt; 0)
       {return -1;} // Couldn't find stream information

       //Versa le informazioni del file sullo standard error
       av_dump_format(pFormatCtx, 0, argv[1], 0);

       //Trova il primo stream video
       videoStreamIdx=-1;
       for(i=0; inb_streams; i++)
       {
           if(pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
           { videoStreamIdx=i;
               break;}
       }

       if(videoStreamIdx==-1)
           return -1; // Impossibile trovare lo stream video

       // Punta al contenuto del codec per lo stream video
       pCodecCtx = pFormatCtx->streams[videoStreamIdx]->codec;

       // Trova il decoder per lo stream video
       pCodec = avcodec_find_decoder(pCodecCtx->codec_id);
       if(pCodec==NULL)
       {
           fprintf(stderr, "Codec Non Supportato!\n");
           return -1; //Impossibile trovare il codec
       }

       //Apre il codec
       if(avcodec_open2(pCodecCtx, pCodec, NULL) &lt; 0)
       {return -1;} //Impossibile aprire il codec

       //Alloca il frame video
       pFrame = av_frame_alloc();

       //Alloca una struct AVFrame
       pFrameRGB = av_frame_alloc();
       if(pFrameRGB==NULL)
       {return -1;}

       //Determina la grandezza necessaria per il buffer e lo alloca
       numBytes = avpicture_get_size(PIX_FMT_RGB24,
                                                                               pCodecCtx->width,
                                                                               pCodecCtx->height);

       buffer = (uint8_t *) av_malloc(numBytes*sizeof(uint8_t));

       //Assegna le parti appropriate del buffer sulla superficie dell'immagine in pFrameRGB
       //Tenere presente che pFrameRGB è un AVFrame, ma AVFrame è una superset di AVPicture
       avpicture_fill((AVPicture *)pFrameRGB, buffer, PIX_FMT_RGB24, pCodecCtx->width, pCodecCtx->height);

       int w = pCodecCtx->width;
       int h = pCodecCtx->height;
       img_convert_ctx = sws_getContext(w, h, pCodecCtx->pix_fmt,
                                                                                          w, h, PIX_FMT_RGB24,
                                                                                           SWS_LANCZOS, NULL, NULL, NULL);

       //Legge i frame e salva i primi 5 frame su disco
      i=0;
      while((av_read_frame(pFormatCtx, &amp;packet)>=0) &amp;&amp; (i&lt;5))
      {
          //Questo è il packet dello stream video?
          if(packet.stream_index==videoStreamIdx)
          {
              //Decodifica il frame video
              avcodec_decode_video2(pCodecCtx, pFrame, &amp;frameFinished, &amp;packet);

              //Si è riusiciti ad ottenere il frame video?
              if(frameFinished)
              {
                  i++;
                  sws_scale(img_convert_ctx, (const uint8_t * const *)pFrame->data,
                                           pFrame->linesize, 0, pCodecCtx->height,
                                           pFrameRGB->data, pFrameRGB->linesize);
                  SaveFrame(pFrameRGB, pCodecCtx->width, pCodecCtx->height, i);
              }
          }

          //Libera il pacchetto che era allocato da av_read_frame
          av_free_packet(&amp;packet);
      }

      //Libera l'immagine RGB
      av_free(buffer);
      av_free(pFrameRGB);

      //Libera il frame YUV
      av_free(pFrame);

      //Chiude il codec
      avcodec_close(pCodecCtx);

      //Chiude il file video
      avformat_close_input(&amp;pFormatCtx);

      /*FINE PROGRAMMA*/

       return 0;
    }

    This is the build output :

    "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
    make[1]: ingresso nella directory "/home/dontrythisathome/Programmazione/C-C++/SimpleMediaPlayerForAndroid"
    "/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/simplemediaplayerforandroid
    make[2]: ingresso nella directory "/home/dontrythisathome/Programmazione/C-C++/SimpleMediaPlayerForAndroid"
    mkdir -p dist/Debug/GNU-Linux-x86
    gcc     -o dist/Debug/GNU-Linux-x86/simplemediaplayerforandroid build/Debug/GNU-Linux-x86/main.o -L/usr/lib/x86_64-linux-gnu -lavformat -lavcodec -lavutil -lswscale -lz -lbz2
    build/Debug/GNU-Linux-x86/main.o: In function `main':
    /home/dontrythisathome/Programmazione/C-C++/SimpleMediaPlayerForAndroid/main.c:105: undefined reference to `av_frame_alloc'
    /home/dontrythisathome/Programmazione/C-C++/SimpleMediaPlayerForAndroid/main.c:108: undefined reference to `av_frame_alloc'
    collect2: ld returned 1 exit status
    make[2]: *** [dist/Debug/GNU-Linux-x86/simplemediaplayerforandroid] Errore 1
    make[2]: uscita dalla directory "/home/dontrythisathome/Programmazione/C-C++/SimpleMediaPlayerForAndroid"
    make[1]: *** [.build-conf] Errore 2
    make[1]: uscita dalla directory "/home/dontrythisathome/Programmazione/C-C++/SimpleMediaPlayerForAndroid"
    make: *** [.build-impl] Errore 2

    BUILD FAILED (exit value 2, total time: 143ms)

    I also linked the correct library path and headers path because there is no error with that.

    But when i try to build the program from the terminal with these commands :

    gcc -o prog1 /home/dontrythisathome/Programmazione/C-C++/SimpleMediaPlayerForAndroid/main.c -lavformat -lavcodec -lavutil -lswscale -lz -lbz2

    And the output is different :

    /home/dontrythisathome/Programmazione/C-C++/SimpleMediaPlayerForAndroid/main.c:11:29: fatal error: libavutil/frame.h: File o directory non esistente
    compilation terminated.

    The output says that there is no file or directory existing.
    What is the problem ?