Documentation ¶
Overview ¶
Package x264 provides H.264/MPEG-4 AVC codec encoder based on x264(https://www.videolan.org/developers/x264.html) library.
Index ¶
Constants ¶
View Source
const ( LogNone int32 = iota - 1 LogError LogWarning LogInfo LogDebug )
Logging constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder type.
func NewEncoder ¶
NewEncoder returns new x264 encoder.
type Options ¶
type Options struct { // Frame width. Width int // Frame height. Height int // Frame rate. FrameRate int // Tunings: film, animation, grain, stillimage, psnr, ssim, fastdecode, zerolatency. Tune string // Presets: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo. Preset string // Profiles: baseline, main, high, high10, high422, high444. Profile string // Log level. LogLevel int32 }
Options represent encoding options.
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
Package x264c implements cgo bindings for [x264](https://www.videolan.org/developers/x264.html) library.
|
Package x264c implements cgo bindings for [x264](https://www.videolan.org/developers/x264.html) library. |
Click to show internal directories.
Click to hide internal directories.