solved configurable jamroom binary executable

dev3studio
@dev3studio
2 years ago
4 posts
Hi,

Is it possible to add location of jamroom binary executable (diff, ffmpeg & convert) that can be configured?
I keep manually edit, everytime jrCore updated
- modules/jrCore/lib/media.php
- modules/jrImage/include.php

Thanks
updated by @dev3studio: 14 Apr 2015 04:04:02AM
michael
@michael
2 years ago
6,172 posts
Not sure what the question is. You shouldn't be changing any code in modules that you havent created.

If you're altering code in
- modules/jrCore/lib/media.php
- modules/jrImage/include.php

You're doing it wrong.

What are you trying to accomplish?
paul
@paul
2 years ago
3,128 posts
Are you asking for an 'over-ride' feature so that you can run custom versions of those binaries?


--
Paul Asher - JR Developer and System Import Specialist
brian
@brian
2 years ago
9,255 posts
This is already supported. So for example, if you want to override Jamroom's ffmpeg binary and use your own, in your data/config/config.php add this line:

$_conf['jrCore_ffmpeg_binary'] = '/usr/local/bin/ffmpeg';

Of course change the path to your ffmpeg binary. Works the same for other JR binaries.

I develop on OS X and here is the stuff I added to my daya/config/config.php file:

$_conf['jrCore_ffmpeg_binary'] = '/usr/local/bin/ffmpeg';
$_conf['jrCore_diff_binary'] = '/usr/bin/diff';
$_conf['jrAudio_sox_binary'] = '/usr/local/bin/sox';
$_conf['jrAudio_id3v2_binary'] = '/usr/local/bin/id3v2';
$_conf['jrImage_convert_binary'] = '/usr/local/bin/convert';

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
dev3studio
@dev3studio
2 years ago
4 posts
Magnificent!! Thanks a lot guys, you're rocks... :)

Share This

Tags