Documentation ¶
Overview ¶
media is a package for reading and writing media files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NativeEndian binary.ByteOrder
NativeEndian is the ByteOrder of the current system.
Functions ¶
func NewManager ¶ added in v1.6.2
func NewManager() *manager
Types ¶
type Decoder ¶ added in v1.6.1
type Decoder interface{}
Decoder represents a decoder for a media stream.
type DecoderFunc ¶ added in v1.6.1
DecoderFunc is a function that decodes a packet
type Frame ¶ added in v1.5.1
type Frame interface{}
Frame represents a frame of audio or video data.
type FrameFunc ¶ added in v1.6.1
FrameFunc is a function that processes a frame of audio or video data.
type InputFormat ¶ added in v1.6.2
type InputFormat interface{}
InputFormat represents a container format for input of media streams.
type Media ¶
type Media interface { io.Closer // Return the metadata for the media stream. Metadata() []Metadata // Demultiplex media (when NewReader or Open has // been used). Pass a packet to a decoder function. Demux(DecoderFunc) error // Return a decode function, which can rescale or // resample a frame and then call a frame processing // function for encoding and multiplexing. Decode(FrameFunc) DecoderFunc }
Media represents a media stream, which can be input or output. A new media object is created using NewReader, Open, NewWriter or Create.
type Metadata ¶ added in v1.5.1
type Metadata interface{}
Metadata represents a metadata entry for a media stream.
type OutputFormat ¶ added in v1.6.2
type OutputFormat interface{}
OuputFormat represents a container format for output of media streams.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Media services for golang, including bindings for ffmpeg, command line application
|
Media services for golang, including bindings for ffmpeg, command line application |
extractartwork
An example of extracting artwork from media files.
|
An example of extracting artwork from media files. |
fingerprint
An example of fingerprinting audio and recognizing the any music tracks within the audio.
|
An example of fingerprinting audio and recognizing the any music tracks within the audio. |
media
Package media provides media open, close and conversion support
|
Package media provides media open, close and conversion support |
pkg/_old/_media
Package media provides high-level media services for multiplexing, extracting and transcoding audio and video.
|
Package media provides high-level media services for multiplexing, extracting and transcoding audio and video. |
sys/_ffmpeg
Package ffmpeg provides low-level ffmpeg for go
|
Package ffmpeg provides low-level ffmpeg for go |
transcode
An example of extracting frames from a video.
|
An example of extracting frames from a video. |
cmd
|
|
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. |
file
Package file provides file system support, including file system walking
|
Package file provides file system support, including file system walking |
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 |
ffmpeg51
Package ffmpeg provides low-level ffmpeg for go
|
Package ffmpeg provides low-level ffmpeg for go |
ffmpeg61
The low-level ffmpeg bindings for ffmpeg version 6.1.
|
The low-level ffmpeg bindings for ffmpeg version 6.1. |
Click to show internal directories.
Click to hide internal directories.