Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

SELinux has x264 use flag disabled?

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

SELinux has x264 use flag disabled?

  • Quote

Post by xathin » Wed Aug 27, 2008 1:42 am

I'm trying to create a media server, but I am not able to build any packages with the x264 use flag. Just wondering why it is disabled in the profile? I have tested building x264 on my system, which is amd64, and it did not come up with any errors or anything.

I need to be able to transcode videos on the fly so they will play on my Xbox 360, and I have several videos which are mkv format and don't want to always spend time transcoding videos just to play on Xbox.
Top
SeaTiger
l33t
l33t
User avatar
Posts: 603
Joined: Thu Nov 22, 2007 8:32 am
Location: Toronto, Ontario, Canada

  • Quote

Post by SeaTiger » Wed Aug 27, 2008 3:13 am

Did you try enable it in /etc/make.conf?

I am using profile 'default/linux/amd64/2008.0/desktop' and it is also not enable by default.

I believe profiles, depending on build type like general, desktop, server, etc, only enable minimal set of USE flags by default. User will have to enable other flags base on individual needs.

PS: the package ufed is a very good and up to date USE flag editor to manage make.conf USE flag.
Top
defenderBG
l33t
l33t
User avatar
Posts: 817
Joined: Tue Jun 20, 2006 4:43 pm

  • Quote

Post by defenderBG » Wed Aug 27, 2008 6:04 am

I think it is disabled (not beeing able to use it at all) under SElinux. No idea however why.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Wed Aug 27, 2008 6:06 am

Code: Select all

$ cat /etc/portage/package.use
media-video/ffmpeg a52 aac amr imlib mp3 theora vorbis x264 xvid
media-video/ffmpeg encode

Code: Select all

$ emerge -pv ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/ffmpeg-0.4.9_p20080326  USE="a52 aac amr encode imlib mmx mp3 theora threads vorbis xvid zlib -X (-altivec) -bindist -debug -doc -hardcoded-tables -ieee1394 -ipv6 -network -sdl -test -truetype (-x264)" 0 kB
I know that x264 is in the package.use.mask for the amd64 profiles, I'm just wondering why it is when a build of x264 works without any issues. I need x264 support enabled with ffmpeg so I can use the transcoding features of fuppes.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Wed Aug 27, 2008 6:09 am

defenderBG wrote:I think it is disabled (not beeing able to use it at all) under SElinux. No idea however why.
It is not only under SELinux, but under any amd64 (and would assume ia64) profiles as well. It seems odd that it would be blocked, and no reason that I can see in any of the files explain why it is masked.
Top
SeaTiger
l33t
l33t
User avatar
Posts: 603
Joined: Thu Nov 22, 2007 8:32 am
Location: Toronto, Ontario, Canada

  • Quote

Post by SeaTiger » Wed Aug 27, 2008 7:55 am

Code: Select all

[I] media-video/ffmpeg
     Installed versions:  0.4.9_p20080326(01:09:51 AM 08/23/2008)(X a52 aac amr encode ieee1394 imlib mmx mp3 network sdl theora threads truetype vorbis x264 xvid zlib -altivec -bindist -debug -doc -hardcoded-tables -ipv6 -test)
I am using amd64 desktop profile. It is not disable in the profile, but not enable either.
Top
defenderBG
l33t
l33t
User avatar
Posts: 817
Joined: Tue Jun 20, 2006 4:43 pm

  • Quote

Post by defenderBG » Wed Aug 27, 2008 8:01 am

I am using amd64 2008.0 desktop profile and i can (and have) enable x264 support in ffmpeg.
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Wed Aug 27, 2008 8:26 am

My mistake. I had thought all 64 bit versions had it masked. Seems to only affect SELinux Hardened profiles.

Anyone have any ideas as to why the use flag is masked for SELinux?
Top
yngwin
Retired Dev
Retired Dev
User avatar
Posts: 4572
Joined: Thu Dec 19, 2002 1:22 pm
Location: Suzhou, China

  • Quote

Post by yngwin » Wed Aug 27, 2008 3:21 pm

x264 is disabled in all profiles, and then enabled by overriding it in x86, amd64 and ppc arch profiles. what does `eselect profile show` say?
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Thu Aug 28, 2008 3:04 am

Code: Select all

# eselect profile show
Current make.profile symlink:
  /usr/portage/profiles/selinux/2007.0/amd64/hardened
Why would it not be enabled in the SELinux profiles then?
Top
cord
Guru
Guru
User avatar
Posts: 346
Joined: Sat Apr 28, 2007 10:25 am

  • Quote

Post by cord » Sun Aug 31, 2008 3:02 pm

You have to comment the line with "x264" at file /usr/portage/profiles/selinux/use.mask, and x264 flag will be enabled.
I did it, and it works for me without problems.
Top
yngwin
Retired Dev
Retired Dev
User avatar
Posts: 4572
Joined: Thu Dec 19, 2002 1:22 pm
Location: Suzhou, China

  • Quote

Post by yngwin » Sun Aug 31, 2008 5:00 pm

xathin wrote:

Code: Select all

# eselect profile show
Current make.profile symlink:
  /usr/portage/profiles/selinux/2007.0/amd64/hardened
Why would it not be enabled in the SELinux profiles then?
Looks like you stumbled on a bug here.

To enable it you should add "-x264" (yes, that's a hyphen, I know it is counterintuitive) to /etc/portage/profile/package.use.mask (meaning that you will disable/override the mask this way).

cord: Note that /usr/portage/profiles/ will get overwritten by your next sync.
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Top
xathin
n00b
n00b
User avatar
Posts: 64
Joined: Tue Sep 05, 2006 8:11 pm
Location: Vancouver, BC

  • Quote

Post by xathin » Tue Sep 02, 2008 4:21 am

yngwin wrote:Looks like you stumbled on a bug here.

To enable it you should add "-x264" (yes, that's a hyphen, I know it is counterintuitive) to /etc/portage/profile/package.use.mask (meaning that you will disable/override the mask this way).

cord: Note that /usr/portage/profiles/ will get overwritten by your next sync.
Will this be fixed anytime soon so that the change can be permanent?
Top
Post Reply

13 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic