FFmpeg avcodec_register_all iphone problem

I need to use ffmpeg for encodig. I have everything * .a. My problem is that when I use awcodec_register_all () xcode give me this error:

"_ deflate" referenced by:

  _encode_frame in libavcodec.a(pngenc.o)


  _encode_frame in libavcodec.a(pngenc.o)


  _encode_frame in libavcodec.a(pngenc.o)


  _encode_frame in libavcodec.a(lclenc.o)


  _encode_frame in libavcodec.a(lclenc.o)


  _encode_frame in libavcodec.a(zmbvenc.o)

"_ deflateEnd" referenced by:

  _flashsv_encode_end in libavcodec.a(flashsvenc.o)


  _encode_frame in libavcodec.a(pngenc.o)


  _encode_end in libavcodec.a(lclenc.o)


  _encode_end in libavcodec.a(zmbvenc.o)

"_ compress" referenced by:

  _encode_strip in libavcodec.a(tiffenc.o)


 (maybe you meant: _mp3_header_compress_bsf$non_lazy_ptr, _mp3_header_compress_bsf )

"_ vorbis_analysis_init" referenced by:

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ lame_set_bWriteVbrTag" referenced by:

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ lame_set_VBR" referenced by:

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ crc32" referenced:

  _png_write_chunk in libavcodec.a(pngenc.o)


  _png_write_chunk in libavcodec.a(pngenc.o)


  _png_write_chunk in libavcodec.a(pngenc.o)

"_ x264_encoder_headers" referenced by:

  _X264_init in libavcodec.a(libx264.o)

"_ lame_encode_buffer" referenced by:

  _MP3lame_encode_frame in libavcodec.a(libmp3lame.o)

"_ x264_encoder_encode" referenced by:

  _X264_frame in libavcodec.a(libx264.o)

"_ vorbis_comment_add_tag" referenced by:

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ theora_encode_tables", :

  _encode_init in libavcodec.a(libtheoraenc.o)

"_ vorbis_block_init", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ x264_nal_encode", :

  _X264_frame in libavcodec.a(libx264.o)


  _X264_init in libavcodec.a(libx264.o)

"_ uncompress", :

  _decode_frame in libavcodec.a(cscd.o)


  _decode_frame in libavcodec.a(dxa.o)


  _svq3_decode_init in libavcodec.a(h264.o)


  _decode_frame in libavcodec.a(tiff.o)

"_ xvid_plugin_2pass2", :

  _ff_xvid_rate_control_init in libavcodec.a(libxvid_rc.o)


  _ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o)


  _ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o)


  _ff_xvid_rate_control_uninit in libavcodec.a(libxvid_rc.o)


  _xvid_plugin_2pass2$non_lazy_ptr in libavcodec.a(libxvidff.o)


 (maybe you meant: _xvid_plugin_2pass2$non_lazy_ptr)

"_ lame_set_num_channels", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ lame_set_VBR_q", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ vorbis_analysis_buffer", :

  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)

"_ compress2", :

  _flashsv_encode_frame in libavcodec.a(flashsvenc.o)

"_ inflateEnd", :

  _decode_frame in libavcodec.a(pngdec.o)


  _flashsv_decode_end in libavcodec.a(flashsv.o)


  _decode_end in libavcodec.a(lcldec.o)


  _decode_end in libavcodec.a(tscc.o)


  _decode_end in libavcodec.a(zmbv.o)

"_ lame_encode_buffer_interleaved", :

  _MP3lame_encode_frame in libavcodec.a(libmp3lame.o)

"_ theora_comment_clear", :

  _encode_init in libavcodec.a(libtheoraenc.o)

"_ x264_encoder_close", :

  _X264_close in libavcodec.a(libx264.o)

"_ inflate", :

  _decode_frame in libavcodec.a(pngdec.o)


  _flashsv_decode_frame in libavcodec.a(flashsv.o)


  _flashsv_decode_frame in libavcodec.a(flashsv.o)


  _decode_frame in libavcodec.a(lcldec.o)


  _decode_frame in libavcodec.a(lcldec.o)


  _decode_frame in libavcodec.a(lcldec.o)


  _decode_frame in libavcodec.a(tscc.o)


  _decode_frame in libavcodec.a(zmbv.o)

"_ theora_comment_init", :

  _encode_init in libavcodec.a(libtheoraenc.o)

"_ vorbis_info_init", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"deflateInit2", :

  _encode_frame in libavcodec.a(pngenc.o)

"_ deflateReset", :

  _encode_frame in libavcodec.a(lclenc.o)


  _encode_frame in libavcodec.a(zmbvenc.o)

"_ theora_encode_init", :

  _encode_init in libavcodec.a(libtheoraenc.o)

"_ lame_get_framesize", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ vorbis_analysis", :

  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)

