Documentation
¶
Index ¶
- Constants
- Variables
- func CheckFFmpegVersion(filepath string) (bool, error)
- func CheckIfFFmpegInPATH() (bool, error)
- func CheckIfFileExecutable(filepath string) (bool, error)
- func GetFFmpegExe() (string, error)
- func GetPlatform() (platform string)
- func GetRomoteFile(fname string) error
- func LoadImage(path string) (image.Image, error)
- func LoadImageBitmap(imgfile image.Image) []uint8
- type Options
- type PassThru
- type Video
Constants ¶
View Source
const (
RemoteResourceUrl = "https://github.com/imageio/imageio-binaries/raw/master/ffmpeg"
)
Variables ¶
View Source
var (
FnamePerPlatform = map[string]string{
"osx32": "ffmpeg.osx",
"osx64": "ffmpeg.osx",
"win32": "ffmpeg.win32.exe",
"win64": "ffmpeg.win32.exe",
"linux32": "ffmpeg.linux32",
"linux64": "ffmpeg.linux64",
}
)
Functions ¶
func CheckFFmpegVersion ¶
func CheckIfFFmpegInPATH ¶
Check if ffmpeg is in System PATH
func CheckIfFileExecutable ¶
Check if the exe file is excutable.
func GetFFmpegExe ¶
Ensure we have our version of the binary freeimage lib.
func GetPlatform ¶
func GetPlatform() (platform string)
Get a string that specifies the platform more specific than The result can be: linux32, linux64, win32, win64, osx32, osx64. Other platforms may be added in the future.
func GetRomoteFile ¶
Get a filename for the local version of a file from the web
Types ¶
type PassThru ¶
type PassThru struct { io.Reader CurrentSize int // Current # of bytes transferred TotalSize int // Total # of bytes transferred }
The results from individual calls to it.
type Video ¶
type Video struct { Cmd *exec.Cmd StdinWr io.WriteCloser Dimension string ExePath string Output string Option *Options }
Video struct.
func (*Video) WriteImage ¶
Write image by image.Image
func (*Video) WriteImageFile ¶
Write image by file path.
Click to show internal directories.
Click to hide internal directories.