avgo

package module
v0.0.0-...-038c03a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: MIT Imports: 1 Imported by: 0

README

avgo

CGO binding for FFmpeg

Installation
  1. install ffmpeg
sudo apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev
sudo apt-get install yasm
  1. set env
export FFMPEG_ROOT=/usr/local/ffmpeg
export CGO_LDFLAGS="-L$FFMPEG_ROOT/lib/ -lavcodec -lavformat -lavutil -lswscale -lswresample -lavdevice -lavfilter"
export CGO_CFLAGS="-I$FFMPEG_ROOT/include"
export LD_LIBRARY_PATH=$FFMPEG_ROOT/lib
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$FFMPEG_ROOT/lib/pkgconfig
  1. go package
go get -u -v "github.com/xel233/avgo"
Usage
  1. example

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoBytes

func GoBytes(cArray unsafe.Pointer, length int) []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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