LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-22-2015, 05:54 AM   #1
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 135

Rep: Reputation: 15
Talking SlackBuild for OMXPlayer


Hi folks,

for my Raspberry Pi I made a SlackBuild for OMXPlayer, that now can be downloaded here: http://mirror.modweb.de/slackware/14.1/slackbuilds/

Before making the SlackBuild I tried to use a pre-compiled debian package instead. The video output worked well, but the sound quality over HDMI was horrible.

With my SlackBuild the package is built with soft floatpoint support (default was hard float) and all seems to work well on my raspi.

This Slackbuild is for ARM architectures only, since imho it wouldn't make sense to build it for other architectures, because OMXPlayer was originally made for the Raspberry Pi version of XBMC, to use hardware accelerated video playback.

Building the omxplayer package took about 160 minutes on my Raspberry Pi 1 type B.

Last edited by slacksam; 04-22-2015 at 10:43 AM. Reason: Typo
 
Old 05-30-2015, 11:55 PM   #2
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 928

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by slacksam View Post
Hi folks,

for my Raspberry Pi I made a SlackBuild for OMXPlayer, that now can be downloaded here: http://mirror.modweb.de/slackware/14.1/slackbuilds/

Before making the SlackBuild I tried to use a pre-compiled debian package instead. The video output worked well, but the sound quality over HDMI was horrible.

With my SlackBuild the package is built with soft floatpoint support (default was hard float) and all seems to work well on my raspi.

This Slackbuild is for ARM architectures only, since imho it wouldn't make sense to build it for other architectures, because OMXPlayer was originally made for the Raspberry Pi version of XBMC, to use hardware accelerated video playback.

Building the omxplayer package took about 160 minutes on my Raspberry Pi 1 type B.
Thank your for the SlackBuild! It built fine here. One thing of note, I couldn't get the audio to work until I did this:
Code:
chmod a+rw /dev/vchiq
I went ahead and added that to /etc/rc.d/rc.local so it will preserve after reboots. It's working great! I can get HD videos to play with no problems.
 
1 members found this post helpful.
Old 05-31-2015, 04:55 AM   #3
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 135

Original Poster
Rep: Reputation: 15
Thanks, stormtracknole.
You're right. That line I also had to add to my /etc/rc.d/rc.local but forgot to mention it.
 
Old 05-31-2015, 02:21 PM   #4
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 928

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by slacksam View Post
Thanks, stormtracknole.
You're right. That line I also had to add to my /etc/rc.d/rc.local but forgot to mention it.
Not a problem. Thanks for providing the SBo.
 
Old 12-25-2015, 04:15 AM   #5
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 135

Original Poster
Rep: Reputation: 15
The sources for the OMXPlayer SlackBuild have been moved to github:
https://github.com/Sammyboy/omxplayer-SlackBuild
 
Old 08-06-2017, 07:57 AM   #6
asarangan
Member
 
Registered: Jul 2009
Posts: 32

Rep: Reputation: 5
Quote:
Originally Posted by slacksam View Post
The sources for the OMXPlayer SlackBuild have been moved to github:
https://github.com/Sammyboy/omxplayer-SlackBuild
Thanks for the Slackbuild. I had to do couple of things to make it compile (on Slackware 14.2-arm).
(1) I had to edit the omxplayer.SlackBuild and replace FLOAT=${FLOAT:-soft} with FLOAT=${FLOAT:-hard}.
(2) the compiler would not run unless the firmware files are in /opt/vc. I had to download them from https://github.com/raspberrypi/firmware and put them in /opt/vc. It may not need all the files, but it was easy enough to place the whole thing there.
 
1 members found this post helpful.
Old 08-07-2017, 03:34 AM   #7
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 135

Original Poster
Rep: Reputation: 15
Thanks for your feedback, asarangan.

Quote:
(1) I had to edit the omxplayer.SlackBuild and replace FLOAT=${FLOAT:-soft} with FLOAT=${FLOAT:-hard}.
The soft float flag is meant to work with RPI 1. But if you are using RPI 2 or RPI 3 and need hard float, you don't need to change that in the SlackBuild.
Instead you can do
Code:
FLOAT=hard sh omxplayer.SlackBuild
 
Old 08-07-2017, 04:24 AM   #8
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 533

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by slacksam View Post
Thanks for your feedback, asarangan.

The soft float flag is meant to work with RPI 1. But if you are using RPI 2 or RPI 3 and need hard float, you don't need to change that in the SlackBuild.
Instead you can do
Code:
FLOAT=hard sh omxplayer.SlackBuild
The toolchain generates the correct output - you don't need to specify -mfloat-abi=hard
I only added it during the bootstrap since I was hacking things all over the place and wanted to make sure that it was building correctly, and I just never removed it from the standard set of flags.
 
1 members found this post helpful.
Old 08-07-2017, 04:47 PM   #9
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, Manjaro, Arch
Posts: 135

Original Poster
Rep: Reputation: 15
Thanks, drmozes!
I committed the removal of the FLOAT variable to my git repository.
Also, I added some info to the README file about the firmware folder.
 
  


Reply

Tags
download, hardware acceleration, raspberry pi, slackbuild, video player


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. ReaperX7 Slackware 3 01-28-2015 09:30 AM
LXer: HOWTO: Launch OMXPlayer via a GUI LXer Syndicated Linux News 0 08-03-2012 08:51 PM
LXer: Multimedia on the Raspberry Pi with omxplayer LXer Syndicated Linux News 0 06-17-2012 08:51 PM
OO 3.01 slackbuild ? brodo Slackware 4 02-01-2009 04:06 PM
SlackBuild CrEsPo Slackware 2 03-19-2006 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration