[Ffmpeg-devel] RE: for help

张 健 thujanechang
Wed Dec 13 10:41:56 CET 2006


Hi Alexey :
    thanks a lot for your help.
    i'm glad to tell you that i've conquered this problem.the reason is 
that i use avcodec.h and avformat.h in ffmpeg's original source code as my 
include file.but many variables used by ffmpeg.cpp in this 2 file has 
keyword extern ,and this extern keyword has been compiled into 
avcodec.lib,avformat.lib,and avutil.lib,so we must delete the extern 
keyword in all header files when we link avcodec.lib,etc.i think what i say 
is correct, and i now can debug ffmpeg in VC6.0.
    in addtion,i found that function lrintf is not called by ffmpeg when 
run this program.perhaps it is because my poor parameter list.
    but i meet another trouble,ffmpeg can convert media and can output 
information as shown on linux system.but the converted media can not be 
played or even opened but any media player.the reason may be in the 
trancode process of ffmpeg,any hints about this from you?

     regards.
    --ZHANGJIAN 

>From: Alexey Sidelnikov <avs99 at yandex.ru>
>Reply-To: FFmpeg development discussions and 
patches<ffmpeg-devel at mplayerhq.hu>
>To: ffmpeg-devel at mplayerhq.hu
>Subject: [Ffmpeg-devel] Re: for help
>Date: Wed, 13 Dec 2006 07:32:13 +0000 (UTC)
> > Hi all:
> >     First I successfully generate avcodec.lib,avformat.lib,avutil.lib 
and
> > the corresponding dll with the help of MinGW and MSYS.Secondly i
> > successfully compile ffmpeg.cpp and cmdutils.cpp in VC6.0,but it 
produce
> > the following errors when link:
> >
> > Linking...
> > ffmpeg.obj : error LNK2001: unresolved external symbol "int loop_input"
>
>
>Hi!
>
>In ffmpeg.c try to wrap all includes into extern "C" { .. }:
>
>extern "C"
>{
>#include "common.h"
>#include "rational.h"
>...
>#include "cmdutils.h"
>}
>
>you also have to comment all calls to frame_hook* functions.
>
>
>Hope that helps.
>
>br,
>
>Alexey
>Regarding
>
>

_________________________________________________________________
??????????????? MSN Hotmail?  http://www.hotmail.com  





More information about the ffmpeg-devel mailing list