I use finfo_file and mime_content_type, it returns on MKV and WMV: PHP application / octet stream cannot determine 2 of this video format?
If you need to use the FFMPEG definition (I don’t know if it is possible or not). what is a command to check the format.
One thing you can do is read the first few bytes of a file to see if they match known file signatures.
Signature of the MKV file, in particular (in hexadecimal format):
1a 45 df a3
As for WMV, this should be:
30 26 b2 75
See for reference:
Extensible Binary Metalanguage
Advanced system format
:
http://www.php.net/manual/en/function.mime-content-type.php#94279
Apache mime.types(Apache/conf/mime.types). .
your/mimetype mkv another/type mvw
, , script , mime_content_type.
, mkv/mvm, , :
http://www.php.net/manual/de/function.mime-content-type.php#91646
magic_mime mkv/wmv. , , .
( mkv/wmv):
$handle = finfo_open('FILEINFO_MIME_TYPE', '/path/to/updated/database/file').
You should be able to retrieve the updated database file from the Linux distro fileinfo package.
Source: https://habr.com/ru/post/1780859/More articles:How to call a method as soon as the constructor is complete? - constructorUIPicker Height - objective-cФорма Symfony 1.4, условное бросание sfValidatorError во встроенной форме - internationalizationPython-based web framework other than Django - djangoInputType for EditText in Android - androidGetting video information using FFMPEG or, possibly, HTML5 - phpКакова цель тега в web.xml? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1780862/dependencyproperty-in-my-usercontrol-fails-to-update-bound-property-in-viewmodel&usg=ALkJrhgdeTcdvq5po4pnih2by7gsteBjHwDoes anyone have a quick cheat or command line link for OSQL? - sqlIs there any MS-DOS command to get the version of the executable (or dll)? - command-lineAll Articles