ffmpeg

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bitrate

func Bitrate(file string) (int, error)

Bitrate returns the bitrate of a video

func FPS

func FPS(file string) (int, error)

FPS returns fps of video

func Filesize

func Filesize(file string) (int, error)

func Fps

func Fps(file string) (int, error)

Fps returns the fps of a video

func Resolution

func Resolution(file string) ([2]int, error)

Resolution returns the resolution of a video

func Seconds

func Seconds(file string) (int, error)

Seconds returns the length of a video in seconds

func Shot

func Shot(input string, s int) (image.Image, error)

Shot takes a screenshot of a video at a given second

func ShotJPEG

func ShotJPEG(input string, output string, s int, quality int) error

ShotJpeg takes a screenshot of a video at a given second and saves it as a jpeg

func ShotPNG

func ShotPNG(input string, output string, s int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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