I'm trying to use Google Colab to do something. Particularly I want to use ffmpeg package to create a video from a image.
But ffmpeg doesn't seems to be working fine.
The output of this (in the last block) was supposed to be 400 400
instead of 0 0
frame_width = int(cap.get(3))
frame_height = int(cap.get(4))
print frame_width, frame_height
The same code is working fine with Azure notebooks and also on my local machine.
What can be the reason for it? And how to rectify that?
You need to install ffmpeg
first:
!apt install ffmpeg