error 6 in librtmp.so.0

Issues related to applications and software problems
Post Reply
mettavihari
Posts: 3
Joined: 2017/04/30 09:15:11

error 6 in librtmp.so.0

Post by mettavihari » 2017/04/30 09:47:32

I run CentOS 7 on a virtual server.
I get the below error several times a month.
This month I had it 5 times
ffmpeg[13357]: segfault at 7ffcd5ecd7f8 ip 00007ff746d069a0 sp 00007ffcd5ecd800 error 6 in librtmp.so.0[7ff746cff000+17000]

This is my version of ffmpeg.
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-gnutls --enable-libass --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --disable-stripping
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Hyper fast Audio and Video encoder

I tried to upgrade ffmpeg but it said that I am having the latest version installed.
This system is receiving updates from RHN Classic or Red Hat Satellite.
http://apt.sw.be/redhat/el7/en/x86_64/d ... repomd.xml: [Errno 14] curl#6 - "Could not resolve host: apt.sw.be; Name or service not known"
Trying other mirror.
Loading mirror speeds from cached hostfile
* base: centosx4.centos.org
* epel: mirror01.idc.hinet.net
* extras: centosx4.centos.org
* scrpms: scrpms.net
* updates: centosx4.centos.org
No packages marked for update

My repos are as below.
== BEGIN ls /etc/yum.repos.d ==
CentOS-Base.repo
CentOS-CR.repo
CentOS-Debuginfo.repo
CentOS-fasttrack.repo
CentOS-Media.repo
CentOS-Sources.repo
CentOS-Vault.repo
dag.repo
epel.repo
epel-testing.repo
scrpms.repo
spacewalk-client-nightly.repo
spacewalk-client.repo
== END ls /etc/yum.repos.d ==

I noted in a previous post that it is not recommended to build my own version of ffmpeg.
I would much appreciate to have a link to a solution.

best regard
Mettavihari

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: error 6 in librtmp.so.0

Post by TrevorH » 2017/04/30 12:26:36

The 'dag' repo you're using, I'm pretty sure is just an alias for rpmforge and that repo has been dead for about 4 years and has received no updates of any sort recently. I've got no ideas what scrpms is, never heard of that one. Nothing in my repos provides librtmp.so.0 but the nux-dextop has

Code: Select all

librtmp-2.4-2.20131205.gitdc76f0a.el7.nux.x86_64 : Support library for RTMP streams
Repo        : @nux-dextop
Matched from:
Filename    : /usr/lib64/librtmp.so.1
Since the .so. version is newer, I suspect that whole package is newer than the one you're using. It will probably need you to rebuild ffmpeg, if you built that yourself, if you want to switch to the newer version. I don't know where else you would have found ffmpeg 2.7.2 as nux only ships 2.6.8.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mettavihari
Posts: 3
Joined: 2017/04/30 09:15:11

Re: error 6 in librtmp.so.0

Post by mettavihari » 2017/05/15 03:44:22

Greetings,

Thank you for the reply
The present ffmpeg is coming from
http://scrpms.net/pub/RPMS/debug/el7/x86_64/

How do I report the problem and to whom do I report ?

Mettavihari

mettavihari
Posts: 3
Joined: 2017/04/30 09:15:11

Re: error 6 in librtmp.so.0

Post by mettavihari » 2017/05/16 05:30:07

Greetings,

I compiled ffmpeg and followed the installation in this website
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos

The files installed in my ~/home/bin folder.
Now I have 2 versions of ffmpeg on my server.

I am a bit confused about the structure of files (libraries) installed.
These files was put in ~/ffmpeg-sources/
fdk-aac
yasm
ffmpeg
lame-3.99.5
libogg-1.3.2
libvorbis-1.3.4
libvpx
x264

These files where put in ~/bin/
ffmpeg
ffprobe
ffserver
lame
vsyasm
x264
yasm
ytasm

The only reference to librtmp is this one.
./ffmpeg-sources/ffmpeg/libavformat/librtmp.c

What confused me is that normally binaries are installed in /bin/ or /usr/bin/
but this time all of the files was installed in ~/My-home/bin/

The system works when call the correct binary,
but is this the canonical way of installing in Centos ?
or should I have edited the .configure program to give the right paths.

Sorry for my ignorance.
It is over 20 years since I ran Redhat so I am a bit out of trouch.

Mettavihari

Post Reply