nareix / joy4

Golang audio/video library and streaming server
MIT License
2.68k stars 500 forks source link

Joy4 should use that version of FFmpeg #70

Closed qiu770 closed 6 years ago

qiu770 commented 6 years ago

I'm trying to Fragment an Mp4 file,

Compile Joy4 on Windows.

But the compiler error. I want to know which version of FFmpeg I should be using. I'm using 3.4.*

I was in the https://ffmpeg.zeranoe.com/builds/ development version.

Prompts and errors when running the example.

PS: pens gopathpens srcpens github.com\nareix\joy4\ \transcode> go run main.go

github.com/nareix/joy4/cgo/ffmpeg

.. .. \cgo\ffmpeg\audio. Go :31:37: could not determine kind of name for C.AVAudioResampleContext

.. .. \cgo\ffmpeg\ audit.go :247:16: could not determine kind of name for C.avcodec_profile_name_to_int

.. .. \cgo\ffmpeg\ audit.go :84:10: could not determine kind of name for C.avresample_alloc_context

.. .. \cgo\ffmpeg\audio. Go :80:3: could not determine kind of name for C.avresample_free

.. .. \cgo\ffmpeg\ audit.go :46:26: could not determine kind of name for C.avresample_get_out_samples

.. .. \cgo\ffmpeg\audio. Go :91:3: could not determine kind of name for C.avresample_open

.. .. \cgo\ffmpeg\ audit.go :57:26: could not determine kind of name for c.wrap_avresample_convert

GCC errors for the preamble:

.. .. \cgo\ffmpeg\audio. Go :9:29: error: unknown type name 'AVAudioResampleContext'; Did you mean 'ReSampleContext'?

Int wrap_avresample_convert(AVAudioResampleContext avr, int out, int outsize, int *in, int insize, int incount) {

^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

ReSampleContext