Solved! I used as example method pjmedia_vid_dev_refresh. And I achieved buffer :-) Does anybody know how to change YUV2 color space to RGB24 during streaming. For preview I do this correctly in method(for color bar device) cbar_factory_default_param line pj_memcpy(¶m->fmt, &di->info.fmt[4], sizeof(param->fmt)); 0=YUV2, 4 = RGB24