News for hackers. Stuff that matters.
Re:Username ending with MIME type format is not allowed by scblzn on Wednesday September 15, 2021 @01:57AM (#28535739)
Hello,

I’m the author of the issue on Gitlab (small world, isn’t it ?)

Yes the message is confusing and I agree that .mov isn’t a MIME type but I was merely reporting the error message shown ( plus, they added .mov in their list of file types and had aliased it to .mp4 format, please see: https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/in... )

Re:Username ending with MIME type format is not allowed by codetrotter on Wednesday September 15, 2021 @06:57AM (#28537555)
> they added .mov in their list of file types and had aliased it to .mp4 format

That’s weird. Why’d they do that. They should make a separate entry for mov and associate it with video/quicktime

Guess it might be something related to https://stackoverflow.com/a/44785870 but like they point out, mov is a container format that can contain one of many different codecs used. And isn’t mp4 just a container too? Referring to mov files as video/mp4 seems straight up incorrect to me

Re:Username ending with MIME type format is not allowed by robertony on Wednesday September 15, 2021 @09:40AM (#28538902)
Modern mov files are just mp4 containers.
Re:Username ending with MIME type format is not allowed by codetrotter on Wednesday September 15, 2021 @10:02AM (#28539142)
I don’t think that’s quite right is it? As I understand, mp4 is based on mov. But they still very much are distinct container formats, and an implementation of the mp4 standard would likely not be able to correctly read mov files as is, would it?
Re:Username ending with MIME type format is not allowed by banana_giraffe on Wednesday September 15, 2021 @12:30PM (#28541176)
They're very close. The ISO base media file format was directly based off of QuickTime container format.

If you look at a .mov file and a .mp4 file in a ISO bmff viewer, you'll generally see the only difference is the ftyp box is different ("qt " for .mov, "isom" for .mp4). Indeed, if you ask ffmpeg to make a .mov file and .mp4 file of the same content, literally the only difference is the contents of the "ftyp" box, every other byte is identical.

Re:Username ending with MIME type format is not allowed by _Gyan_ on Friday September 17, 2021 @03:33AM (#28562358)
> literally the only difference is the contents of the "ftyp" box, every other byte is identical.

Not quite. There are some boxes acceptable in one but not the other. Strings inside MOOV are length-prefixed in MOV but null-terminated in ISOBMFF. There are a variety of differences like that.

The set of codecs allowed, also differs between the two.

Re:Username ending with MIME type format is not allowed by wolfd on Wednesday September 15, 2021 @12:49PM (#28541418)
They're pretty much interchangable. Video frameworks like gstreamer just give you qtdemux to parse .mov, .mp4, and even .m4a or .m4v (which are just MP4s with different file extensions).
Re:Username ending with MIME type format is not allowed by john_cogs on Wednesday September 15, 2021 @08:14AM (#28538072)
A GitLab team member has opened a merge request to make the error message more clear: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70374/...
Re:Username ending with MIME type format is not allowed by splintercell on Wednesday September 15, 2021 @11:53AM (#28540667)
Instead of saying with ‘a file extension’, It should say with ‘a reserved file extension’.
Re:Username ending with MIME type format is not allowed by john_cogs on Wednesday September 15, 2021 @12:19PM (#28541016)
Do you want to open a Merge Request to propose the change? Would love to have you contribute to GitLab.
Re:Username ending with MIME type format is not allowed by dnsmichi on Wednesday September 15, 2021 @12:53PM (#28541483)
Went ahead and created a MR to emphasize on 'reserved file extension' in the error message: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70427

Thanks for the suggestion :)