[Ffmpeg-devel] error in null.c of vhook when compile ffmpeg

"曾半仙" 32051976
Fri Jun 3 12:24:41 CEST 2005


Hi,all
I have compile ffmpeg,when encoding use xvid + aac of 3gp in 2pass mode,it stop at 2nd pass:
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
have not "press[q]" message displayed.

here is my configure arg:

../FFMpeg-20050603/configure  --enable-mp3lame --enable-faac --enable-faad --disable-ffserver --disable-ffplay --enable-small --enable-memalign-hack --enable-gpl --enable-xvid --enable-vhook --enable-pthread

GCC 4.0.0/3.4.1 has both results.
lame/faac/faad2 lib has been make installed.
at the end of make,I got these error:

gcc -g -o null.so -shared null.o
null.o: In function `Configure':
/cygdrive/x/MyProjects/FFMpeg-20050603/vhook/null.c:40: undefined reference to `
_av_mallocz'
null.o: In function `Process':
/cygdrive/x/MyProjects/FFMpeg-20050603/vhook/null.c:56: undefined reference to `
_avpicture_get_size'
/cygdrive/x/MyProjects/FFMpeg-20050603/vhook/null.c:57: undefined reference to `
_av_malloc'
/cygdrive/x/MyProjects/FFMpeg-20050603/vhook/null.c:59: undefined reference to `
_avpicture_fill'
/cygdrive/x/MyProjects/FFMpeg-20050603/vhook/null.c:60: undefined reference to `
_img_convert'
/cygdrive/x/MyProjects/FFMpeg-20050603/vhook/null.c:76: undefined reference to `
_av_free'
/cygdrive/x/MyProjects/FFMpeg-20050603/vhook/null.c:71: undefined reference to `
_img_convert'
null.o: In function `Release':
/cygdrive/x/MyProjects/FFMpeg-20050603/vhook/null.c:33: undefined reference to `
_av_free'
collect2: ld returned 1 exit status
make[1]: *** [null.so] Error 1
rm null.o
make[1]: Leaving directory `/cygdrive/x/MyProjects/build/vhook'
make: *** [videohook] Error 2

I found the av_free defination in avcodec.h but has no implementation function codes matched,
should it be ingnored while compile the libavcodec?
but the ffmpeg.exe has generated in build dirtionary.
here is my batch file genpsp2po:
genpsp2po test.avi 320x240 29.97 432 32

::@echo off
:: %1=input %2=size %3=rate %4=video %5=audio
"F:\Program Files\VideoTools\3GPConverter031\cores\ffmpeg" -y -i %1 -pass 1 -passlogfile "G:\Temp\Genp" -title "[AIR]vol1_t1[nrws_w368_trim][neroavc]" -timestamp "2003-09-18 20:40:54" -bitexact -vcodec xvid -mbd 2 -4mv -trell -aic -s %2 -r %3 -b %4 -acodec aac -ac 2 -ar 24000 -ab %5 -f 3gp "G:\Temp\Genp.mp4"
"F:\Program Files\VideoTools\3GPConverter031\cores\ffmpeg" -y -i %1 -pass 2 -passlogfile "G:\Temp\Genp" -title "[AIR]vol1_t1[nrws_w368_trim][neroavc]" -timestamp "2003-09-18 20:40:54" -bitexact -vcodec xvid -mbd 2 -4mv -trell -aic -s %2 -r %3 -b %4 -acodec aac -ac 2 -ar 24000 -ab %5 -f 3gp "G:\Temp\Genp.mp4"
move "G:\Temp\Genp.mp4" %1.mp4
del G:\Temp\Genp-0.log
@echo on

it stop here with ffmpeg.exe still has 9x% cpu usage:
==============================================================================
E:\Documents and Settings\Administrator>"F:\Program Files\VideoTools\3GPConverte
r031\cores\ffmpeg" -y -i "V:\DvdRip\ahMyGoddess TV\test.avi" -pass 2 -passlogfil
e "G:\Temp\Genp" -title "[AIR]vol1_t1[nrws_w368_trim][neroavc]" -timestamp "2003
-09-18 20:40:54" -bitexact -vcodec xvid -mbd 2 -4mv -trell -aic -s 320x240 -r 29
.97 -b 432 -acodec aac -ac 2 -ar 24000 -ab 32 -f 3gp "G:\Temp\Genp.mp4"
ffmpeg version 0.4.9-pre1, build 4755, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-mp3lame --enable-faac --enable-faad --disable-ffserve
r --disable-ffplay --enable-small --enable-memalign-hack --enable-gpl --enable-x
vid --enable-vhook --enable-pthread --enable_sse --enable_sse2
  built on Jun  3 2005 17:23:38, gcc: 4.0.0
Input #0, avi, from 'V:\DvdRip\ahMyGoddess TV\test.avi':
  Duration: 00:00:12.3, start: 0.000000, bitrate: 2336 kb/s
  Stream #0.0: Video: mpeg4, yuv420p, 368x208, 23.98 fps
  Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, 3gp, to 'G:\Temp\Genp.mp4':
  Stream #0.0: Video: xvid (hq), yuv420p, 320x240, 29.97 fps, q=2-31, pass 2, 43
2 kb/s
  Stream #0.1: Audio: aac, 24000 Hz, stereo, 32 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
==============================================================================

I don't know if the vhook caused the problem.thx 



More information about the ffmpeg-devel mailing list