Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Err ¶ added in v1.7.2
type Err uint
const ( ErrBadParameter Err = http.StatusBadRequest ErrNotFound Err = http.StatusNotFound ErrInternalError Err = http.StatusInternalServerError ErrNotImplemented Err = http.StatusNotImplemented )
type Metadata ¶ added in v1.5.1
type Metadata interface {
// Return the metadata key (may include ns:name, e.g., "exif:DateTimeOriginal")
Key() string
// Return the value as a string. Returns the mimetype
// if the value is a byte slice, and the mimetype can be
// detected.
Value() string
// Returns the value as a byte slice
Bytes() []byte
// Returns the value as an image
Image() image.Image
// Returns the value as an interface
Any() any
}
Metadata is a key/value pair which can be used to describe a media object or other metadata. The value can be retrieved as a string value, data, or other type. If the value is a byte slice, then it can also be retrieved as an image (for artwork)
type Type ¶ added in v1.6.7
type Type int
Type of codec, device, format or stream
const ( NONE Type = 0 // Type is not defined VIDEO Type = (1 << iota) // Type is video AUDIO // Type is audio SUBTITLE // Type is subtitle DATA // Type is data UNKNOWN // Type is unknown INPUT // Type is input format OUTPUT // Type is output format DEVICE // Type is input or output device ANY = NONE // Type is any (used for filtering) )
func (Type) FlagString ¶ added in v1.6.7
Return a flag as a string
func (Type) MarshalJSON ¶ added in v1.6.7
Return the type as a string
Directories
¶
| Path | Synopsis |
|---|---|
|
This is a package for reading, writing and inspecting media files.
|
This is a package for reading, writing and inspecting media files. |
|
_gomedia
command
|
|
|
cmd/examples/capture
command
|
|
|
cmd/examples/decode
command
|
|
|
cmd/examples/demux
command
|
|
|
cmd/examples/encode
command
|
|
|
cmd/examples/metadata
command
|
|
|
cmd/examples/sdlplayer
command
This example demonstrates how to play audio and video files using SDL2.
|
This example demonstrates how to play audio and video files using SDL2. |
|
cmd/examples/server
command
|
|
|
cmd/examples/transcode
command
|
|
|
cmd/ffmpeg/decode_audio
command
|
|
|
cmd/ffmpeg/decode_video
command
|
|
|
cmd/ffmpeg/demux_decode
command
|
|
|
cmd/ffmpeg/encode_audio
command
|
|
|
cmd/ffmpeg/encode_video
command
|
|
|
cmd/ffmpeg/remux
command
|
|
|
cmd/ffmpeg/resample_audio
command
|
|
|
cmd/ffmpeg/scale_video
command
|
|
|
cmd/ffmpeg/show_metadata
command
|
|
|
cmd/media
command
|
|
|
file
Package file provides file system support, including file system walking
|
Package file provides file system support, including file system walking |
|
cmd
|
|
|
gomedia
command
|
|
|
etc
|
|
|
gomedia
|
|
|
pkg
|
|
|
chromaprint
chromaprint provides bindings to the Chromaprint library, which is a library for extracting audio fingerprints.
|
chromaprint provides bindings to the Chromaprint library, which is a library for extracting audio fingerprints. |
|
sdl
Package sdl provides SDL2-based audio and video output for go-media.
|
Package sdl provides SDL2-based audio and video output for go-media. |
|
segmenter
Package segmenter provides audio segmentation functionality.
|
Package segmenter provides audio segmentation functionality. |
|
xmp
Package xmp provides XMP (Extensible Metadata Platform) encoding and decoding.
|
Package xmp provides XMP (Extensible Metadata Platform) encoding and decoding. |
|
sys
|
|
|
chromaprint
This package provides chromaprint audio fingerprinting bindings
|
This package provides chromaprint audio fingerprinting bindings |
|
dvb
DVB (Digital Video Broadcasting) bindings for Go
|
DVB (Digital Video Broadcasting) bindings for Go |
|
ffmpeg61
The low-level ffmpeg bindings for ffmpeg version 6.1.
|
The low-level ffmpeg bindings for ffmpeg version 6.1. |
|
ffmpeg71
The low-level ffmpeg bindings for ffmpeg version 7.1.
|
The low-level ffmpeg bindings for ffmpeg version 7.1. |
|
ffmpeg80
The low-level ffmpeg bindings for ffmpeg version 8.0.
|
The low-level ffmpeg bindings for ffmpeg version 8.0. |
Click to show internal directories.
Click to hide internal directories.