media_video

package module
v0.0.0-...-61665a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 2 Imported by: 1

README

📹 media.video

Work in Progress Go Report Card GoDoc Release

Overview

media.video is a specialized library within the SmartMediaFiles ecosystem. Its purpose is to define and categorize all file types and extensions related to video files. This library provides the necessary definitions for the main @/media library to recognize and classify video files like MP4, MOV, AVI, etc.

Features

  • File Type Definitions: Provides a list of FileType constants for each supported video format.
  • File Extension Definitions: Provides a list of all corresponding FileExtension constants.
  • Type-to-Extension Mapping: Contains the VideoFileTypesExtensions map that links each file type to its extensions, which is then consumed by the central @/media registry.
  • Future-proofing: This library will be expanded to include functions for extracting video-specific metadata (e.g., codecs, duration, resolution).

Installation

go get -u github.com/smartmediafiles/media.video

License

This project is licensed under the MIT License - see the LICENSE.md file for details.


⚠️ Note: This README will be updated regularly as the project progresses. Check back often for the latest information!

Documentation

Index

Constants

View Source
const (
	VideoAvi types.FileType = "avi"
	VideoMkv types.FileType = "mkv" // Matroska Multimedia Container
	VideoM4v types.FileType = "m4v" // Apple iTunes MPEG-4 Container, optionally with DRM copy protection
	VideoMov types.FileType = "mov" // Apple QuickTime Movie
	VideoMp4 types.FileType = "mp4" // MPEG-4 Container based on QuickTime, can contain AVC, HEVC,...
	VideoMpg types.FileType = "mpg" // Moving Picture Experts Group (MPEG)
	VideoWmv types.FileType = "wmv" // Windows Media Video
)

List of supported media.Video file types.

Variables

View Source
var VideoFileTypesExtensions = maps.MapFileTypeExtensions{
	VideoAvi: {".avi"},
	VideoMkv: {".mkv"},
	VideoM4v: {".m4v"},
	VideoMov: {".mov", ".qt"},
	VideoMp4: {".mp4", "mp"},
	VideoMpg: {".mpg", ".mpeg"},
	VideoWmv: {".wmv"},
}

VideoFileTypesExtensions is a map of media.Video file types to file extensions.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL