Guest User

Untitled

a guest
Aug 15th, 2015
191
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mCodecContext->bit_rate = 5000000;
  2. mCodecContext->width = 640;
  3. mCodecContext->height = 360;
  4. mCodecContext->pix_fmt = PIX_FMT_YUV420P;
  5. mCodecContext->time_base =AVRational{1,31};
  6. mCodecContext->gop_size = 10;
  7. mCodecContext->max_b_frames = 1;
  8. int ret= avcodec_open2(mCodecContext, mCodec, NULL);
RAW Paste Data