Opened 12 months ago

Closed 10 months ago

Last modified 4 months ago

#15297 closed bug (fixed)

video/mp4 sniffer rule

Reported by: nephele Owned by: nobody
Priority: normal Milestone: R1/beta2
Component: Audio & Video Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


I have a mp4 file that does not seam to be catched by the sniffer for filetypes, as a consequence it does not get metadata assigned if i play the file, unless i add a .mp4 extension in which case it does get video/mp4 attached for BEOS:type.

This seams to be a problem with mp4 version 2.

Attachments (2)

mp4-file (302.7 KB ) - added by NullAndVoid 12 months ago.
0001-fix-detection-of-video-mp4-files-via-sniffer-rule.patch (882 bytes ) - added by nephele 10 months ago.

Download all attachments as: .zip

Change History (6)

by NullAndVoid, 12 months ago

Attachment: mp4-file added

comment:1 by NullAndVoid, 12 months ago

I can reproduce the problem with the attached mp4-file.

The file signature is 66 74 79 70 6D 6D 70 34 (ascii ftypmmp4) with an offset of 4.

comment:2 by nephele, 10 months ago

Upon further investigation it seams that this are the tasks:

  • fix current sniffer rules to ignore offset
  • fix current sniffer rules to be case-insensitive
  • add ftypmp41 ftypmmp4 ftypisom (not-spec conform) ftypiso2 (not spec-conform)

reference: Aswell as just sniffing stuff on my computer, ftypisom for instance isn't allowed according to the iso spec apparently, but ffmpeg produces those files, for example. (

That should be the rules, the ftyps website also lists ones for nero, but i am not sure how relevant those are.

I am not quite sure how to go about making the sniffer rules case-insensitive or how to make them ignore a specific offset though.

Last edited 10 months ago by nephele (previous) (diff)

comment:3 by pulkomandy, 10 months ago

Resolution: fixed
Status: newclosed

Applied in hrev53541.

comment:4 by nielx, 4 months ago

Milestone: UnscheduledR1/beta2

Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone

Note: See TracTickets for help on using tickets.