diff --git a/ffmpeg.c b/ffmpeg.c
index 756c809c2872b6461fccbefb3881e00e01d82b24..238109d94c7ae7f0d643022a8ceae59f43e23238 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1543,6 +1543,10 @@ static int av_encode(AVFormatContext **output_files,
                 codec->block_align= icodec->block_align;
                 break;
             case CODEC_TYPE_VIDEO:
+                if(using_vhook) {
+                    fprintf(stderr,"-vcodec copy and -vhook are incompatible (frames are not decoded)\n");
+                    exit(1);
+                }
                 codec->pix_fmt = icodec->pix_fmt;
                 codec->width = icodec->width;
                 codec->height = icodec->height;