Francesco Romani wrote:
On 8/15/07, lik <[EMAIL PROTECTED]> wrote:
"checking for gzopen in -lz... no
configure: error: transcode depends on libz, but cannot links against libz"
Is the development package (zlib1g-dev IIRC) installed?
yah, i was sure i was forgetting something.
thank you!!!
But after compiling i got another problem. After hours of fascinating
typing i finally solved it, so i'll write here for those who will have
the same problem.
This problem probably affects only those who use Debian.
After compiling, i tried to use transcode to code a video from Xvid to a
standard mpeg4/divx codec using the mpeg4 codec included in FFMPEG (with
-yffmpeg -F mpeg4) but i got an error message.
The FFMPEG libraries are contained in the Debian package
libavcodec1d/libavcodec0d and libavcodec-dev. But actually the FFMPEG
version of the unstable libavcodec packages is 0.3.13 (published on
03-08-2004...), witch contains a bug. That's why i get the following
error while transcoding:
> transcode -i nomefile.avi -o nomefile.avi.new.avi -y ffmpeg,null -F
mpeg4 -R 0,divx.log
transcode v1.0.4rc5 (C) 2001-2003 Thomas Oestreich, 2003-2004 T.
Bitterberg, 2004-2007 Transcode Team
[...other output...]
[export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc1d.51.38.0 | (audio)
MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i "nomefile.avi" -x mp3 -d 0 | tcdecode
-x mp3 -d 0 -z 48000
tc_memcpy: using sse for memcpy
[export_ffmpeg.so] Could not find a FFMPEG codec for 'mpeg4'.
[transcode] warning : (encoder.c) video export module error: init failed
[transcode] critical: failed to init encoder
The libavcodec can be found, but its mpeg4 codec cannot be used. FFMPEG
works if i use the mjpeg (mpeg1) codec instead of mpeg4.
So to install the new version of FFMPEG you have first to remove the
libavcodec packages:
> apt-get remove libavcodec-dev
> apt-get remove libavcodec1d
> apt-get remove libavcodec0d
then download the FFMPEG from http://ffmpeg.mplayerhq.hu/download.html
(the bare sources are fine)
decompress and browse to the FFMPEG sources directory, and use these
commands: ( --prefix=/usr is needed only under debian)
> ./configure --prefix=/usr --mandir=/usr/share/man --enable-shared
> make
> make install
after this, you'll need to make a symbolic link to let transcode see the
right libavcodec shared object.
> ln -s libavcodec.so /usr/lib/libavcodec.so.1d
After this ffmpeg should work.
Bests,
Lik