examples

command
v0.0.0-...-d5a9b16 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 19 Imported by: 0

README

Examples

NOTE. Examples not included in this list are old and might not working. (Under developing now)

video-to-image.go

Save video frames as images. Generates sortable images in corresponding format inside ./tmp directory (useful for images-to-video.go example).

Options:

-ext string
  	destination type, e.g.: png, jpg, tiff, whatever encoder you have (default
  	 "png")
-src string
  	source video (default "tests-sample.mp4")

video-to-goImage.go

Same as above but using Golang image/jpeg package.

Options:

-src string
  	source video (default "tests-sample.mp4")

images-to-video.go

Generate video from sequence of images.

Options:

-dst string
  	destination file (default "result.mp4")
-src string
  	source images folder (default "./tmp")

watermark.go

Add watermark to video using complex filter.

Options:

  -dst string
    	destination file, e.g. -dst=result.mp4
  -src value
    	source files, e.g.: -src=1.mp4 -src=image.png

Note, applying image should be the last in "-src" option.

mp4s-to-flv.go

Concat video files into single "flv".

  -dst string
    	destination file, e.g. -dst=result.mp4
  -src value
    	source files, e.g.: -src=1.mp4 -src=2.mp4

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