examples

command
v0.0.0-...-a4d7a9a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: MIT Imports: 14 Imported by: 0

README

Examples

encoding.go

is a port of ffmpeg/doc/examples/encoding-decoding.c

go run encoding.go
encoding-multiple.go

is an experimental stuff, which is producing three different output at once. It creates three workers with different codecs settings and passes them synthetic generated frames. As a result you will get three files, encoded with mpeg1, mpeg2 and mpeg4.

go run encoding-multiple.go 
transcode.go

is a simple transcoder. It gets two best streams (video and audio) from input and converts them to mpeg4 and aac.

go run transcode [input] [output.mp4]

video-to-jpeg.go

extracts frames and encodes them to jpeg files.

# if no args specified, default test-sample.mp4 will be used
go run video-to-jpeg.go [input_video]

video-to-jpeg-p.go

faster parallel version.

# available options:
# -wnum=  number of workers
# -input= input video  file

go run video-to-jpeg.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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