Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (96)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (8645)

  • how to save ffprobe result in json

    22 août 2018, par user1083237

    i am using the following :
    ffprobe -i bunny.mp4 -v quiet -select_streams v -print_format json -show_entries frame=pkt_pts_time,pict_type|grep -B 1 pict_type=I

    so i can save time of index frames in json file.
    also the command works just fine without the :
    "print formqt json",
    it doesnt seem to work after i add it.
    i have tried "print format json " commands like :
    ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4"
    and it works just fine.
    what might be the problem ?

  • 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;
    }
  • How to save data of packet.data using ffmpeg && c language ?

    12 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’m able to extract the audio but now the problem is how to save it. I wrote the code given below but it’s giving me an segmentation fault. Thanks in advance.

    My code is :

    AVOutputFormat* fmt = av_guess_format("mp3", NULL, NULL);;
    AVFormatContext* oc = avformat_alloc_context();
    oc->oformat = fmt;
    avio_open2(&oc->pb, "test.mp3", AVIO_FLAG_WRITE,NULL,NULL);

    AVStream* stream=NULL;
    int cnt = 0;

    while(av_read_frame(pFormatCtx, &packet)>=0) { //pFormatCtx is input file format context.
       if (packet.stream_index==audioStream) {
       int got_frame = 0;
       if (avcodec_decode_audio4(pCodecCtx, pFrame, &got_frame, &packet) < 0) {
           fprintf(stderr, "Error encoding frame\n");
                   exit(1);
           }

           if(got_frame) {
           if (av_interleaved_write_frame(oc, &packet) < 0) {
                   printf(stderr, "Error writing frame\n");
                       exit(1);
                   }
           }
       }
       av_free_packet(&packet);
       av_init_packet(&packet);
    }