I have video file and want to create one csv file which content every frame unix timestamp of video as every row of csv file??
I am using cv2 and moviepy package how can I get it.
import moviepy.editor as mpy
vid = mpy.VideoFileClip('DJI_0002.MOV')
for timestamp, raw_img in vid.iter_frames(with_times=True):
print(timestamp)