I have to process a video file and get wrid of the metadata. For this i use the cv2 python library to convert an input file to a new mp4 video. I use an ExIf metadata reader and have noticed that the output files always have this metadata tag Handler Vendor ID: Apple
This tag does not exist in the input file. I have tried my scirpt on several machines and always get an output that contains this metatag. Whats the reason for this? Is there a Apple software component used in the open cv library?
import cv2
Open a video file
cap = cv2.VideoCapture(r"C:\Users\MrX\OneDrive Ltd\Desktop\documents\20240904_114857.mp4")
Set up the video writer with the same properties as the original
fourcc = cv2.VideoWriter_fourcc(*‘mp4v’)
output_file_path = r"C:\Users\MrX\OneDrive\documents\video6.mp4"
out = cv2.VideoWriter(output_file_path, fourcc, 20.0, (int(cap.get(3)), int(cap.get(4))))
while cap.isOpened():
ret, frame = cap.read()
if ret:
# Write the frame to the new video file
out.write(frame)
else:
break