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

2017-02-05 Thread sea
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

[FFmpeg-devel] avcodec_open2 return -1

2016-12-21 Thread sea
In transcoding project of LeiXiaoHua(demo of usage of filters), if I use media file with h264 video stream as input file, the function avcodec_open2 will return -1. Media file with video stream in other format, such as mpeg4, mjpeg return 0 (OK). Why ? Someone meets the same problem? _