Open GoogleCodeExporter opened 8 years ago
the ffmpeg version is to old, you need at least a Major version of 53 of the
libavformat.
please install ffmpeg from source and try again.
Original comment by Jan.Hoel...@gmail.com
on 2 May 2011 at 12:58
Original comment by Jan.Hoel...@gmail.com
on 2 May 2011 at 1:00
Okay, just pulled the latest source ffmpeg from the following url:
git://git.videolan.org/ffmpeg.git
configured with:
./configure --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64
maked, and installed
now when I run
goinstall gmf.googlecode.com/hg/gmf
I get the following output:
goinstall: === cd /Users/bendavies/go/src/pkg/gmf.googlecode.com/hg/gmf; gomake
-f- install
CGOPKGPATH=gmf.googlecode.com/hg cgo -- avcodec.go avformat.go avutil.go
swscale.go
error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
unresolved names
make: *** [_obj/_cgo_run] Error 2
--- exit status 2
goinstall: installing gmf.googlecode.com/hg/gmf: running gomake: exit status 2
and the Ffmpeg version data is:
ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on May 2 2011 14:18:09 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64
libavutil 51. 2. 0 / 51. 2. 0
libavcodec 53. 3. 0 / 53. 3. 0
libavformat 53. 0. 3 / 53. 0. 3
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 4. 0 / 2. 4. 0
libswscale 0. 14. 0 / 0. 14. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
I can see that the version of libavformat is 53 as suggested. Any ideas?
Original comment by omarshar...@gmail.com
on 2 May 2011 at 1:26
thanks,
there is a need to change the sources to the new AVLib API, this should be done
tonight.
Original comment by Jan.Hoel...@gmail.com
on 2 May 2011 at 2:18
Thats excellent news. I'll try and install it again tomorrow morning and update
this issue.
Original comment by omarshar...@gmail.com
on 2 May 2011 at 3:11
Any progress on this issue?
Original comment by omarshar...@gmail.com
on 6 May 2011 at 9:59
I'm running with the same problem (using Fedora 14, lastest ffmpeg, latest
libav)
Tried hand compiling without success
Complains about a missing C.av_get_bits_per_sample_fmt function on avutil.go at
line 127, changed to C.av_get_bits_per_sample_format to make it work but other
errors appears that I can not solve due to deprecated functions.
There is any way I can help you ?
Please can you say me if it does compile on your machine ?
If so with what software versions (go, libav/ffmpeg ... ) ?
I'm not expert on ffmpeg/libav but can devote some time to it if you can guide
me.
Thanks for your work and for any answer
Enric
Original comment by enr...@gmail.com
on 25 May 2011 at 10:31
the libav API transition is completed with version of the following libav
Lavc53.6.0
Lavf53.1.0
Lavu51.2.1
SwS0.14.0
Regards
Original comment by Jan.Hoel...@gmail.com
on 25 May 2011 at 11:29
Just built from the main ffmpeg branch the following:
ffmpeg version git-N-30219-g07586b6, Copyright (c) 2000-2011 the FFmpeg
developers
built on May 25 2011 13:36:00 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64
libavutil 51. 2. 2 / 51. 2. 2
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 11. 0 / 2. 11. 0
libswscale 0. 14. 0 / 0. 14. 0
Then goinstall gmf.googlecode.com/hg/gmf resulted in:
goinstall: === cd /Users/bendavies/go/src/pkg/gmf.googlecode.com/hg/gmf; gomake
-f- install
CGOPKGPATH=gmf.googlecode.com/hg cgo -- avcodec.go avformat.go avutil.go
swscale.go
error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
unresolved names
make: *** [_obj/_cgo_run] Error 2
--- exit status 2
goinstall: installing gmf.googlecode.com/hg/gmf: running gomake: exit status 2
Still on OSX 10.6.7 and no joy :(
Original comment by omarshar...@gmail.com
on 25 May 2011 at 12:41
please make a "goinstall -v -u gmf.googlecode.com/hg/gmf" to pull the last
changes from the repo,
without the -u option no already downloaded packages will be updated.
Regards
Original comment by Jan.Hoel...@gmail.com
on 26 May 2011 at 9:11
Just performed "goinstall -v -u gmf.googlecode.com/hg/gmf"
and got the following result:
goinstall: === cd /Users/bendavies/go/src/pkg/gmf.googlecode.com/hg/gmf; gomake
-f- install
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o cgo_import.orig.o avcodec.cgo2.o
avformat.cgo2.o avutil.cgo2.o swscale.cgo2.o _cgo_export.o
Undefined symbols for architecture x86_64:
"_avpicture_fill", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avpicture_fill in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avpicture_fill)
"_avpicture_alloc", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avpicture_alloc in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avpicture_alloc)
"_avcodec_encode_video", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_encode_video in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_encode_video)
"_av_dup_packet", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_dup_packet in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_dup_packet)
"_avcodec_close", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_close in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_close)
"_avcodec_find_encoder_by_name", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_find_encoder_by_name in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_find_encoder_by_name)
"_avcodec_encode_audio", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_encode_audio in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_encode_audio)
"_avcodec_open", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_open in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_open)
"_avpicture_deinterlace", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avpicture_deinterlace in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avpicture_deinterlace)
"_audio_resample", referenced from:
__cgo_54dcfbf5fb74_Cfunc_audio_resample in avcodec.cgo2.o
(maybe you meant: _gmf_audio_resample_close, __cgo_54dcfbf5fb74_Cfunc_gmf_audio_resample_close , __cgo_54dcfbf5fb74_Cfunc_audio_resample , __cgo_54dcfbf5fb74_Cfunc_gmf_audio_resample_init , _gmf_audio_resample_init )
"_avcodec_find_decoder", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_find_decoder in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_find_decoder_by_name, __cgo_54dcfbf5fb74_Cfunc_avcodec_find_decoder )
"_avcodec_register_all", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_register_all in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_register_all)
"_avcodec_decode_audio3", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_decode_audio3 in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_decode_audio3)
"_av_init_packet", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_init_packet in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_init_packet)
"_avcodec_get_frame_defaults", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_get_frame_defaults in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_get_frame_defaults)
"_av_free_packet", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_free_packet in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_free_packet)
"_avcodec_get_context_defaults2", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_get_context_defaults2 in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_get_context_defaults2)
"_avcodec_alloc_context", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_alloc_context in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_alloc_context)
"_avcodec_find_encoder", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_find_encoder in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_find_encoder, __cgo_54dcfbf5fb74_Cfunc_avcodec_find_encoder_by_name )
"_avcodec_find_decoder_by_name", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_find_decoder_by_name in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_find_decoder_by_name)
"_avpicture_get_size", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avpicture_get_size in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avpicture_get_size)
"_avcodec_decode_video2", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avcodec_decode_video2 in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avcodec_decode_video2)
"_av_free", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_free in avcodec.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_free_packet, __cgo_54dcfbf5fb74_Cfunc_av_free )
"_audio_resample_close", referenced from:
_gmf_audio_resample_close in avcodec.cgo2.o
(maybe you meant: _gmf_audio_resample_close, __cgo_54dcfbf5fb74_Cfunc_gmf_audio_resample_close )
"_av_resample_compensate", referenced from:
_gmf_resample_compensate in avcodec.cgo2.o
"_av_audio_resample_init", referenced from:
_gmf_audio_resample_init in avcodec.cgo2.o
"_av_write_header", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_write_header in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_write_header)
"_av_write_trailer", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_write_trailer in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_write_trailer)
"_av_find_stream_info", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_find_stream_info in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_find_stream_info)
"_avio_close", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avio_close in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avio_close)
"_av_close_input_file", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_close_input_file in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_close_input_file)
"_av_dump_format", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_dump_format in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_dump_format)
"_av_register_all", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_register_all in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_register_all)
"_av_interleaved_write_frame", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_interleaved_write_frame in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_interleaved_write_frame)
"_av_open_input_file", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_open_input_file in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_open_input_file)
"_av_new_stream", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_new_stream in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_new_stream)
"_avio_open", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avio_open in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avio_open)
"_av_guess_format", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_guess_format in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_guess_format)
"_av_read_frame", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_read_frame in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_read_frame)
"_avformat_alloc_context", referenced from:
__cgo_54dcfbf5fb74_Cfunc_avformat_alloc_context in avformat.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_avformat_alloc_context)
"_av_get_bits_per_sample_fmt", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_get_bits_per_sample_fmt in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_get_bits_per_sample_fmt)
"_av_fifo_free", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_fifo_free in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_fifo_free)
"_av_fifo_alloc", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_fifo_alloc in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_fifo_alloc)
"_av_get_string", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_get_string in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_get_string)
"_av_fifo_generic_read", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_fifo_generic_read in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_fifo_generic_read)
"_av_set_string3", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_set_string3 in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_set_string3)
"_av_rescale_q", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_rescale_q in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_rescale_q)
"_av_fifo_generic_write", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_fifo_generic_write in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_fifo_generic_write)
"_av_compare_ts", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_compare_ts in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_compare_ts)
"_av_fifo_realloc2", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_fifo_realloc2 in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_fifo_realloc2)
"_av_next_option", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_next_option in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_next_option)
"_av_fifo_size", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_fifo_size in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_fifo_size)
"_av_malloc", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_malloc in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_malloc)
"_av_fifo_space", referenced from:
__cgo_54dcfbf5fb74_Cfunc_av_fifo_space in avutil.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_av_fifo_space)
"_sws_freeContext", referenced from:
__cgo_54dcfbf5fb74_Cfunc_sws_freeContext in swscale.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_sws_freeContext)
"_sws_getContext", referenced from:
__cgo_54dcfbf5fb74_Cfunc_sws_getContext in swscale.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_sws_getContext)
"_sws_scale", referenced from:
__cgo_54dcfbf5fb74_Cfunc_sws_scale in swscale.cgo2.o
(maybe you meant: __cgo_54dcfbf5fb74_Cfunc_sws_scale)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [_cgo1_.o] Error 1
--- exit status 2
goinstall: installing gmf.googlecode.com/hg/gmf: running gomake: exit status 2
Original comment by omarshar...@gmail.com
on 26 May 2011 at 7:38
Where would I go about getting avcore? I seem to be having a similar problem,
and can't figure out if it's related to using the latest version of ffmpeg or
not. ( I can't seem to find where avcore is referenced in gmf).
Original comment by foxde...@gmail.com
on 26 May 2011 at 11:45
@omar: it seemd that ffmpeg should not compiled in x86_64, i think to compile
ffmpeg in 64bit you need to set CFLAGS=-m64 and LDFLAGS=-m64
@fox: i have updated the install instruction on the start page, the following
are the right exports...(there is no avcore anymore in ffmpeg)
export CGO_LDFLAGS="-L$FFMPEG_ROOT/lib/ -lavcodec -lavformat -lavutil -lswscale"
export CGO_CFLAGS="-I$FFMPEG_ROOT/include"
Original comment by Jan.Hoel...@gmail.com
on 27 May 2011 at 8:09
Thanks, I can't believe I missed that. I have it building on OSX now. I'll try
with my ubuntu VMs later. Thanks for the help!
Original comment by foxde...@gmail.com
on 27 May 2011 at 4:10
Original issue reported on code.google.com by
omarshar...@gmail.com
on 2 May 2011 at 12:07