ffmpeg record change color
问题 Im try record video from screen, for write to video file im use ffmpeg(libavcodec). But on result i see other colors, my example: AVCodec *codec; AVCodecContext *c= NULL; AVStream *video_stream; AVOutputFormat *out; AVFormatContext *out_context; int i, ret, x, y, got_output; AVFrame *frame; AVPacket pkt; uint8_t endcode[] = { 0, 0, 1, 0xb7 }; printf("Encode video file %s\n", filename); out = av_guess_format(NULL, filename, NULL); if (!out) { std::cout << "Could not deduce output format from