News:

--

Main Menu

Compile error plugins

Started by mulder77, September 05, 2012, 10:56:46 AM

Previous topic - Next topic

mulder77

Hi, I am trying to compile the recent snapshot 8174.
"buildPluginsCommon" fails.

I am compiling on Fedora17/x86_64

I tried the nightly build for Fedora/32 which works fine but is missing x264 support (or do I do something wrong?).

Is this is a known issue? Shall I add log information?


Thanks

mean

What is the error ?
You got it in /tmp/logbuildCommon or simply
cd buildPluginsCommon
make

The nightly on fedora is a very old version now

mulder77

I assume this is the error:

Linking CXX shared library libADM_ve_xvid4.so
cd /home/markus/snapshot_8174/buildPluginsCommon/ADM_videoEncoder/xvid4 && /usr/bin/cmake -E cmake_link_script CMakeFiles/ADM_ve_xvid4.dir/link.txt --verbose=1
/usr/lib64/ccache/c++  -fPIC  -fmessage-length=0 -fmessage-length=0 -O3 -DNDEBUG   -shared -Wl,-soname,libADM_ve_xvid4.so -o libADM_ve_xvid4.so CMakeFiles/ADM_ve_xvid4.dir/ADM_xvid4.cpp.o CMakeFiles/ADM_ve_xvid4.dir/xvid4Plugin.cpp.o CMakeFiles/ADM_ve_xvid4.dir/xvid4Dialog.cpp.o -L/home/markus/snapshot_8174/install/usr/lib64 -Wl,--as-needed -Wl,-z,defs -lstdc++ /usr/local/lib/libxvidcore.a -lADM_core6 -lADM_coreUI6 -lADM_coreVideoEncoder6 -lADM_coreImage6 -lADM_coreUtils6 -lm -Wl,-rpath,/home/markus/snapshot_8174/install/usr/lib64:
/usr/local/lib/libxvidcore.a(encoder.o): In function `FrameCodeB':
encoder.c:(.text+0x1eed): undefined reference to `pthread_create'
encoder.c:(.text+0x1f41): undefined reference to `pthread_join'
/usr/local/lib/libxvidcore.a(encoder.o): In function `FrameCodeP':
encoder.c:(.text+0x28dd): undefined reference to `pthread_create'
encoder.c:(.text+0x2931): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[2]: *** [ADM_videoEncoder/xvid4/libADM_ve_xvid4.so] Error 1
make[2]: Leaving directory `/home/markus/snapshot_8174/buildPluginsCommon'
make[1]: *** [ADM_videoEncoder/xvid4/CMakeFiles/ADM_ve_xvid4.dir/all] Error 2
make[1]: Leaving directory `/home/markus/snapshot_8174/buildPluginsCommon'
make: *** [all] Error 2

mulder77

BTW, is there a way to revert to an older revision?
I have a working 8025 installation, but there is a problem with x264 encoding. Encoding starts fine but after some minutes the performance of encoding drops to roughly 10% of the regular performance. CPU usage keeps at the same high level as it was running at normal speed.

Jan Gruuthuse


mulder77

Thanks for the hint.
I downgraded to r8140, which compiles fine.

But still: encoding with x264 runs fine for a few seconds and then the performance drops from >30 fps to 3-9 fps. CPU usage is between 200-350%.

What might be wrong?

Jan Gruuthuse

#6
What CPU are you using? Have you thermal monitoring on the CPU? What are the settings in Edit -> Preferences -> tab [Threading] set to (Ã,°) Auto-Detect instead of Custom.
Lower Prioritisation for Encoding.
If you're familiar with inside of computers check for dust on fans or cooling blockage?
While encoding HD content 720P to xvid on Intel core I5-2100K, temperature is around 40Ã,° C and processing 40-68 FPS. Only one core gets used at 100% from time to time. CPU should never go over 100% under normal conditions. CPU overclocked?
check tis post: re-encoding 720p HDTV video

mean

If you build a shared version of xvid the problem will go away

mulder77

Shared version of xvid or x264?
Can you point me into the direction how to do that?


Thanks

mean

The other solution is to edit
cmake/admAsNeeded.cmake
and put a # at the beginning of line 12
i.e.

#TARGET_LINK_LIBRARIES( ${name} "-Wl,-z,defs")

That should remove the build time error

mulder77

OK, this helped to compile r8174.

But the problem remains: performance drops to 3-8 fps instead of at least 30 fps.
I can see 8 threads of avidemux3_qt4 with a total of 360%.

My CPU temperature seems to be ok:

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +54.0Ã,°C  (high = +80.0Ã,°C, crit = +86.0Ã,°C)
Core 0:         +51.0Ã,°C  (high = +80.0Ã,°C, crit = +86.0Ã,°C)
Core 1:         +54.0Ã,°C  (high = +80.0Ã,°C, crit = +86.0Ã,°C)
Core 2:         +52.0Ã,°C  (high = +80.0Ã,°C, crit = +86.0Ã,°C)
Core 3:         +52.0Ã,°C  (high = +80.0Ã,°C, crit = +86.0Ã,°C)

CPU is Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz

Clocked at 2.5GHz
cpu MHz         : 2501.000

Other encoders like MPEG4/ff doesn't show this behaviour.

Any ideas?

mean

Could be 2 things :
* The video starts with easy to encode material
* The drop happens when sounds is getting also processed

Try reducing the # of cores used for x264

Are you sure the x264 lib has been compiled properly, with asm & all ?

mulder77

How can I check that?

x264 is installed through RPM-Fusion.
Shall I try to compile a version on my own?

Audio: I disabled audio encoding, no effect
Easy to encode: I have old recordings from the past which were processed easily. Now they don't anymore.
Cores: The options in the tab are greyed out, I cannot modify them.

mean

you could try to build your own x264, make sure you have yasm  installed

mulder77

yasm is installed.
I could compile and install my own build of x264 to /usr/local

I am using the qt4 version as the gtk version is not working, e.g. I can't cut there.

I always have two entries in the encoder drop down menu for x264, I assume due to this:
-rwxr-xr-x 1 root root  37865 Sep  5 17:35 libADM_ve_x264_other.so
-rwxr-xr-x 1 root root 237384 Sep  6 12:22 libADM_ve_x264_qt4.so

If I install my own x264 library, there is only one entry left in the GUI which I can't configure.
I recompiled avidemux after installing x264.