solved configurable jamroom binary executable

alt=
@dev3studio
9 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: 04/14/15 04:04:02AM
michael
@michael
9 years ago
7,717 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
9 years ago
4,326 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
9 years ago
10,148 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
alt=
@dev3studio
9 years ago
4 posts
Magnificent!! Thanks a lot guys, you're rocks... :)

Tags