Index: libmpcodecs/ve_lavc.c =================================================================== --- libmpcodecs/ve_lavc.c (revision 23299) +++ libmpcodecs/ve_lavc.c (working copy) @@ -566,6 +566,7 @@ lavc_venc_context->b_sensitivity = lavc_param_b_sensitivity; lavc_venc_context->level = lavc_param_level; + mux_v->imgfmt = lavc_param_format; switch(lavc_param_format) { case IMGFMT_YV12: Index: libmpdemux/muxer.h =================================================================== --- libmpdemux/muxer.h (revision 23299) +++ libmpdemux/muxer.h (working copy) @@ -40,6 +40,7 @@ BITMAPINFOHEADER *bih; // in format int encoder_delay; // in number of frames int decoder_delay; // in number of frames + int imgfmt; // mpeg specific: size_t ipb[3]; // sizes of I/P/B frames // muxer of that stream Index: libmpdemux/muxer_lavf.c =================================================================== --- libmpdemux/muxer_lavf.c (revision 23299) +++ libmpdemux/muxer_lavf.c (working copy) @@ -240,6 +240,7 @@ if(ctx->codec_id <= 0 || force_fourcc) ctx->codec_tag= stream->bih->biCompression; mp_msg(MSGT_MUXER, MSGL_INFO, "VIDEO CODEC ID: %d\n", ctx->codec_id); + ctx->pix_fmt = imgfmt2pixfmt(stream->imgfmt); ctx->width = stream->bih->biWidth; ctx->height = stream->bih->biHeight; ctx->bit_rate = 800000;