> From: [email protected]
> To: [email protected]
> Date: Wed, 15 Jul 2015 18:19:18 -0400
> Subject: [Libav-user] how to change x264 parameters after opening the encoder 
> (avcodec_open2)
> 
> 
> I decode and re encode I frame of a movie  file.
> 
> when encode I frame, each I frame need a different qp value. 
> How can qp parameter change after
> avcodec_open2(CodecCtx, codec, &options) )     ? 
> 
> av_dict_set( &options, "qp"   ,  x     , 0 )  is used to set qp.
> 
> 
> If x264 parameter can't change after avcodec_open2 function, 
> Can I close this encoder and open a new x264 encoder with a new parameter for 
> next I frame?
> 
> Thanks
> 
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user

From the documentation of avcodec_open2Always call this function before using 
decoding routines .
So you can't change the parameters after calling the avcodec_open2
For the second question, of course you can close one and reopen another one.    
                                  
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to