diff -Naur a/src/Image/Image_VideoRecorder.cxx b/src/Image/Image_VideoRecorder.cxx --- a/src/Image/Image_VideoRecorder.cxx 2017-10-04 14:26:07.000000000 +0200 +++ b/src/Image/Image_VideoRecorder.cxx 2017-10-04 14:26:07.000000000 +0200 @@ -276,7 +276,7 @@ // some formats want stream headers to be separate if (myAVContext->oformat->flags & AVFMT_GLOBALHEADER) { - aCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER; + aCodecCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; } return Standard_True; #else @@ -449,8 +449,7 @@ AVPacket aPacket; memset (&aPacket, 0, sizeof(aPacket)); av_init_packet (&aPacket); - if ((myAVContext->oformat->flags & AVFMT_RAWPICTURE) != 0 - && !theToFlush) + if (0) { // raw video case - directly store the picture in the packet aPacket.flags |= AV_PKT_FLAG_KEY;