Mpeg-4 AAC Tags Cannot Be Edited

I have a series of videos from various sources which I'd like to tag using Mp3tag. Most videos can be tagged just fine, but there are a few videos which show an error message that the file cannot be opened for writing. These videos are always MPEG-4 AAC files. All other videos, including those with MPEG-4 AAC Lavf encoding, can be edited. The non-Lavf MP4 AACs can be tagged using Windows Explorer or Tagscanner, but not Mp3tag. This leads me to believe the problem is with Mp3tag, not with the files themselves.

OS: Windows 10
Mp3tag version: v3.08
Expected behavior: Mp3tag should be able to tag MP4 videos, including those with non-Lavf AAC encoding.
Actual behavior: MP3tag is unable to write tags to MP4 videos with non-Lavf AAC encoding, stating that the file cannot be opened for writing. Temporary files remain in place. Other tag editors can tag the problem files, and Mp3tag can work with Lavf encoding.

Screenshot 2021-08-01 163017

Screenshot 2021-08-01 163220

Screenshot 2021-08-01 163705

Can you check the files via foobar2000 "Utitlities → Verify integrity" from the right-click context menu and see if it reveals any details?

Sorry, I should have read that topic before posting! Please take a look at the foobar2000 validation below. "Video.mp4" fails validation due to a truncated object at a specific byte marker. Apparently Mp3tag can't handle that, but Tagscanner makes do (see "Video Tagged.mp4" with the same error).

"Video 2.mp4" shows a few corrupted frames, but apparently Mp3tag can still work with that.

I have also included "Video 3.mp4" with the same AAC non-Lavf encoding as Video.mp4, but Video 3 passes validation in foobar2000 and can be tagged by Mp3tag.

Long story short, the truncated object in Video.mp4 seems to be the one problem that Mp3tag can't handle. I'm not sure if support for this type of error is within the scope of Mp3tag, but for the record all three video files are fully playable by VLC and taggable by both Tagscanner and Windows Explorer. In any event, thanks for looking into this. I can make do with Tagscanner for these occasional problem files if I must.

Item: "C:\Users\Joe\Downloads\Video 2.mp4"
Warning: Reported length is inaccurate : 15:50.385208 vs 15:49.930667 decoded
Error: Decoding error: Unsupported format or corrupted file, frame: 12828 of 22275
Error: Decoding error: ffmpeg: patch welcome, frame: 12829 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12830 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12831 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12832 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12833 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12834 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12835 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12836 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12837 of 22275
Error: Decoding error: Unsupported format or corrupted file, frame: 12838 of 22275

Item: "C:\Users\Joe\Downloads\Video Tagged.mp4"
Error: Object "«G¸O" at 1052522419 bytes is truncated.

Item: "C:\Users\Joe\Downloads\Video.mp4"
Error: Object "«G¸O" at 1052522419 bytes is truncated.

Item: "C:\Users\Joe\Downloads\Video 3.mp4"
No problems found.


3 items could not be correctly decoded.

List of undecodable items:
"C:\Users\Joe\Downloads\Video 2.mp4"
"C:\Users\Joe\Downloads\Video Tagged.mp4"
"C:\Users\Joe\Downloads\Video.mp4"