Open changchichung opened 3 years ago
update looks like the h.264 codec error I change decoders to vp8 then it's ok to make.
libx264 version
libx264-155/focal,now 2:0.155.2917+git0a84d98-2 amd64 [已安裝,自動]
x264 video coding library
libx264-dev/focal,now 2:0.155.2917+git0a84d98-2 amd64 [已安裝]
development files for libx264
I had a similar issue, same error as original post. Then, when running
make encoders=vp8
I got
go build -tags "vp8enc" cmd/agent.go
# pkg-config --cflags -- vpx
Package vpx was not found in the pkg-config search path.
Perhaps you should add the directory containing `vpx.pc'
to the PKG_CONFIG_PATH environment variable
No package 'vpx' found
pkg-config: exit status 1
make: *** [Makefile:24: agent] Error 2
Resolved by running
sudo apt install libvpx-dev
Was then able to build with
make encoders=vp8
OS: Ubuntu 20.04 x64 LTS Go Version:
go version
go version go1.15.6 linux/amd64
I solved the problem with this following command :
go mod tidy
Go will download all requirements in go.sum.
@changchichung There was a bug associated with an older version of the gen2brain x264-go library. The fix for this is to run the following: go get -u github.com/gen2brain/x264-go. Learn more about the issue here: https://github.com/gen2brain/x264-go/issues/6
I know there's a similar issue already https://github.com/rviscarra/webrtc-remote-screen/issues/2
but in my case , I didn't get the binary .
OS: ubuntu 20.04 x64 GO version : 1.13.8
any suggestions ?