On 28-12-16 01:36, david wrote:
> At 04:31 PM 12/27/2016, you wrote:
>> On 28-12-16 01:00, david wrote:
>> > Does anyone know where I could find an RPM for ffmpeg on Redsleeve on
>> > Raspberry PI 2/3?
>>
>> Not really. I'm not aware of repos for RedSleeve, other than what we
>> have.
>> I would look at the repo that you would get it from, if you were on
>> CentOS/x86_64 and then rebuild their sources. One of the first hits I
>> get in google is:
>> http://linoxide.com/linux-how-to/install-ffmpeg-centos-7/
>>
>> So I would download sources from here:
>> http://li.nux.ro/download/nux/dextop/el7Server/SRPMS/ and start building
>> till all dependencies are fulfilled.
>>
>> probably you'll need to enable the RedSleeve epel repo when undertaking
>> this.
>>
>> Let us know if it works.
>>
>> Jacco
>> _______________________________________________
>> users mailing list
>> [email protected]
>> https://lists.redsleeve.org/mailman/listinfo/users
>
>
> I assume I build it on my existing Redsleeve platform?  I have never
> built anything in the Linux world, relying upon prebuilt RPMs.  Would
> this be a major undertaking?  Is there a "howto" guide on building
> software? 

correct, building on a RedSleeve platform is the way to go.
there are two methods to this: 'rpmbuild' and 'mock'
rpmbuild is easier, mock is better reproducible, but needs a bit more
setup. google for them to get the idea.

I just tried 'mock ffmpeg-2.6.8-3.el7.nux.src.rpm'. this results in:
Error: No Package found for faac-devel
Error: No Package found for fdk-aac-devel
Error: No Package found for lame-devel >= 3.98.3
Error: No Package found for x264-devel >= 0.0.0-0.31
Error: No Package found for x265-devel
Error: No Package found for xvidcore-devel
So apparently you'll also need to build these rpms. This does not look
like a major undertaking, but it depends on how many build dependencies
these rpms have. Sometimes the build dependencies are circular, i.e.
they depend on each other (or themselves). If that is the case things
might get a bit hairy.

My recommendation would be to install mock ('yum install mock'), spend
some time making a good config file for it (I do not have a good example
ready, mine are all pointing to local repos). Then build the
dependencies mentioned above, put them in a repo (createrepo) which you
add to the mock config and then try to build ffmpeg.

Jacco

PS. my mock config looks like this:
config_opts['root'] = 'el-7-arm'
config_opts['target_arch'] = 'armv5tel'
config_opts['legal_host_arches'] = ('armv5tel', 'armv6l', 'armv7l')
config_opts['chroot_setup_cmd'] = 'install @buildsys-build'
config_opts['dist'] = 'el7'  # only useful for --resultdir variable subst
config_opts['releasever'] = '7'

config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=2
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=

# repos
[Redsleeve_7.3_base]
name=RSEL7 7.3 repo
failovermethod=priority
baseurl=file:///home/jacco/Redsleeve7/7.3/base  #change this, it will
not work for you

# add more repos here, updates, extra, upstream extra, epel, etc.

"""






_______________________________________________
users mailing list
[email protected]
https://lists.redsleeve.org/mailman/listinfo/users

Reply via email to