mirror of
https://github.com/giorgisio/goav.git
synced 2024-04-21 12:31:56 +00:00
Github path fixed; readme update; name changes
This commit is contained in:
@@ -5,18 +5,24 @@ Golang bindings for FFmpeg
|
||||
goav comes with ABSOLUTELY NO WARRANTY.
|
||||
|
||||
## Installation
|
||||
|
||||
go get github.com/giorgisio/goav
|
||||
|
||||
export FFMPEG_ROOT=$HOME/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=$HOME/ffmpeg/lib
|
||||
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
`````go
|
||||
|
||||
import "github.com/giorgisio/gfg/avformat"
|
||||
import "github.com/giorgisio/goav/avformat"
|
||||
|
||||
func main() {
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ package avformat
|
||||
//#include <libavdevice/avdevice.h>
|
||||
import "C"
|
||||
import (
|
||||
"github.com/giorgisio/gfg/avcodec"
|
||||
"github.com/giorgisio/goav/avcodec"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/giorgisio/gfg/avcodec"
|
||||
"github.com/giorgisio/gfg/avformat"
|
||||
"github.com/giorgisio/gfg/avutil"
|
||||
"github.com/giorgisio/gfg/swscale"
|
||||
"github.com/giorgisio/goav/avcodec"
|
||||
"github.com/giorgisio/goav/avformat"
|
||||
"github.com/giorgisio/goav/avutil"
|
||||
"github.com/giorgisio/goav/swscale"
|
||||
"log"
|
||||
"os"
|
||||
"unsafe"
|
||||
|
||||
+7
-7
@@ -2,13 +2,13 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
//"github.com/giorgisio/gfg/avcodec"
|
||||
"github.com/giorgisio/gfg/avdevice" //Just for test
|
||||
"github.com/giorgisio/gfg/avfilter" //Just for test
|
||||
"github.com/giorgisio/gfg/avformat"
|
||||
//"github.com/giorgisio/gfg/avutil"
|
||||
"github.com/giorgisio/gfg/swresample" //Just for test
|
||||
//"github.com/giorgisio/gfg/swscale"
|
||||
//"github.com/giorgisio/goav/avcodec"
|
||||
"github.com/giorgisio/goav/avdevice" //Just for test
|
||||
"github.com/giorgisio/goav/avfilter" //Just for test
|
||||
"github.com/giorgisio/goav/avformat"
|
||||
//"github.com/giorgisio/goav/avutil"
|
||||
"github.com/giorgisio/goav/swresample" //Just for test
|
||||
//"github.com/giorgisio/goav/swscale"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package gfg
|
||||
package goav
|
||||
|
||||
/*
|
||||
Use of this source code is governed by a MIT license that can be found in the LICENSE file.
|
||||
Reference in New Issue
Block a user