Hello, dear community.
My target today is to create caption of video for Instagram reel. So, one way to do is to capture images from video and create description of them. Based on description I can add Chat-GPT created caption for Instagram Reel.
What is the problem?
My problem is to capture image from video.
What have you tried so far?
I tried use Chat-GPT 4o, however it is not suitable for this case.
What module could be used for capture image from video from Google drive?
I’m using a python script for that. I just feed it the video and tell it which frame to pull for the caption.
I have not tried the code app and to see if it will work for this, mine is hosted on pythonanywhere. You can of course use a Java or Javascript alternative.
My script wont work word for word for you, since it gets the video from a clickup task attachment and returns the cover image there.
I’m using the cv2 library: cv2.VideoCapture(video_path) opens the video and then cv2.imencode(“.png”, frame) converts the specific frame and returns it in a png format.
But the rest will depend on your flow. Where the script is hosted, where it is getting the video from, where it is keeping it for processing, where you want the png returned.