AST_CRON_audio_2_compress.pl not working

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

AST_CRON_audio_2_compress.pl not working

Postby ZeeTech » Tue May 12, 2015 1:22 pm

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.
ZeeTech
 
Posts: 72
Joined: Sun Apr 04, 2010 5:45 am

Re: AST_CRON_audio_2_compress.pl not working

Postby bobchaos » Tue May 12, 2015 3:58 pm

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?
bobchaos
 
Posts: 171
Joined: Fri Jan 06, 2012 12:46 pm

Re: AST_CRON_audio_2_compress.pl not working

Postby ZeeTech » Wed May 13, 2015 3:39 am

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?
ZeeTech
 
Posts: 72
Joined: Sun Apr 04, 2010 5:45 am

Re: AST_CRON_audio_2_compress.pl not working

Postby bobchaos » Wed May 13, 2015 2:35 pm

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 :(
bobchaos
 
Posts: 171
Joined: Fri Jan 06, 2012 12:46 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 41 guests