I am using OpenCV to display a video my code is as
#include
#include
#include
#include
to clear up some confusion here:
the error means, that it could not find or open your Video file. (either file not found, or codec not present)
"/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553" is just the location of the code, where the error is thrown.
(and please, don't use the deprecated c-api any longer, they stopped developing it like 5 years ago, switch over to the c++ one. )