Support .mts and .mpo files (#1029)

This commit is contained in:
Krassimir Valev 2021-02-14 19:25:52 +01:00 committed by GitHub
parent 6ae0002930
commit 58d6d23967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -22,6 +22,7 @@ const (
FormatHEVC FileFormat = "hevc"
FormatMov FileFormat = "mov" // Video files.
FormatMp4 FileFormat = "mp4"
FormatMpo FileFormat = "mpo"
FormatAvc FileFormat = "avc"
FormatAvi FileFormat = "avi"
Format3gp FileFormat = "3gp"
@ -29,6 +30,7 @@ const (
FormatFlv FileFormat = "flv"
FormatMkv FileFormat = "mkv"
FormatMpg FileFormat = "mpg"
FormatMts FileFormat = "mts"
FormatOgv FileFormat = "ogv"
FormatWebm FileFormat = "webm"
FormatWMV FileFormat = "wmv"
@ -77,6 +79,8 @@ var FileExt = FileExtensions{
".mkv": FormatMkv,
".mpg": FormatMpg,
".mpeg": FormatMpg,
".mpo": FormatMpo,
".mts": FormatMts,
".ogv": FormatOgv,
".webm": FormatWebm,
".wmv": FormatWMV,

View file

@ -18,6 +18,7 @@ var MediaTypes = map[FileFormat]MediaType{
FormatTiff: MediaImage,
FormatBitmap: MediaImage,
FormatHEIF: MediaImage,
FormatMpo: MediaImage,
FormatAvi: MediaVideo,
FormatHEVC: MediaVideo,
FormatAvc: MediaVideo,
@ -28,6 +29,7 @@ var MediaTypes = map[FileFormat]MediaType{
FormatFlv: MediaVideo,
FormatMkv: MediaVideo,
FormatMpg: MediaVideo,
FormatMts: MediaVideo,
FormatOgv: MediaVideo,
FormatWebm: MediaVideo,
FormatWMV: MediaVideo,