[FFmpeg-devel] How to set avcodec_open2 to set ((MpegEncContext *)(avctx->priv_data))->fixed_qscale = 1?

Michael Niedermayer michael at niedermayer.cc
Sun Feb 5 15:44:06 EET 2017

On Sun, Feb 05, 2017 at 05:29:33PM +0800, sea wrote:
> Hi ,
> I'm trying to push a stream to a server with ffmpeg.  I debugged the ffmpeg code, and found that when avcode_open2 returned, the  ((MpegEncContext *)(avctx->priv_data))->fixed_qscale = 1.  That to say, when video stream was handled,  certain offset of  avctx->priv_data pointer (just fixed_qscale field) was set to 1.  
> I tried to find which parameter would lead to this result, but failed.  If  fixed_qscale was not set to 1,  program will not run to "Error evaluating rc_eq "<null>"" problem.  Can someone give an advice?

have you looked at doc/examples ?
it explains how to use both encoders and decoders

I dont really understand what you talk about or what you are trying to
do but iam guessing you try to use a decoder or encoder and you use it
wrong, which may or may not be the case, you provide too little

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170205/c75226b8/attachment.sig>

More information about the ffmpeg-devel mailing list