How to make avidemux 2.6.7 use x264 codec?

Started by Anton, January 19, 2014, 01:00:41 PM

Previous topic - Next topic

Anton

HI there.
I have problem with x264 codec.
I can't make avidemux 2.6.7 use it. But I have installed x264 separately.
I did next steps:

install x264 codec:

$ cd x264
$ ./configure --enable-debug --enable-shared
$ make
$ su
# make install

then, install avidemux:

$ cd avidemux_2.6.7
$ bash bootStrap.bash
$ cd debs
$ su
# rpm -i --nodeps avidemux3-*.rpm

During compilation avidemux show messages that x264 is found. So compiling looks ok. But when i run avidemux i don't see MPEG4 AVC option. I see only MPEG4 ASP.

If anybody knows what is wrong, please help me.

s3rg3

if your x264 lib is in /usr/local/lib move it to /usr/lib

it's something like that.

mean


Anton

Moving libx264.so.128 into /usr/lib doesn't help.

I have compiled avidemux with
$ bash bootStrap.bash --rpm --with-cli
just forgot to write it.

When i run avidemux with terminal it prints next messages:
$ avidemux_qt4 --help
...
[videoEncoder6]Name :YV12Encoder ApiVersion :6 Description :Simple YV12 Encoder (c) 2009 Mean         
[VideoEncoder6] Registered filter /usr/lib64/ADM_plugins6/videoEncoders/libADM_ve_yv12.so as  Simple YV12 Encoder (c) 2009 Mean                                                                               
Unable to load [/usr/lib64/ADM_plugins6/videoEncoders/libADM_ve_x264_qt4.so]: libx264.so.128: cannot open shared object file: No such file or directory                                                       
[videoEncoder6]Symbol loading failed for /usr/lib64/ADM_plugins6/videoEncoders/libADM_ve_x264_qt4.so   
/usr/lib64/ADM_plugins6/videoEncoders/libADM_ve_x264_qt4.so:CannotLoad                                 
...

mean

 [/usr/lib64/ADM_plugins6/videoEncoders/libADM_ve_x264_qt4.so]: libx264.so.128: cannot open shared object file: No such file or directory                                     

What ldd /usr/lib64/ADM_plugins6/videoEncoders/libADM_ve_x264_qt4.so says ?
Either the libx264.so.128 is not in your LD_LIBRARY_PATH or maybe a 32 vs 64 bits issue

Anton

$ ldd /usr/lib64/ADM_plugins6/videoEncoders/libADM_ve_x264_qt4.so
...
libQtCore.so.4 => /usr/lib64/libQtCore.so.4 (0x00007fc88c7f7000)
libx264.so.128 => not found
libADM_core6.so => /usr/lib64/libADM_core6.so (0x00007fc88c5ec000)
...

Strange. Why it is not found?

mean


Anton

I mean that ldd shows that libx264.so.128 was not found.
But now i understand what was the problem.

$ ldconfig -v
/lib64:
        libutil.so.1 -> libutil-2.17.so
...
/usr/lib64:
        libADM_render6_qt4.so -> libADM_render6_qt4.so
...
/usr/local/lib64:
/usr/lib64/seamonkey:
        libfreebl3.so -> libfreebl3.so
...
/lib:
        libdl.so.2 -> libdl-2.17.so
...
/usr/lib:
        libwine.so.1 -> libwine.so.1.0
...
/usr/lib64/tls: (hwcap: 0x8000000000000000)
        libnvidia-tls.so.331.38 -> libnvidia-tls.so.331.38
/usr/lib/tls: (hwcap: 0x8000000000000000)
        libnvidia-tls.so.331.38 -> libnvidia-tls.so.331.38

This output doesn't have /usr/local/lib:. But my x264 library is in /usr/local/lib folder.

$ cat /etc/ld.so.conf
/lib64
/usr/lib64
/usr/local/lib64
/usr/x86_64-slackware-linux/lib64
/usr/lib64/seamonkey

Then i added /usr/local/lib in /etc/ld.so.conf.
$ echo /usr/local/lib >> /etc/ld.so.conf

then
$ ldconfig

and
$ ldd /usr/lib64/ADM_plugins6/videoEncoders/libADM_ve_x264_qt4.so
...
libQtCore.so.4 => /usr/lib64/libQtCore.so.4 (0x00007f6103843000)
libx264.so.128 => /usr/local/lib/libx264.so.128 (0x00007f6103504000)
libADM_core6.so => /usr/lib64/libADM_core6.so (0x00007f61032f9000)
...

Now avidemux works fine! The option MPEG4 AVC is present.

Many thanks help.