"_ inflateReset", :

  _flashsv_decode_frame in libavcodec.a(flashsv.o)


  _decode_frame in libavcodec.a(lcldec.o)


  _decode_frame in libavcodec.a(lcldec.o)


  _decode_frame in libavcodec.a(tscc.o)


  _decode_frame in libavcodec.a(zmbv.o)

"_ lame_set_disable_reservoir", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ inflateSync", :

  _flashsv_decode_frame in libavcodec.a(flashsv.o)

"_ vorbis_info_clear", :

  _oggvorbis_encode_close in libavcodec.a(libvorbis.o)

"_ theora_encode_header", :

  _encode_init in libavcodec.a(libtheoraenc.o)

"_ theora_clear", :

  _encode_close in libavcodec.a(libtheoraenc.o)

"_ theora_info_clear", :

  _encode_init in libavcodec.a(libtheoraenc.o)

"_ xvid_plugin_lumimasking", :

  _xvid_plugin_lumimasking$non_lazy_ptr in libavcodec.a(libxvidff.o)


 (maybe you meant: _xvid_plugin_lumimasking$non_lazy_ptr)

"_ theora_encode_comment", :

  _encode_init in libavcodec.a(libtheoraenc.o)

"_ lame_set_brate", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)


  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ theora_encode_YUVin", :

  _encode_frame in libavcodec.a(libtheoraenc.o)

"_ lame_init", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ lame_set_mode", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"deflateInit", :

  _encode_init in libavcodec.a(lclenc.o)


  _encode_init in libavcodec.a(zmbvenc.o)

"_ vorbis_encode_setup_managed", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ lame_set_quality", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)


  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ vorbis_analysis_blockout", :

  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)


  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)

"_ vorbis_analysis_wrote", :

  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)


  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)


  _oggvorbis_encode_close in libavcodec.a(libvorbis.o)

"inflateInit", :

  _decode_frame in libavcodec.a(pngdec.o)


  _flashsv_decode_init in libavcodec.a(flashsv.o)


  _decode_init in libavcodec.a(lcldec.o)


  _decode_init in libavcodec.a(tscc.o)


  _decode_init in libavcodec.a(zmbv.o)

"_ vorbis_comment_clear", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ vorbis_bitrate_addblock", :

  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)

"_ lame_set_in_samplerate", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ vorbis_encode_ctl", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ x264_param_default", :

  _X264_init in libavcodec.a(libx264.o)

"_ theora_info_init", :

  _encode_init in libavcodec.a(libtheoraenc.o)

"_ vorbis_encode_setup_init", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ vorbis_comment_init", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ vorbis_bitrate_flushpacket", :

  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)


  _oggvorbis_encode_frame in libavcodec.a(libvorbis.o)

"_ xvid_plugin_single", :

  _xvid_plugin_single$non_lazy_ptr in libavcodec.a(libxvidff.o)


 (maybe you meant: _xvid_plugin_single$non_lazy_ptr)

"_ xvid_global", :

  _ff_xvid_encode_init in libavcodec.a(libxvidff.o)

"_ xvid_encore", :

  _ff_xvid_encode_close in libavcodec.a(libxvidff.o)


  _ff_xvid_encode_init in libavcodec.a(libxvidff.o)


  _ff_xvid_encode_frame in libavcodec.a(libxvidff.o)

"_ vorbis_encode_setup_vbr", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ lame_set_out_samplerate", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ lame_init_params", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)

"_ vorbis_block_clear", :

  _oggvorbis_encode_close in libavcodec.a(libvorbis.o)

"_ lame_encode_flush", :

  _MP3lame_encode_frame in libavcodec.a(libmp3lame.o)

"_ x264_encoder_open", :

  _X264_init in libavcodec.a(libx264.o)

"_ lame_close", :

  _MP3lame_encode_init in libavcodec.a(libmp3lame.o)


  _MP3lame_encode_close in libavcodec.a(libmp3lame.o)

"_ vorbis_dsp_clear", :

  _oggvorbis_encode_close in libavcodec.a(libvorbis.o)

"_ vorbis_analysis_headerout", :

  _oggvorbis_encode_init in libavcodec.a(libvorbis.o)

"_ theora_encode_packetout", :

  _encode_frame in libavcodec.a(libtheoraenc.o)


  _encode_close in libavcodec.a(libtheoraenc.o)

ld:

collect2: ld 1

, [] codec = avcodec_find_encoder (CODEC_ID_H264);//CODEC_ID_H264  //codec = avcodec_find_encoder_by_name ( "mpeg1" );   (! codec) { fprintf (stderr, " \n" ); (1);  }[/] null

?

+3
1

, Add- > Existing Frameworks, libz.dylib.

+12

Source: https://habr.com/ru/post/1746340/


All Articles