Documentation
¶
Overview ¶
This is a package for reading, writing and inspecting media files. In order to operate on media, call NewManager() and then use the manager functions to determine capabilities and manage media files and devices.
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 ErrInternalError Err = http.StatusInternalServerError ErrNotImplemented Err = http.StatusNotImplemented )
type Metadata ¶ added in v1.5.1
type Metadata interface {
// Return the metadata key
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 |
|---|---|
|
cmd
|
|
|
gomedia
command
|
|
|
etc
|
|
|
pkg
|
|
|
_old
This is a package for reading, writing and inspecting media files.
|
This is a package for reading, writing and inspecting media files. |
|
_old/cmd/examples/capture
command
|
|
|
_old/cmd/examples/decode
command
|
|
|
_old/cmd/examples/demux
command
|
|
|
_old/cmd/examples/encode
command
|
|
|
_old/cmd/examples/metadata
command
|
|
|
_old/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. |
|
_old/cmd/examples/server
command
|
|
|
_old/cmd/examples/transcode
command
|
|
|
_old/cmd/ffmpeg/decode_audio
command
|
|
|
_old/cmd/ffmpeg/decode_video
command
|
|
|
_old/cmd/ffmpeg/demux_decode
command
|
|
|
_old/cmd/ffmpeg/encode_audio
command
|
|
|
_old/cmd/ffmpeg/encode_video
command
|
|
|
_old/cmd/ffmpeg/remux
command
|
|
|
_old/cmd/ffmpeg/resample_audio
command
|
|
|
_old/cmd/ffmpeg/scale_video
command
|
|
|
_old/cmd/ffmpeg/show_metadata
command
|
|
|
_old/cmd/media
command
|
|
|
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. |
|
file
Package file provides file system support, including file system walking
|
Package file provides file system support, including file system walking |
|
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. |
|
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.