Page 1 of 1

AST_CRON_audio_2_compress.pl not working

PostPosted: Tue May 12, 2015 1:22 pm
by ZeeTech
From last few days i am not getting converted MP3 recording file, i have debug AST_CRON_audio_2_compress.pl script but didn't find anything. Recording files are available in /ORIG folder.

perl /usr/share/astguiclient/AST_CRON_audio_2_compress.pl –-MP3 --debugX
----- DEBUG -----
----- SUPER DEBUG -----
SOX: LAME:
DONE... EXITING

Crontab entries -
### recording mixing/compressing/ftping scripts
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl –-MP3
#2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM



Vicidial VERSION: 2.12-479a, BUILD: 150313-0912
asterisk 1.8, libpri version: 1.4.15 with DAHDI Version: 2.6
Dell R720 – No additional hardware.

Re: AST_CRON_audio_2_compress.pl not working

PostPosted: Tue May 12, 2015 3:58 pm
by bobchaos
If I recall correctly, ORIG is in the monitorDONE folder, which contains processed recordings. Unprocessed recordings should go under /var/spool/asterisk/monitor/ where the script takes them from and pass them over to monitorDONE.

I'd recommend you take a backup first since i'm not 100% on this, but I believe if you move the recordings in ORIG to monitor they should get picked up on the next cron run. As to how they got there in the first place, I can only assume the script was ran manually with improper parameters (most likely forgot to add a format).

Anyone out there care to verify that I'm not remembering all this wrong?

Re: AST_CRON_audio_2_compress.pl not working

PostPosted: Wed May 13, 2015 3:39 am
by ZeeTech
Yes you are correct ORIG contains wave files but i need converted files in MP3 format.
I have moved few files in /var/spool/asterisk/monitor but again it processed it with wav.

Any more suggestions?

Re: AST_CRON_audio_2_compress.pl not working

PostPosted: Wed May 13, 2015 2:35 pm
by bobchaos
I took a minute to go read the script before answering this time and I found my mistake: in monitor you'll find unmixed sounds, which are then mixed and moved to monitorDONE as raw, and finally to the appropriate subfolder once converted to your preferred format. So to setup our test, you'll need to move those recordings in the root of monitorDONE and then run the script with debugX enabled.

Sorry I mislead you with my first post :(