deepch / vdk

A set of libraries for building streaming services. RTSP RTMP MP4 WS TS DASH WEBRTC MP4f
MIT License
396 stars 162 forks source link

cgo/ffmpeg api is deprecated #57

Open cwinging opened 2 years ago

cwinging commented 2 years ago

‘avcodec_decode_video2’ is deprecated ‘avresample_open’ is deprecated ‘avresample_get_out_samples’ is deprecated and so on.

fmyxyz commented 1 year ago

libavresample is not found in ffmpeg v5.x

cedricve commented 1 year ago

could we adapt the audio.go so it can be used with later ffmpeg versions? Hence libavresample is no longer available, but is now libswresample

cedricve commented 1 year ago

@cwinging we have update the video.go file so it can be leveraged with ffmpeg 5.x and beyond. https://github.com/kerberos-io/joy4/blob/master/cgo/ffmpeg/video.go