Skip to content

Commit bdb9d60

Browse files
uses preset fast and new priv options key name
1 parent b5378f3 commit bdb9d60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

3_transcoding.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ int prepare_encoder(StreamingContext *sc, AVCodecContext *decoder_ctx, AVRationa
8080
sc->video_avcc = avcodec_alloc_context3(sc->video_avc);
8181
if (!sc->video_avcc) {logging("could not allocated memory for codec context"); return -1;}
8282

83-
av_opt_set(sc->video_avcc->priv_data, "preset", "slow", 0);
84-
av_opt_set(sc->video_avcc->priv_data, "x264opts", "keyint=60:min-keyint=60:scenecut=-1:force-cfr=1", 0);
83+
av_opt_set(sc->video_avcc->priv_data, "preset", "fast", 0);
84+
av_opt_set(sc->video_avcc->priv_data, "x264-params", "keyint=60:min-keyint=60:scenecut=-1:force-cfr=1", 0);
8585

8686
sc->video_avcc->height = decoder_ctx->height;
8787
sc->video_avcc->width = decoder_ctx->width;

0 commit comments

Comments
 (0)