On Mon, 05 Jun 2006 17:59:11 JST
[EMAIL PROTECTED] (Andrew Church) wrote:

> I've taken the liberty of modifying your module for NMS, and added it to
> the CVS tree as encode/encode_x264.c. 

Thank you very much! I wanted to wait for some more feedback before doing
further changes and nearly forgot about it.. I'm sorry I won't have time
to have a closer look at your changes before next week.

Seems you also converted the sources to fit to the "transcode coding
conventions" - thanks a lot. Unfortunately this makes it harder to
find out the real changes with "diff". 

> I can't get mplayer to play the resulting streams (either raw or AVI).

Maybe your version of mplayer is too old? Afaik mplayer uses libavcodec to
decode h264, so your problems might be related to the version of ffmpeg
that your mplayer is linked against (I'm using cvs versions from
2006-02-18). What's the output of mplayer?

> but if you'd like to play with it, feel free and post any fixes you
> come up with.

I just wanted to do a quick test, but something seems wrong with the
automagic (either in cvs or on my debian amd64 testing system). After
running "autoreconf -i -f" I had to add a semicolon in "./configure" to
make it run. I also don't have x264 installed in /usr/local atm (because
of checkinstall problems) and the options "--with-x264-includes" and
"--with-x264-libs" don't seem to have much effect yet. So for today I've
given up :-(

I'm sorry I don't have the time to do more testing now but I definitely
will do so next week..

Bye for now,

Christian Bodenstedt

P.S.: Here's a "log" of my quick test:

$ cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvstc login
Logging in to :pserver:[EMAIL PROTECTED]:2401/cvstc
CVS password: 
$ cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvstc co -r HEAD transcode
[...]
$ cd transcode
$ autoreconf -i -f 
/usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
Putting files in AC_CONFIG_AUX_DIR, `autotools'.
/usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
configure.in: installing `autotools/install-sh'
configure.in: installing `autotools/missing'
aclib/Makefile.am: installing `autotools/depcomp'
encode/Makefile.am: installing `autotools/compile'
$ ./configure --disable-{freetype2,altivec,libdvdread} --enable-x264 
--with-x264-includes=/usr/src/x264-snapshot-20060526-2245 
--with-x264-libs=/usr/src/x264-snapshot-20060526-2245
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
[...]
checking for pkgconfig support for libmpeg2... no
checking how to determine LIBMPEG2_CFLAGS... default
checking mpeg2dec/mpeg2.h usability... yes
checking mpeg2dec/mpeg2.h presence... yes
checking for mpeg2dec/mpeg2.h... yes
checking how to determine LIBMPEG2_LIBS... default
checking for mpeg2_init in -lmpeg2... yes
checking for internal static framebuffer support... yes
checking whether v4l support is requested... no
./configure: line 25465: syntax error near unexpected token `}'
./configure: line 25465: `echo "${ECHO_T}no" >&6; }'

$ emacs configure
$ diff -u configure~ configure 
--- configure~  2006-06-13 10:46:42.000000000 +0200
+++ configure   2006-06-13 10:52:27.000000000 +0200
@@ -25461,7 +25461,7 @@
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-       v4l2=no { echo "$as_me:$LINENO: result: no" >&5
+       v4l2=no; { echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6; }
 fi

$ ./configure --disable-{freetype2,altivec,libdvdread} --enable-x264 
--with-x264-includes=/usr/src/x264-snapshot-20060526-2245 
--with-x264-libs=/usr/src/x264-snapshot-20060526-2245
[...]
----------------------------------------
Summary for transcode 1.1.0-cvs:
----------------------------------------

core options
----------------------------------------
static AV-frame buffering      yes
A52 default decoder            

libavcodec
----------------------------------------
headers                        -I/usr/include
libraries                      -L/usr/lib -lavcodec -lavutil -lm -lz -lpthread
build                          3344384
version                        CVS
statically linked              no

hardware support
----------------------------------------
v4l/v4l2                       no
OSS                            no
bktr                           no
sunau                          no

optional module support
----------------------------------------
PV3                            no
NuppelVideo                    no

optional package support
----------------------------------------
IBP (libxio)                   no
X11                            yes
libmpeg2                       yes
libpostproc                    no
freetype2                      no
lame                           yes
xvid                           no
x264                           yes
ogg                            no
vorbis                         no
theora                         no
libdvdread                     no
pvm3                           no
libdv                          no
libquicktime                   no
lzo                            no
a52                            no
libxml2                        no
mjpegtools                     no
sdl                            no
gtk                            no
imagemagick                    no
libjpeg                        yes
bsdav                          no
iconv                          yes

$ make
[...]
(cd .libs && rm -f encode_null.la && ln -s ../encode_null.la encode_null.la)
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  
-D_REENTRANT -DMOD_PATH=\"/usr/local/lib/transcode\" -I.. -I../src   -Wall 
-Wstrict-prototypes -Wmissing-prototypes -g -O2 -MT encode_x264.lo -MD -MP -MF 
".deps/encode_x264.Tpo" -c -o encode_x264.lo encode_x264.c; \
        then mv -f ".deps/encode_x264.Tpo" ".deps/encode_x264.Plo"; else rm -f 
".deps/encode_x264.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT 
-DMOD_PATH=\"/usr/local/lib/transcode\" -I.. -I../src -Wall -Wstrict-prototypes 
-Wmissing-prototypes -g -O2 -MT encode_x264.lo -MD -MP -MF 
.deps/encode_x264.Tpo -c encode_x264.c  -fPIC -DPIC -o .libs/encode_x264.o
encode_x264.c:54:18: error: x264.h: No such file or directory
encode_x264.c:75: error: syntax error before 'x264_param_t'
[... lots of errors because x264.h was not found ...]

Reply via email to