Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 503 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 503 Bytes

Golang 1.16 work with ffmpeg 4.1.6. Forked from here

run example

with compile ffmpeg:

export FFMPEG_ROOT=/home/caijinhai/tmp/ffmpeg
export CGO_LDFLAGS="-L$FFMPEG_ROOT/lib/ -lavcodec -lavformat -lavutil -lswscale -lswresample -lavdevice -lavfilter"
export CGO_CFLAGS="-I$FFMPEG_ROOT/include"
export PKG_CONFIG_PATH="$FFMPEG_ROOT/lib/pkgconfig"

export LD_LIBRARY_PATH=$FFMPEG_ROOT/lib:$LD_LIBRARY_PATH

cd example
go run decode.go ${test_mp4_path}