Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (96)

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

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

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

Sur d’autres sites (10167)

  • How to save data of packet.data in ffmpeg using c language ?

    10 juin 2015, par patrick

    I’m try to build an app in c that extract audio from video and save it as audio file. I write the below code. I’m able to extract the audio but now the problem is how to save it. Thanks in advance.

    My code is :

    int main(int argc, char *argv[]) {
    AVFormatContext *pFormatCtx = NULL;
    int             i;
    AVCodecContext  *pCodecCtx = NULL;
    AVCodec         *pCodec = NULL;
    AVFrame         *pFrame = NULL;
    AVPacket        packet;

    AVDictionary    *optionsDict = NULL;

    if(argc < 2) {
    printf("Please provide a movie file\n");
    return -1;
    }
    av_register_all();
    if(avformat_open_input(&pFormatCtx, argv[1], NULL, NULL)!=0)
    return -1;

    if(avformat_find_stream_info(pFormatCtx, NULL)<0)
    return -1;

    av_dump_format(pFormatCtx, 0, argv[1], 0);

    int audioStream=-1;
    for(i=0; inb_streams; i++)
       if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_AUDIO) {
           audioStream=i;
           break;
       }
    if(audioStream==-1)
    return -1;

    pCodecCtx=pFormatCtx->streams[audioStream]->codec;

    pCodec=avcodec_find_decoder(pCodecCtx->codec_id);
    if(pCodec==NULL) {
       fprintf(stderr, "Unsupported codec!\n");
       return -1; // Codec not found
    }

    if(avcodec_open2(pCodecCtx, pCodec, &optionsDict)<0)
    return -1;

    pFrame=avcodec_alloc_frame();
    packet.data = NULL;
    packet.size = 0;

    while(av_read_frame(pFormatCtx, &packet)>=0) {
       int got_frame = 0;
       int ret = avcodec_decode_audio4(pCodecCtx, pFrame, &got_frame, &packet);
       if(got_frame && packet.stream_index==audioStream) {
           //save result but how???
       }
       av_free_packet(&packet);
    }
    av_free(pFrame);
    avcodec_close(pCodecCtx);
    avformat_close_input(&pFormatCtx);
    return 0;
    }
  • concatdec : change data type to suppress warning about limited range of data type...

    17 décembre 2012, par Michael Niedermayer

    concatdec : change data type to suppress warning about limited range of data type...

  • FFMPEG fails to find any files matching the regexp

    11 avril 2013, par dawe134

    I want to convert sequence of 40 images to a video. The problem is that ffmpeg could not find any of the inputs images matching the regexp in the command. What am I doing wrong please ?

    I ran the following commands :

    > ffmpeg -f image2 -i "img%0d.jpg" -vcodec mpeg4 -y -v "verbose" 07_seq_wire.avi
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release.    Please use avconv instead.
    img%0d.jpg: No such file or directory


    > ls -l
    -rw-r--r-- 1 david david  69812 Apr 11 01:54 img01.jpg
    -rw-r--r-- 1 david david  70858 Apr 11 01:54 img02.jpg
    -rw-r--r-- 1 david david  71481 Apr 11 01:54 img03.jpg
    -rw-r--r-- 1 david david  71528 Apr 11 01:54 img04.jpg
    -rw-r--r-- 1 david david  71470 Apr 11 01:54 img05.jpg
    -rw-r--r-- 1 david david  71534 Apr 11 01:54 img06.jpg
    -rw-r--r-- 1 david david  70908 Apr 11 01:54 img07.jpg
    -rw-r--r-- 1 david david  70633 Apr 11 01:54 img08.jpg
    -rw-r--r-- 1 david david  70059 Apr 11 01:54 img09.jpg
    -rw-r--r-- 1 david david  70021 Apr 11 01:54 img10.jpg
    -rw-r--r-- 1 david david  69726 Apr 11 01:54 img11.jpg
    -rw-r--r-- 1 david david  70896 Apr 11 01:54 img12.jpg
    -rw-r--r-- 1 david david  72123 Apr 11 01:54 img13.jpg
    -rw-r--r-- 1 david david  72605 Apr 11 01:54 img14.jpg
    -rw-r--r-- 1 david david  73501 Apr 11 01:54 img15.jpg
    -rw-r--r-- 1 david david  73743 Apr 11 01:54 img16.jpg
    -rw-r--r-- 1 david david  74401 Apr 11 01:54 img17.jpg
    -rw-r--r-- 1 david david  74697 Apr 11 01:54 img18.jpg
    -rw-r--r-- 1 david david  75371 Apr 11 01:54 img19.jpg
    -rw-r--r-- 1 david david  74802 Apr 11 01:54 img20.jpg
    -rw-r--r-- 1 david david  74802 Apr 11 01:55 img21.jpg
    -rw-r--r-- 1 david david  75371 Apr 11 01:55 img22.jpg
    -rw-r--r-- 1 david david  74697 Apr 11 01:55 img23.jpg
    -rw-r--r-- 1 david david  74401 Apr 11 01:55 img24.jpg
    -rw-r--r-- 1 david david  73743 Apr 11 01:55 img25.jpg
    -rw-r--r-- 1 david david  73501 Apr 11 01:55 img26.jpg
    -rw-r--r-- 1 david david  72605 Apr 11 01:55 img27.jpg
    -rw-r--r-- 1 david david  72123 Apr 11 01:55 img28.jpg
    -rw-r--r-- 1 david david  70896 Apr 11 01:55 img29.jpg
    -rw-r--r-- 1 david david  69726 Apr 11 01:55 img30.jpg
    -rw-r--r-- 1 david david  70021 Apr 11 01:55 img31.jpg
    -rw-r--r-- 1 david david  70059 Apr 11 01:55 img32.jpg
    -rw-r--r-- 1 david david  70633 Apr 11 01:55 img33.jpg
    -rw-r--r-- 1 david david  70908 Apr 11 01:55 img34.jpg
    -rw-r--r-- 1 david david  71534 Apr 11 01:55 img35.jpg
    -rw-r--r-- 1 david david  71470 Apr 11 01:55 img36.jpg
    -rw-r--r-- 1 david david  71528 Apr 11 01:55 img37.jpg
    -rw-r--r-- 1 david david  71481 Apr 11 01:55 img38.jpg
    -rw-r--r-- 1 david david  70858 Apr 11 01:56 img39.jpg
    -rw-r--r-- 1 david david  69812 Apr 11 01:56 img40.jpg

    Thanks for any help !