# New metatag in output file: Handler Vendor ID: Apple

**URL:** <https://forum.opencv.org/t/new-metatag-in-output-file-handler-vendor-id-apple/18664>\
**Category:** Python\
**Tags:** videoio\
**Created:** [September 4, 2024, 5:27am UTC](https://forum.opencv.org/t/new-metatag-in-output-file-handler-vendor-id-apple/18664 "2024-09-04T05:27:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leodatavinci](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@leodatavinci](https://forum.opencv.org/u/leodatavinci)\
**Post date:** [September 4, 2024, 5:27am UTC](https://forum.opencv.org/t/new-metatag-in-output-file-handler-vendor-id-apple/18664/1 "2024-09-04T05:27:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [September 4, 2024, 10:49am UTC](https://forum.opencv.org/t/new-metatag-in-output-file-handler-vendor-id-apple/18664/2 "2024-09-04T10:49:21Z")

</div>

how do you even get this information ?

> [@leodatavinci](#):
>
> I use an ExIf metadata reader

which is ? it’s probably making this up, similar to DPI and all other exif sillyness…

just to make sure, please specify, which backends are used for reading / writing  
(ffmpeg ? gstreamer ?)

opencv for sure does not write _any_ exif tags to videos  
(or even images)

---

<div class="post-metadata">

**Author:** ![leodatavinci](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@leodatavinci](https://forum.opencv.org/u/leodatavinci)\
**Post date:** [September 5, 2024, 3:02am UTC](https://forum.opencv.org/t/new-metatag-in-output-file-handler-vendor-id-apple/18664/3 "2024-09-05T03:02:11Z")

</div>

Im using **ExifTool** by **Phil Harvey**. [https://exiftool.org/](https://exiftool.org/)

Tried it also with [https://exif.tools/](https://exif.tools/). The results are the same. Always the same…Handler Vendor ID: Apple

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [September 5, 2024, 5:01am UTC](https://forum.opencv.org/t/new-metatag-in-output-file-handler-vendor-id-apple/18664/4 "2024-09-05T05:01:00Z")

</div>

i’m still quite sure, they ‘invent’ this meta data, if it’s not present in the actual file.

still, why is this relevant for you ? it’s _really_ not needed for computer-vision.

last, opencv is quite the wrong choice to recode video files, rather learn to use ffmpeg or gstreamer directly, please.
