Summary: | some MP3s are not recognized | ||
---|---|---|---|
Product: | shared-mime-info | Reporter: | Sergey "Shnatsel" Davidoff <shnatsel> |
Component: | freedesktop.org.xml | Assignee: | Shared Mime Info group <shared_mime_info> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | account-disabled-20180731 |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Sergey "Shnatsel" Davidoff
2012-09-23 19:09:13 UTC
Somewhat confirmed. `file' detects some of them. This is an issue in the pattern for mp3s in shared-mime-info, but not all of them would be detectable. Tried it with my independent mime utility which goes with the content patterns. With file: [5:20:41] adys@azura ~/tmp % file * 02_Fog: MPEG ADTS, layer III, v1, 320 kbps, 44.1 kHz, JntStereo Above_The_Clouds: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo Above_the_Clouds_(Remix): MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo Animal_Kingdom_-_Can_You_Feel_the_Love_Tonight: data Chaikovsky_like_ver_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v1, 112 kbps, 44.1 kHz, JntStereo Club_Mix_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v1, 112 kbps, 44.1 kHz, JntStereo Cougar_boulevard: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo Deep_Blue: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo DownMix_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v1, 112 kbps, 44.1 kHz, JntStereo Ensemble_Pro_Brass_-_Can_you_feel_the_love_tonight: data Gleb_Moiseev_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo GTA San Andreas: MPEG ADTS, layer III, v1, 192 kbps, 44.1 kHz, JntStereo Instrumental_Elton_John_ver_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo Instrumental_Symphonic_ver_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v1, 112 kbps, 44.1 kHz, JntStereo In the dark: data Lights: data MartinWolf_-_Can_You_Feel_the_Love_Tonigh: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo NATURE: data Nu_Love_-_Can_You_Feel_The_Love_Tonight: data Pattern 31: MPEG ADTS, layer III, v1, 160 kbps, 44.1 kHz, JntStereo Pine_Pipe_Instrumental_ver_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v1, 112 kbps, 44.1 kHz, JntStereo Pride Lands: data skybowl_-_Lunar_a_Code_III__Variation_1: data Skybowl - This Land (demo): data Skybowl - Upendi: data Skybowl - We are one: data something: data Star_Academy_3_-_Can_You_Feel_the_Love_Tonight: data Sunnyday: data Timon_&_Pumbaa_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v2, 56 kbps, 22.05 kHz, JntStereo Toon_ver_-_Can_You_Feel_The_Love_Tonight: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo Track 4: data var2: data var3: data Weekend_Drive: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo William_Hung_-_Can_You_Feel_the_Love_Tonight: MPEG ADTS, layer III, v1, 224 kbps, 44.1 kHz, JntStereo Пурикусвадосия-2: data With my utility: [5:20:43] adys@azura ~/tmp % mime * Above_the_Clouds_(Remix) application/octet-stream Timon_&_Pumbaa_-_Can_You_Feel_The_Love_Tonight application/octet-stream Sunnyday application/octet-stream Star_Academy_3_-_Can_You_Feel_the_Love_Tonight application/octet-stream Lights application/octet-stream Deep_Blue application/octet-stream Animal_Kingdom_-_Can_You_Feel_the_Love_Tonight application/octet-stream skybowl_-_Lunar_a_Code_III__Variation_1 application/octet-stream Track 4 application/octet-stream Pride Lands application/octet-stream MartinWolf_-_Can_You_Feel_the_Love_Tonigh application/octet-stream Club_Mix_-_Can_You_Feel_The_Love_Tonight application/octet-stream Gleb_Moiseev_-_Can_You_Feel_The_Love_Tonight application/octet-stream William_Hung_-_Can_You_Feel_the_Love_Tonight application/octet-stream Weekend_Drive application/octet-stream Instrumental_Symphonic_ver_-_Can_You_Feel_The_Love_Tonight application/octet-stream something application/octet-stream Above_The_Clouds application/octet-stream GTA San Andreas application/octet-stream Cougar_boulevard application/octet-stream Nu_Love_-_Can_You_Feel_The_Love_Tonight application/octet-stream Skybowl - Upendi application/octet-stream Ensemble_Pro_Brass_-_Can_you_feel_the_love_tonight application/octet-stream NATURE application/octet-stream Пурикусвадосия-2 application/octet-stream DownMix_-_Can_You_Feel_The_Love_Tonight application/octet-stream 02_Fog application/octet-stream var3 application/octet-stream Pine_Pipe_Instrumental_ver_-_Can_You_Feel_The_Love_Tonight application/octet-stream var2 application/octet-stream In the dark application/octet-stream Skybowl - This Land (demo) application/octet-stream Skybowl - We are one application/octet-stream Toon_ver_-_Can_You_Feel_The_Love_Tonight application/octet-stream Chaikovsky_like_ver_-_Can_You_Feel_The_Love_Tonight application/octet-stream Pattern 31 application/octet-stream Instrumental_Elton_John_ver_-_Can_You_Feel_The_Love_Tonight application/octet-stream Most of the files that are recognised by file are mpeg version 1, layer III with CRC protection, i.e. they have the hex string 0xFFFA at offset 0, rather than 0xFFFB. One of the files, Timon_&_Pumbaa_-_Can_You_Feel_The_Love_Tonight, is an mpeg version 2, layer III, without CRC protection, that is, it has 0xFFF3 at offset 0. shared-mime-info is only matching 0xFFFB, or ID-3 type two tags in order to identify MP3s. It should also check for: 0xFFFA - mpeg v1, layer III (CRC protection) 0xFFF2 - mpeg v2, layer III (CRC protection) 0xFFF3 - mpeg v2, layer III (no CRC protection) I wonder would it be possible for this fix to be included in a future version? Note, that those not being detected by file contain large headers before the magic bits, it may not be feasible to identify them accurately. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/46. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.