Hi,
I try to insert image picture to m4b as cover of the file. I can read picture like this: QPixmap pixmap; if ( avformat_find_stream_info( fmt_ctx, nullptr ) >= 0 ) { for ( int i = 0; i < fmt_ctx->nb_streams; ++i ) { AVStream *stream = fmt_ctx->streams[ i ]; if ( stream->disposition & AV_DISPOSITION_ATTACHED_PIC ) { AVPacket pkt = stream->attached_pic; pixmap = QPixmap::fromImage( QImage::fromData( ( uchar* )pkt.data, pkt.size ) ); break; } } } I change my pixmap for example. But I can't find information how I can insert new picture in a new AVFormatContext: Best regards, Vladislav Gavrilov _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".