| Summary: | Download mp4 instead of application/octet-stream in Safari | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | 0aps <six.aps> | ||||
| Component: | Media | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED INVALID | ||||||
| Severity: | Normal | CC: | ap, eric.carlson, youennf | ||||
| Priority: | P2 | ||||||
| Version: | Safari 16 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
0aps
2022-11-22 11:38:57 PST
I cannot reproduce this, but also not sure if I fully understand the issue. The `file` tool looks at signatures within the file to determine its type, and if it says `application/octet-stream`, that just means that it couldn't determine the type. When I try to reproduce, I actually get "video/mp4" printed by the tool. - What versions of Safari and macOS are you using? - What does `which file` say? Perhaps you have a non-default version installed. - Could you please attach an affected file here, so that we could inspect its actual format? (In reply to Alexey Proskuryakov from comment #1) > I cannot reproduce this, but also not sure if I fully understand the issue. > The `file` tool looks at signatures within the file to determine its type, > and if it says `application/octet-stream`, that just means that it couldn't > determine the type. > > When I try to reproduce, I actually get "video/mp4" printed by the tool. > > - What versions of Safari and macOS are you using? > > - What does `which file` say? Perhaps you have a non-default version > installed. > > - Could you please attach an affected file here, so that we could inspect > its actual format? Hi Alexey, thanks for following up. - I'm using macOS Monterey (12.6) with Safari (16.1). - /usr/bin/file - I attached one to the case. (which I got from the CodePen linked in the original question). Created attachment 463758 [details]
Example of exported file from Safari
`file` on macOS Ventura says "ISO Media, MP4 Base Media v5". QuickTime Player says that video format is "H.264", and audio is "MPEG-4 AAC, 44100 Hz". Looks like WebKit behaves correctly, and it's just that the older version of `file` doesn't recognize the format. |