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
videocapture opencv (ubuntu 13.10, opencv 2.4.8)
-
25-06-2023 - |
Pregunta
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:
- videofile working and in correct path
- rebooting
- 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
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow