View Issue Details

IDProjectCategoryView StatusLast Update
0000411fileGeneralpublic2022-12-28 17:50
Reporteryakov Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.43 
Fixed in Version5.45 
Summary0000411: Sony XAVC reported as application/octet-stream
DescriptionThe file utility does recognize "MPEG v4 system, Sony XAVC Codec", however it doesn't have a mime-type in the database. Consequently it's reported as application/octet-stream, which prevents xdg-open from opening those files with a video player.
Probably reporting it as video/mp4 would be more appropriate.
Tagsmagic

Activities

christos

2022-12-26 19:15

manager   ~0003876

It is very difficult to recognize MPEG4, if you have some suggested magic, by all means, send it to me.

yakov

2022-12-26 20:25

reporter   ~0003880

It's already recognized, but it's missing a mime-type; here's a patch.
xavc.patch (422 bytes)   
diff --git a/magic/Magdir/animation b/magic/Magdir/animation
index eb5959a4..b69f6858 100644
--- a/magic/Magdir/animation
+++ b/magic/Magdir/animation
@@ -37,6 +37,7 @@
 4	string		ftyp		ISO Media
 # https://aeroquartet.com/wordpress/2016/03/05/3-xavc-s/
 >8	string		XAVC		\b, MPEG v4 system, Sony XAVC Codec
+!:mime	video/mp4
 >>96	string		x		\b, Audio "%.4s"
 >>118	beshort		x		at %dHz
 >>140	string		x		\b, Video "%.4s"
xavc.patch (422 bytes)   

christos

2022-12-28 17:50

manager   ~0003882

Added, thanks!

Issue History

Date Modified Username Field Change
2022-12-24 18:57 yakov New Issue
2022-12-24 18:57 yakov Tag Attached: magic
2022-12-26 19:14 christos Assigned To => christos
2022-12-26 19:14 christos Status new => assigned
2022-12-26 19:15 christos Status assigned => feedback
2022-12-26 19:15 christos Note Added: 0003876
2022-12-26 20:25 yakov Note Added: 0003880
2022-12-26 20:25 yakov File Added: xavc.patch
2022-12-26 20:25 yakov Status feedback => assigned
2022-12-28 17:50 christos Status assigned => resolved
2022-12-28 17:50 christos Resolution open => fixed
2022-12-28 17:50 christos Fixed in Version => 5.45
2022-12-28 17:50 christos Note Added: 0003882