> url_open_dyn_packet_buf(&oc->pb, max_packet_size); > av_write_frame(oc, &pkt); > int len = url_close_dyn_buf(&oc->pb, (unsigned char > **)(&pb_buffer)); > fout.write(pb_buffer, len); Solved, thanks anyway. Sorry for the noise. Regards Thomas