From ae4a2abc37d750d76f252c75931ede2f167185ca Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 22 Feb 2023 22:45:53 +0100 Subject: [PATCH] Videos: Add .dv to the list of known video file types #3226 Note that this is completely untested as we have no sample files. Signed-off-by: Michael Mayer --- pkg/fs/file_exts.go | 1 + pkg/fs/file_info.go | 1 + pkg/fs/file_types.go | 1 + pkg/media/formats.go | 1 + 4 files changed, 4 insertions(+) diff --git a/pkg/fs/file_exts.go b/pkg/fs/file_exts.go index 285837826..6a5b91acc 100644 --- a/pkg/fs/file_exts.go +++ b/pkg/fs/file_exts.go @@ -109,6 +109,7 @@ var Extensions = FileExtensions{ ".webm": VideoWebM, ".asf": VideoASF, ".wmv": VideoWMV, + ".dv": VideoDV, ".svg": VectorSVG, ".ai": VectorAI, ".ps": VectorPS, diff --git a/pkg/fs/file_info.go b/pkg/fs/file_info.go index 2fafaeb5f..ed60ed604 100644 --- a/pkg/fs/file_info.go +++ b/pkg/fs/file_info.go @@ -31,6 +31,7 @@ var TypeInfo = TypeMap{ VideoAVI: "Microsoft Audio Video Interleave", VideoASF: "Advanced Systems Format ", VideoWMV: "Windows Media", + VideoDV: "DV Video", Video3GP: "Mobile Multimedia Container (3G)", Video3G2: "Mobile Multimedia Container (CDMA2000)", VideoFlash: "Adobe Flash", diff --git a/pkg/fs/file_types.go b/pkg/fs/file_types.go index b772f5b8d..a85610ab1 100644 --- a/pkg/fs/file_types.go +++ b/pkg/fs/file_types.go @@ -48,6 +48,7 @@ const ( VideoOGV Type = "ogv" // Ogg container format maintained by the Xiph.Org, free and open VideoASF Type = "asf" // Advanced Systems/Streaming Format (ASF) VideoWMV Type = "wmv" // Windows Media Video (based on ASF) + VideoDV Type = "dv" // DV Video (https://en.wikipedia.org/wiki/DV) VectorSVG Type = "svg" // Scalable Vector Graphics VectorAI Type = "ai" // Adobe Illustrator VectorPS Type = "ps" // Adobe PostScript diff --git a/pkg/media/formats.go b/pkg/media/formats.go index bee7a413c..08c2c357c 100644 --- a/pkg/media/formats.go +++ b/pkg/media/formats.go @@ -39,6 +39,7 @@ var Formats = map[fs.Type]Type{ fs.VideoOGV: Video, fs.VideoASF: Video, fs.VideoWMV: Video, + fs.VideoDV: Video, fs.VectorSVG: Vector, fs.VectorAI: Vector, fs.VectorPS: Vector,