> ## Content Index
> Fetch the complete content index at: https://helpmonks.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# SELinux and FFMpeg
- URL: https://helpmonks.com/blog/selinux-and-ffmpeg/
- Published: 2009-09-28T00:00:00.000Z
- Updated: 2026-04-04T01:58:25.000Z
- Description: SELinux is a good thing, but it also requires you to watch out on some libraries. Sometimes, something just fails, because SELinux does not allow it to run.
- Author: Nitai
- Tags: email marketing

SELinux is a good thing, but it also requires you to watch out on some libraries. Sometimes, something just fails, because SELinux does not allow it to run. This so happens when you have SELinux installed and want to run FFMpeg.

I just run into this when I tried to run FFMpeg and got this error message:

*“error while loading shared libraries: /usr/lib/libavcodec.so.52: cannot restore segment prot after reloc: Permission denied”*

In order to run FFMpeg without problems I had to add the remove the restrictions for SELinux with:

chcon -t textrel\_shlib\_t ‘/usr/lib/libavutil.so.49.15.0’  
chcon -t textrel\_shlib\_t ‘/usr/lib/libavcodec.so.52.20.0’  
chcon -t textrel\_shlib\_t ‘/usr/lib/libavformat.so.52.31.0’  
chcon -t textrel\_shlib\_t ‘/usr/lib/libavformat.so.52.31.0’  
chcon -t textrel\_shlib\_t ‘/usr/lib/libswscale.so.0.7.1’