Hi, avcodec_open() is returning -1 when I try to open the MJPEG encoder. > However, avcodec_open() succeeds when creating the MPEG-4 encoder with the > same context settings. > MJPEG works with full-range YUV formats that named as PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P. Developers say that these formats are deprecated and special range flag should be used instead of dedicated pixel formats but I'm not sure that this is already done.
Most other codecs (like MPEG4) works with compressed-range YUV formats like PIX_FMT_YUV420P. Thats why your code probably wrong. By the way FFmpeg often show error description in console output. ----------------------------------------------- Kirill Gavrilov, Software designer. <[email protected]>
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
