문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top