HostOnNet Blog

Error we got while doing the ffmpeg installation on CentOS 7

I used the following command to install x264 and x264 is used to encode video files in mp4, m4v, h.264 (HD) output format.

cd /usr/local/src/hostonnet/
wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xvf last_x264.tar.bz2
cd /usr/local/src/hostonnet/x264-snapshot-*
make clean && make distclean
./configure --prefix=/usr --enable-shared
make && make install

and I got the following error

filters/video/resize.c: In function ‘pick_closest_supported_csp’:
filters/video/resize.c:215:30: error: ‘AVComponentDescriptor’ has no member named ‘depth’
         if( pix_desc->comp[i].depth > 8 )
                              ^
make: *** [filters/video/resize.o] Error 1

We tried with different versions

https://download.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2
https://download.videolan.org/pub/videolan/x264/snapshots/last_x264.tar.bz2
https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20050824-2219.tar.bz2

Here is the another error we received when using https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20050825-2245.tar.bz2

x264.c:814:17: warning: pointer targets in passing argument 2 of ‘parse_cqm’ differ in signedness [-Wpointer-sign] b_error |= parse_cqm( optarg, param->cqm_8py, 64 ); ^ x264.c:321:12: note: expected ‘uint8_t *’ but argument is of type ‘int8_t *’ static int parse_cqm( const char *str, uint8_t *cqm, int length ) ^ gcc -Wall -I. -O4 -ffast-math -D_X264_ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -s -fomit-frame-pointer -DHAVE_GETOPT_LONG=1 -c -o matroska.o matroska.c gcc -o x264 x264.o matroska.o libx264.a -lm -s install -d /usr/bin /usr/lib /usr/include install -m 644 x264.h /usr/include install -m 644 libx264.a /usr/lib install x264 /usr/bin ranlib /usr/lib/libx264.a

Again we tested with older version ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20050824-2245.tar.bz2 and it was working.

cd /usr/local/src/hostonnet/
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20050824-2245.tar.bz2
tar xvf x264-snapshot-20050824-2245.tar.bz2
cd /usr/local/src/hostonnet/x264-snapshot-*
make clean && make distclean
./configure --prefix=/usr --enable-shared
make && make install

Another error was

esolving ftp6.nero.com (ftp6.nero.com)... 62.93.193.115
Connecting to ftp6.nero.com (ftp6.nero.com)|62.93.193.115|:80... connected.
HTTP request sent, awaiting response... 404 Not Foun

When running the below command

cd /usr/local/src/hostonnet/
wget -c http://ftp6.nero.com/tools/NeroDigitalAudio.zip
unzip NeroDigitalAudio.zip -d nero
cd /usr/local/src/hostonnet/nero/linux
install -D -m755 neroAacEnc /usr/bin

I solved the error by replacing the Nero download link with http://ftp6.nero.com/tools/NeroAACCodec-1.5.1.zip

cd /usr/local/src/hostonnet/
wget -c http://ftp6.nero.com/tools/NeroAACCodec-1.5.1.zip
unzip NeroDigitalAudio.zip -d nero
cd /usr/local/src/hostonnet/nero/linux
install -D -m755 neroAacEnc /usr/bin

About hostonnet2

Bootstrap and Android LOVER.

I’ve been creating things for the web for over 10 years, from the period of flash and table based layout web sites till mobile and tab friendly web sites.

Posted in CentOS, Installation