Script to Convert files to MP3 & Change Storage Location
![Post Post](./styles/vicidial/imageset/icon_post_target.gif)
Posted:
Tue Jul 15, 2014 9:58 am
by vijaymuddu
hi everybody
I am vijay & new to this forum
I want some help to setup my goautodial 2.1 server
I want the call recording to be recorded in a particular folder eg: \var\www\html\calls
questions
where can i change the settings of folder location
I want files to be converted in to filename.mp3 currently its converting in to filename-all.mp3 format
or
I want to save the converted mp3 files to a different location & filename.mp3 format
please can anybody help me with this issue
Thanks
Re: Script to Convert files to MP3 & Change Storage Location
![Post Post](./styles/vicidial/imageset/icon_post_target.gif)
Posted:
Tue Jul 22, 2014 12:41 am
by ivschakravarthi
lame should be installed in your machine
In your crontab ,enable the following
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
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
open the program /usr/share/astguiclient/AST_CRON_audio_2_compress.pl
In that file under MP3 compression,you will find a line
`$lamebin -b 16 -m m --silent "$dir2/$ALLfile" "$dir2/MP3/$MP3file"`;
Comment it
and write as follows
`$lamebin -b 16 -m m --silent "$dir2/$ALLfile" "/var/www/html/RECORDINGS/MP3/$MP3file"`;
Re: Script to Convert files to MP3 & Change Storage Location
![Post Post](./styles/vicidial/imageset/icon_post_target.gif)
Posted:
Sun Aug 03, 2014 11:09 am
by vijaymuddu
Thanks a lot for your reply
I followed your script but the files are getting saved as example 20140803-153856_9012867019_FFFU_megarima-all.mp3
i want to remove -all from the file name, like 20140803-153856_9012867019_FFFU_megarima.mp3
please can you help me with this..
i have a dailer configured by someone, they have created some script that does this but i am not able to figure out the script location
Also the files in.wav & out.wav are automatically stored in a folder with current date eg: 2014-08-03
Then the in out files are converetd on to .wav file in 20140803-153856_9012867019_FFFU_megarima.wavformat
i can give you teamviwer to check if you can figure it out
my skype id is vijaymuddu you can add me .
Please