/** * * @param p */ void call_videocodec(char *p) { int ix=videoEncoder6_GetIndexFromName(p); if(ix!=-1) { videoEncoder6_SetCurrentEncoder(ix); UI_setVideoCodec(ix); } }
/** * \fn setVideoCodecProfile * \brief set a profile for the given video codec * @param codec * @param profile * @return */ int ADM_Composer::setVideoCodecProfile(const char *codec, const char *profile) { int idx = videoEncoder6_GetIndexFromName(codec); if (idx == -1) { ADM_error("No such encoder :%s\n", codec); return false; } // Select by index videoEncoder6_SetCurrentEncoder(idx); UI_setVideoCodec(idx); if (profile) { ADM_info("Setting profile %s\n",profile); return videoEncoder6_SetProfile(profile); } return true; }
int ADM_Composer::setVideoCodec(const char *codec, CONFcouple *c) { int idx = videoEncoder6_GetIndexFromName(codec); if (idx == -1) { ADM_error("No such encoder :%s\n", codec); return false; } // Select by index videoEncoder6_SetCurrentEncoder(idx); UI_setVideoCodec(idx); if (c) { bool r = videoEncoder6_SetConfiguration(c, true); delete c; return r; } return true; }