# Very slow writing tags to video files on fileserver

**URL:** https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493
**Category:** Support
**Created:** [December 23, 2022, 7:27pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493 "2022-12-23T19:27:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mikek13](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mikek13](https://community.mp3tag.de/u/mikek13)
#### Post date: [December 23, 2022, 7:27pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493/1 "2022-12-23T19:27:41Z")

</div>

I'm trying to update some tags on videos on my fileserver - each write operation is taking over two minutes. I'm running v3.18.  
Does MP3Tag download the file and write it back? Even so, it seems to be taking a long time.

Music files, on the same server, are updated instantaneously - although of course we're talking a few Mb versus a couple of Gb file size.

Any ideas?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [December 23, 2022, 9:15pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493/2 "2022-12-23T21:15:08Z")

</div>

Maybe this points can help you identify the issue(s):

> [@Batch editing performance issues on NAS](https://community.mp3tag.de/t/batch-editing-performance-issues-on-nas/56873/2):
>
> Slow access because ... network connections are the almost the slowest way to access a lot of files, other processes like indexers, players, anti-virus programs could block the files for some time, padding is not big enough so the files have to be rewritten, Windows Defender slows down the access, see e.g. [Windows Defender - Speed of loading files in MP3Tag](https://community.mp3tag.de/t/windows-defender-speed-of-loading-files-in-mp3tag/47784) File sizes vary (e.g. is bigger for some files than for others) and together with insufficient padding lead to re-writing th…

---

<div class="post-metadata">

### Author: ![AreDigg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@AreDigg](https://community.mp3tag.de/u/AreDigg)
#### Post date: [December 25, 2022, 3:48pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493/3 "2022-12-25T15:48:22Z")

</div>

Remember that sometimes the tags are written at the end of the file. There are ways to make them “streaming”-friendly by moving it to the beginning. It helps in updating as well as long as you don’t extend beyond the allocated space.

---

<div class="post-metadata">

### Author: ![MP3Freak\_Peter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/c68b51/32.png) [@MP3Freak\_Peter](https://community.mp3tag.de/u/MP3Freak_Peter)
#### Post date: [December 28, 2022, 7:35pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493/4 "2022-12-28T19:35:23Z")

</div>

depends little bit on reading/writing blocksize, maybe florian could answer that.  
Specialy on network, small blocks can decrease writing performance.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2022, 7:56pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493/5 "2022-12-28T19:56:20Z")

</div>

It's usually the files that need to be rewritten via a temporary file that cause slow writing operations.

This happens when reserved space for metadata changes is not sufficiently large enough to hold the addition (e.g., when adding cover art). In this case, the whole file content needs to be transferred to a temporary file which is renamed back.

---

<div class="post-metadata">

### Author: ![MP3Freak\_Peter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/c68b51/32.png) [@MP3Freak\_Peter](https://community.mp3tag.de/u/MP3Freak_Peter)
#### Post date: [December 28, 2022, 8:21pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493/6 "2022-12-28T20:21:37Z")

</div>

I guess new temporary file is written on network (location of original file) and renamed from .tmp to .whateverextensionis and the end of process.

But my question was the following:

Wenn you are rebuild tag

- do you rebuild tag directly on filestream (causing many single small file i/o operations)  
or

- do you build tag to an memorystream and do a filestream.CopyFrom(memorystream) or BlockWrite() when you finished rebuilding tag (takes more memory but one single big write operation is much faster on network)

- do you copy file content blockwise from source to tmp file? how big is block size? should be bigger than 1mb depending on filesize \> 10mb

That effect is visible on local drives too, but much much less.  
On Network (1GB cable based) you can measure the difference cause every single file operation causing a few network requests.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2022, 8:35pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493/7 "2022-12-28T20:35:13Z")

</div>

> [@MP3Freak\_Peter](#):
>
> I guess new temporary file is written on network (location of original file) and renamed from .tmp to .whateverextensionis and the end of process.

Yes, I'm using whatever `GetTempFileName()` returns for the given file name. If it's on a network share, Mp3tag has to read the entire file and write it back to the network destination. This usually has a far bigger impact than any specific means on how changes are written on a I/O level.  
I'm not saying that they don't have any effect, but it's most likely not was the OP is observing.

Edit: I don't have a generic answer on your other question. I'm using all three different approaches depending on the file format, file size, and the point in time when I've implemented the respective format.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:30pm UTC](https://community.mp3tag.de/t/very-slow-writing-tags-to-video-files-on-fileserver/59493/8 "2026-02-09T12:30:00Z")

</div>


