If you have a movie file and you need to extract frame (packet) from it, it's simply a matter of writing:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// avformat_open_input(AVFormatContext **ps, const char *filename, AVInputFormat *fmt, AVDictionary **options); ... AVPacket packet; av_read_frame(formatContext, &packet); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// But what if I don't have the movie file but only unparsed, raw packet data? These raw packet data are the same as the raw data contained into the movie file but I don't access them throughtavformat_open_input and therefore I can't use av_read_frame so FFmpeg doesn't parse them. How can I parse this raw data in order to build the corresponding AVPacket? I need to obtain an AVPacket identical to the ones provided by av_read_frame. -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it: http://www.email.it/f Sponsor: Sviluppa il tuo business e trova nuovi clienti con il Direct Email Marketing di Email.it, la strategia vincente per rafforzare la notorieta'della tua impresa! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11845&d=20111107 -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Incrementa la visibilita' della tua azienda con le campagne di email marketing di Email.it Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11846&d=7-11 _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user