Domanda

when i tried to work with a video file i can't seem to open the file when i test on isOpen() it gives me thats it did not open

what did i already check:

  1. videofile working and in correct path
  2. rebooting
  3. reinstalling ffmpeg (with diferent configurations)

my code:

VideoCapture readVideo;
    readVideo.open(argv[1]);
    Mat frame;
    if(!readVideo.isOpened()){
        fprintf(stderr,"video niet geladen 0 \n");
        return 2;
    }

Example of the file i give in argv[1]: out.avi (mpeg4 codex) it works on someone elses setup so i know its not the code

È stato utile?

Soluzione

The problem seemed to be with the installation of the ffmpeg that wasn't compleetly linked to the instalation of opencv, installed bouth again and worked like a charm

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top