Advertisement
Nickpips

Untitled

Mar 9th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2. set_opt(encoder, "nonref_p", "1");
  3. set_opt(encoder, "preset", "llhp");
  4. set_opt(encoder, "rc", "cbr_ld_hq");
  5. set_opt(encoder, "zerolatency", "1");
  6. set_opt(encoder, "delay", "0");
  7.  
  8. void set_opt(encoder_t *encoder, char* option, char* value) {
  9. int ret = av_opt_set(encoder->context->priv_data, option, value, 0);
  10. if (ret < 0) {
  11. mprintf("Could not av_opt_set %s to %s!", option, value);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement