ffmpeg

package
v0.0.0-...-3e00935 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Command = "ffmpeg " +
		"-i pipe:0 " +
		"-c:v libx264 -x264opts keyint=120:no-scenecut -s 1920x1080 -r 60 -profile:v main -preset veryfast -c:a aac -sws_flags bilinear -f segment -segment_time 2 ./temp/1080_60/out_1080_60_%03d.ts " +
		"-c:v libx264 -x264opts keyint=120:no-scenecut -s 1280x720 -r 60 -profile:v main -preset veryfast -c:a aac -sws_flags bilinear -f segment -segment_time 2 ./temp/720_60/out_720_60_%03d.ts " +
		"-c:v libx264 -x264opts keyint=60:no-scenecut -s 1280x720 -r 30  -profile:v main -preset veryfast -c:a aac -sws_flags bilinear -f segment -segment_time 2 ./temp/720_30/out_720_30_%03d.ts " +
		"-c:v libx264 -x264opts keyint=60:no-scenecut -s 852x480 -r 30  -profile:v main -preset veryfast -c:a aac -sws_flags bilinear  -f segment -segment_time 2 ./temp/480_30/out_480_30_%03d.ts "
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FFmpegWrapper

type FFmpegWrapper struct {
	// contains filtered or unexported fields
}

func NewFFmpegWrapper

func NewFFmpegWrapper(mediaConfigure configure.MediaConfigure, basePath string) *FFmpegWrapper

func (*FFmpegWrapper) Input

func (w *FFmpegWrapper) Input(buffer []byte) error

func (*FFmpegWrapper) Open

func (w *FFmpegWrapper) Open() error

func (*FFmpegWrapper) Run

func (w *FFmpegWrapper) Run() error

func (*FFmpegWrapper) Stop

func (w *FFmpegWrapper) Stop()

Jump to

Keyboard shortcuts

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