# Does the Mapillary Uploader supports HEVC videos?

**URL:** https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229
**Category:** Uncategorized
**Created:** [July 26, 2023, 8:15pm UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229 "2023-07-26T20:15:39Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![TheWonderfulTartifle](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/thewonderfultartifle/32/71580_2.png) [@TheWonderfulTartifle](https://forum.mapillary.com/u/TheWonderfulTartifle)
#### Post date: [July 26, 2023, 8:15pm UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/1 "2023-07-26T20:15:39Z")

</div>

Quick question, to know if I can disable the H.264 recording on my GoPro

Edit: Another quick question, in these settings on GoPro cams, what are the best when shotting photos/videos for Mapillary?  
Sharpness : High, Medium, Low  
Color: Native, GoPro  
White balance: Native, Auto

---

<div class="post-metadata">

### Author: ![Yaro](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/yaro/32/71532_2.png) [@Yaro](https://forum.mapillary.com/u/Yaro)
#### Post date: [July 28, 2023, 11:33am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/2 "2023-07-28T11:33:54Z")

</div>

@nikola do you know this?

BR, Yaro

---

<div class="post-metadata">

### Author: ![nikola](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@nikola](https://forum.mapillary.com/u/nikola)
#### Post date: [July 28, 2023, 11:52am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/3 "2023-07-28T11:52:09Z")

</div>

I’m not sure, I think @tao will know more about our video support.

---

<div class="post-metadata">

### Author: ![bob3bob3](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/bob3bob3/32/68393_2.png) [@bob3bob3](https://forum.mapillary.com/u/bob3bob3)
#### Post date: [July 29, 2023, 10:44am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/4 "2023-07-29T10:44:32Z")

</div>

I’d suggest you stay with H.264. H.265/HEVC is a better CODEC only in the video sense. There is more interframe distortion evident when the videos are converted to images. ie the end images “look gluggy” similar to the degradation one gets from lowering JPG quality.

Having said that I did trial ffmpeg on both H.264 and H.265 BlackVue vids a few years ago. H.265 worked fine, but it used far more processing time (like \>5x) to extract to the final JPGs. ffmpeg is used by the mapillary\_tools CLI and I assume also by the Desktop Uploader so I suggest it would work.

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [July 31, 2023, 11:57am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/5 "2023-07-31T11:57:26Z")

</div>

Yes, HEVC videos should work I believe. Try uploading them using the desktop uploader beta and let us know if you have any problems: [https://forum.mapillary.com/t/try-new-video-format-support-exiftool-in-the-the-desktop-uploader-beta/](https://forum.mapillary.com/t/try-new-video-format-support-exiftool-in-the-the-desktop-uploader-beta/)

In terms of the other settings, I would leave them at the defaults, but we haven’t done extensive testing to see if they make a difference (my hunch is that the difference would be minor).

---

<div class="post-metadata">

### Author: ![evilbunny](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/evilbunny/32/71835_2.png) [@evilbunny](https://forum.mapillary.com/u/evilbunny)
#### Post date: [August 1, 2023, 3:37am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/6 "2023-08-01T03:37:34Z")

</div>

What about HEIC compressed images, my uplink is slow

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [August 1, 2023, 7:39am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/7 "2023-08-01T07:39:56Z")

</div>

I’m not sure those will work, but try uploading one and let us know what happens!

---

<div class="post-metadata">

### Author: ![evilbunny](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/evilbunny/32/71835_2.png) [@evilbunny](https://forum.mapillary.com/u/evilbunny)
#### Post date: [August 1, 2023, 1:08pm UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/8 "2023-08-01T13:08:16Z")

</div>

> [@Does the Mapillary Uploader supports HEVC videos?](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/7):
>
> I’m not sure those will work, but try uploading one and let us know what happens!

I’m guessing this would need support server side if only to convert them to jpeg.

I’ve been doing a little testing this afternoon and found out the following:

4MB JPEG converts to a 1.2MB HEIC with no visible loss of quality or extra jpeg like artifacts.

4075924 VID\_20230731\_150718\_00\_011\_normal-000001.jpg  
1153213 test.heic  
I used the following command, which seems to copy all the exit info too:  
heif-enc -q 35 VID\_20230731\_150718\_00\_011\_normal-000001.jpg -o test.heic

> **[VID\_20230731\_150718\_00\_011\_normal-000001.jpg](https://drive.google.com/file/d/1zfdAdev0FvHEjF_OX8jL8zAoboFt65Ym/view?usp=sharing)**
>
> Google Drive file.

> **[test.heic](https://drive.google.com/file/d/1iD2VfXJ_-f5a8MCy3K3Tpab2dVmMSacK/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [August 2, 2023, 9:26am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/9 "2023-08-02T09:26:03Z")

</div>

Cool, thanks for sharing! Did you also try uploading these to Mapillary?

---

<div class="post-metadata">

### Author: ![evilbunny](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/evilbunny/32/71835_2.png) [@evilbunny](https://forum.mapillary.com/u/evilbunny)
#### Post date: [August 2, 2023, 9:49am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/10 "2023-08-02T09:49:55Z")

</div>

```auto
# mapillary_tools process_and_upload tmp/
Extracting geotags from images: 0images [00:00, ?images/s]
Extracting GPS tracks from videos: 0videos [00:00, ?videos/s]
Verifying image EXIF writing: 0images [00:00, ?images/s]
2023-08-02 19:49:18,941 - INFO - Nothing uploaded. Bye.

```

---

<div class="post-metadata">

### Author: ![evilbunny](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/evilbunny/32/71835_2.png) [@evilbunny](https://forum.mapillary.com/u/evilbunny)
#### Post date: [August 2, 2023, 10:29am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/11 "2023-08-02T10:29:20Z")

</div>

I was hoping for a simple change to look for .heic files, but altering utils.py  
./lib/python3.9/dist-packages/mapillary\_tools/utils.py: return path.suffix.lower() in (“.jpg”, “.jpeg”, “.tif”, “.tiff”, “.pgm”, “.pnm”, “.heic”, “.heif”)

I get the following:

```auto
# mapillary_tools process_and_upload tmp/
Extracting geotags from images: 0%| | 0/1 [00:00<?, ?images/s]2023-08-02 20:25:41,117 - WARNING - Unknown error reading EXIF from image tmp/VID_20230731_150718_00_011_normal-000001.heic
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/mapillary_tools/geotag/geotag_from_exif.py", line 32, in to_description
    exif = ExifRead(image_path)
  File "/usr/local/lib/python3.9/dist-packages/mapillary_tools/exif_read.py", line 123, in __init__
    self.tags = exifread.process_file(fp, details=details, debug=True)
  File "/usr/lib/python3/dist-packages/exifread/ __init__.py", line 242, in process_file
    offset, endian = heic.find_exif()
  File "/usr/lib/python3/dist-packages/exifread/heic.py", line 255, in find_exif
    assert self.get(exif_tiff_header_offset)[-6:] == b'Exif\x00\x00'
AssertionError
Extracting geotags from images: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 950.01images/s]
Extracting GPS tracks from videos: 0videos [00:00, ?videos/s]
Verifying image EXIF writing: 0images [00:00, ?images/s]
2023-08-02 20:25:41,120 - INFO - 1 image(s) read in total
2023-08-02 20:25:41,120 - ERROR - 1 image(s) failed due to AssertionError
2023-08-02 20:25:41,120 - ERROR - MapillaryProcessError: Failed to process 1 files. To skip these errors, specify --skip_process_errors

```

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [August 2, 2023, 10:42am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/12 "2023-08-02T10:42:18Z")

</div>

Got it, thanks for testing! We can look at adding HEIC support as a backlog item (particularly if more cameras/devices start using it)

---

<div class="post-metadata">

### Author: ![evilbunny](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/evilbunny/32/71835_2.png) [@evilbunny](https://forum.mapillary.com/u/evilbunny)
#### Post date: [August 2, 2023, 10:53am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/13 "2023-08-02T10:53:26Z")

</div>

> [@boris](#):
>
> particularly if more cameras/devices start using it

Isn’t it the default for iPhones since iOS 11?

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [August 2, 2023, 11:02am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/14 "2023-08-02T11:02:26Z")

</div>

Yes, I think that’s right. I’m mostly referring to action cameras, 360 cameras, dash-cameras because we don’t receive many images from iPhone’s native camera - almost all iPhone images come from the Mapillary iOS app.

---

<div class="post-metadata">

### Author: ![tao](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tao](https://forum.mapillary.com/u/tao)
#### Post date: [August 2, 2023, 8:44pm UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/15 "2023-08-02T20:44:21Z")

</div>

HEVC should be supported.

The image format HEIC is not supported yet. To upload HEIC photos, you can always export images as JPEGs or try some external tool converting them to JPEGs first.

---

<div class="post-metadata">

### Author: ![evilbunny](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/evilbunny/32/71835_2.png) [@evilbunny](https://forum.mapillary.com/u/evilbunny)
#### Post date: [August 3, 2023, 6:34am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/16 "2023-08-03T06:34:26Z")

</div>

> [@tao](#):
>
> The image format HEIC is not supported yet. To upload HEIC photos, you can always export images as JPEGs or try some external tool converting them to JPEGs first.

I do upload JPEGs but HEIC would be nice because the compression would make for faster uploads, as I wrote above my uplink is slow

---

<div class="post-metadata">

### Author: ![tao](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tao](https://forum.mapillary.com/u/tao)
#### Post date: [August 4, 2023, 7:03pm UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/17 "2023-08-04T19:03:35Z")

</div>

That’s good to know. Do you have the comparison between the two formats?

---

<div class="post-metadata">

### Author: ![evilbunny](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/evilbunny/32/71835_2.png) [@evilbunny](https://forum.mapillary.com/u/evilbunny)
#### Post date: [August 5, 2023, 8:03am UTC](https://forum.mapillary.com/t/does-the-mapillary-uploader-supports-hevc-videos/7229/18 "2023-08-05T08:03:48Z")

</div>

Scroll up, I posted a 360 JPEG and converted it to HEIC and it went from 4MB to 1.2MB with no noticeable loss of quality or JPEG like artifacts…
