News:

--

Main Menu

libx265-dev

Started by Jan Gruuthuse, December 12, 2014, 10:30:01 AM

Previous topic - Next topic

Jan Gruuthuse

fixed on 14.04.1 LTS amd64
solution needed for 12.04 LTS amd64

Quote** Failed at make,
result in /tmp/logbuildPluginsQt4**

/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp: In member function ââ,¬Ëœvirtual bool x265Encoder::setup()ââ,¬â,,¢:
/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp:201:14: error: ââ,¬Ëœx265_paramââ,¬â,,¢ has no member named ââ,¬ËœnoiseReductionââ,¬â,,¢
     MKPARAM (noiseReduction,noise_reduction)
              ^
/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp:172:31: note: in definition of macro ââ,¬ËœMKPARAMââ,¬â,,¢
   #define MKPARAM(x,y) {param.x = x265Settings.y;aprintf("[x265] "#x" = %d\n",param.x);}
                               ^
/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp: In function ââ,¬Ëœvoid dumpx265Setup(x265_param*)ââ,¬â,,¢:
/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp:264:50: warning: format ââ,¬Ëœ%dââ,¬â,,¢ expects argument of type ââ,¬Ëœintââ,¬â,,¢, but argument 2 has type ââ,¬Ëœdoubleââ,¬â,,¢ [-Wformat=]
#define PD(x) printf(#x"\t:%d\n",(double)param->x)
                                                  ^
/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp:346:5: note: in expansion of macro ââ,¬ËœPDââ,¬â,,¢
     PD(psyRd);
     ^
/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp:371:8: error: ââ,¬Ëœx265_paramââ,¬â,,¢ has no member named ââ,¬ËœnoiseReductionââ,¬â,,¢
     PI(noiseReduction);
        ^
/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp:263:46: note: in definition of macro ââ,¬ËœPIââ,¬â,,¢
#define PI(x) printf(#x"\t:%d\n",(int)param->x)
                                              ^
make[2]: *** [ADM_videoEncoder/x265/CMakeFiles/ADM_ve_x265_qt4.dir/ADM_x265Setup.cpp.o] Error 1
make[2]: Leaving directory `/home/jan/avidemux2/buildPluginsQt4'
make[1]: *** [ADM_videoEncoder/x265/CMakeFiles/ADM_ve_x265_qt4.dir/all] Error 2

_____________________________________________
Avidemux v2.6.8 (a24556a)
_____________________________________________
Compiler: GCC 4.8.2
cmake: 2.8.12.2
Build Target: Linux (x86-64)
User Interface: Qt (4.8.6)
_____________________________________________
Kernel: Linux 3.13.0-43-generic (x86_64) (linux-image-3.13.0-43-generic   13.0-43.72)
Distribution: Linux Ubuntu 14.04.1 LTS (Trusty)

Intel Core i7-3770K @ 3.50GHz (4 Cores/8 Threads) with 16 GB ram

Desktop: Unity 7.2.3
Display Server: X Server 1.15.1
Display Driver: nouveau  1.0.11
OpenGL: 4.2.0

OpenGL Vendor: NVIDIA Corporation
OpenGL Renderer: GeForce GT 520/PCIe/SSE2 1024MB (810/535MHz)
OpenGL: 4.2.0 NVIDIA 304.125

NVIDIA VDPAU Driver Shared Library  304.125
_____________________________________________

ajschult


Jan Gruuthuse

1.4+201-b1c2ef980dfe
I build https://www.videolan.org/developers/x265.html, perhaps I'm missing an instruction?
cd ~/x265/build
$ cmake ../source

-- cmake version 2.8.12.2
-- Detected x86 target processor
-- Found Yasm 1.2.0 to build assembly primitives
-- hg found at /usr/bin/hg
-- x265 version 1.4+201-b1c2ef980dfe
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jan/x265/build
$ make[ 64%] Built target common
[ 89%] Built target encoder
[ 89%] Built target x265-shared
[100%] Built target cli
[100%] Built target x265-static
$ sudo make install
Quote[ 64%] Built target common
[ 89%] Built target encoder
[ 89%] Built target x265-shared
[100%] Built target cli
[100%] Built target x265-static
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/lib/libx265.a
-- Up-to-date: /usr/local/include/x265.h
-- Up-to-date: /usr/local/include/x265_config.h
-- Up-to-date: /usr/local/lib/libx265.so.40
-- Up-to-date: /usr/local/lib/libx265.so
-- Up-to-date: /usr/local/lib/pkgconfig/x265.pc
-- Up-to-date: /usr/local/bin/x265

weird is: x265x265: error while loading shared libraries: libx265.so.40: cannot open shared object file: No such file or directory

Jan Gruuthuse

#3
If solution for solving 1st post shared issue, please post this solution
update: did un-install above and now testing with:

sudo apt-add-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install libx265-dev


x265 --version
x265 [info]: HEVC encoder version 1.4
x265 [info]: build info [Linux][GCC 4.8.2][64 bit] 8bpp
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX


Jan Gruuthuse

#4
now getting somewhere:
x265           Yes
-- Checking for x264
-- *****************
-- Found x264.h
--   core version: 142
-- Found x264.h
-- Found x264 library
-- Found x264_encoder_open_142 in /usr/lib/x86_64-linux-gnu/libx264.so
-- Found x264
-- Compiler Flags: /usr/include
-- Linker Flags  : /usr/lib/x86_64-linux-gnu/libx264.so

-- x264 plugin activated.
-- Checking for x265
-- *****************
-- Found x265.h
-- Found x265_config.h
--   core version: 35
-- Found x265.h
-- Found x265 library
-- Found x265_encoder_open_35 in /usr/lib/x86_64-linux-gnu/libx265.so
-- Found x265
-- Compiler Flags: /usr/include
-- Linker Flags  : /usr/lib/x86_64-linux-gnu/libx265.so

-- x265 plugin activated.

Jan Gruuthuse

anyone knows of libx265-dev solution on 12.04 amd64?

ajschult

/home/jan/avidemux2/avidemux_plugins/ADM_videoEncoder/x265/ADM_x265Setup.cpp:201:14: error: ââ,¬Ëœx265_paramââ,¬â,,¢ has no member named ââ,¬ËœnoiseReductionââ,¬â,,¢
     MKPARAM (noiseReduction,noise_reduction)

for X265_BUILD >= 40, the noiseReduction member in x265_param has been split into noiseReductionInter and noiseReductionIntra

http://hg.videolan.org/x265/rev/ec06f5878e8b

this can be #if'd away in avidemux except that avidemux's noise_reduction appears in x265_settings.conf, and I'm not sure how that gets handled.

KoolAidMan

#7
Looks like >= version 40 of x265 is broken due to a change in libx265. I am in the middle of rebuilding my development machine for Fedora 21 which came out earlier this week. Once the development machine is rebuilt, I will look into this.

Update: http://avidemux.org/smuf/index.php/topic,16311.0.html

Jan Gruuthuse

Thank you all for your effort and time.