invoso.com Report post Posted 01/28/2011 11:10 AM I try to convert recorded call as wav convert to mp3 format. I use "RUN PROGRAM" MODULE in call termination script with command line: "callrecord\ffmpeg.exe -i $RV[session_id].wav $RV[session_id].mp3" but nothing happens this command working properly C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe -i 11012811591454.wav 11012811591454.mp3 Share this post Link to post
SupportTeam Report post Posted 01/28/2011 11:37 AM Suggest specifying the full path to ffmpeg.exe, as you have specified in the working example. Share this post Link to post
invoso.com Report post Posted 01/28/2011 11:46 AM I tried both versions but still with this same result. Share this post Link to post
SupportTeam Report post Posted 01/28/2011 11:59 AM Please post the vgEngine trace capturing the call. Please .ZIP up traces before posting. Share this post Link to post
invoso.com Report post Posted 01/28/2011 03:15 PM on demand.. Kopia 0128_1130_vgEngine.zip Share this post Link to post
SupportTeam Report post Posted 01/28/2011 08:02 PM Have you tried providing the full file path specification for the filenames passed in as arguments? ffmpeg.exe may need full paths specified so that it knows where to find/put the files. 113813.338 6 4 2 state [konwersja] Run Program 113813.338 6 4 2 rv replace start [C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe $RV[session_id].wav $RV[session_id].mp3] 113813.338 6 4 2 rv replace end [C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe 11012811373254.wav 11012811373254.mp3] 113813.338 6 4 2 File.Exists(C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe) is true 113813.338 6 4 2 running program=[C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe], arguments=[11012811373254.wav 11012811373254.mp3], windowStyle=NormalFocus, timeout=1 113813.338 6 4 2 ShellExe start [C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe][11012811373254.wav 11012811373254.mp3] 113813.353 6 4 2 Run Program waiting... (processHandle=39392, pid=4652) 113813.353 6 4 2 t timer set 1 sec : EV_TIMEOUT_CHECKONSTATE 113814.322 22 4 2 timer EV_TIMEOUT_CHECKONSTATE 113814.322 22 4 2 qScr add evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE 113814.322 6 4 2 qScr run evScriptEvent sCode=[EV_TIMEOUT_CHECKONSTATE] iActionID=0, crn=0[0|0|0|0|0][|||||] 113814.322 6 4 2 scriptevent EV_TIMEOUT_CHECKONSTATE 0|0|0 || 113814.322 6 4 2 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE 113814.353 6 4 2 Process.HasExited error when test (Proces zakoñczy³ siê, wiêc ¿¹dane informacje nie s¹ dostêpne.). Assume completed. 113814.353 6 4 2 task completed. vgm=92, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[] 113814.353 6 4 2 ExeResult_NextVgm has not been set. check for Result file. 113814.353 6 4 2 no result file returned from program (VGRUNRESULT_4.TXT).C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe $RV[session_id].wav $RV[session_id].mp3 113814.353 6 4 2 FindNextVgmTitleInPathList: next module title is=[Hangup the Call 1] 115959.791 6 4 2 state [konwersja] Run Program 115959.791 6 4 2 rv replace start [callrecord\ffmpeg.exe -i $RV[session_id].wav $RV[session_id].mp3] 115959.791 6 4 2 rv replace end [callrecord\ffmpeg.exe -i 11012811591454.wav 11012811591454.mp3] 115959.791 6 4 2 File.Exists(C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe) is true (orignal relative path was: callrecord\ffmpeg.exe) 115959.791 6 4 2 running program=[C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe], arguments=[-i 11012811591454.wav 11012811591454.mp3], windowStyle=NormalFocus, timeout=1 115959.791 6 4 2 ShellExe start [C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe][-i 11012811591454.wav 11012811591454.mp3] 115959.791 6 4 2 Run Program waiting... (processHandle=39460, pid=5708) 115959.791 6 4 2 t timer set 1 sec : EV_TIMEOUT_CHECKONSTATE 115959.806 22 4 2 db odbc query completed. 120000.619 4 4 2 timer EV_TIMEOUT_CHECKONSTATE 120000.619 4 4 2 qScr add evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE 120000.619 6 4 2 qScr run evScriptEvent sCode=[EV_TIMEOUT_CHECKONSTATE] iActionID=0, crn=0[0|0|0|0|0][|||||] 120000.619 6 4 2 scriptevent EV_TIMEOUT_CHECKONSTATE 0|0|0 || 120000.619 6 4 2 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE 120000.619 6 4 2 Process.HasExited error when test (Proces zakoñczy³ siê, wiêc ¿¹dane informacje nie s¹ dostêpne.). Assume completed. 120000.619 6 4 2 task completed. vgm=86, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[] 120000.619 6 4 2 ExeResult_NextVgm has not been set. check for Result file. 120000.619 6 4 2 no result file returned from program (VGRUNRESULT_4.TXT).callrecord\ffmpeg.exe -i $RV[session_id].wav $RV[session_id].mp3 120000.619 6 4 2 FindNextVgmTitleInPathList: next module title is=[Hangup the Call 1] Share this post Link to post
invoso.com Report post Posted 01/30/2011 05:53 PM I tried many options. Can You to test by yourself? [konwersja] Type=Run Program DispSize=69 Txt=Run the program, and read in the results file created. The results supplied can then be used in other parts of the script (see Result Variables). ProgramToRun="C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\ffmpeg.exe" -i "C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\$RV[session_id].wav" "C:\Program Files\VoiceGuide7\Scripts\Maciej\callrecord\$RV[session_id].mp3" RunHoldPlay= RunMode=1 RunWait=1 on {success} goto [Hangup the Call 1] on {fail} goto [Hangup the Call 1] http://www.ffmpeg.org/ ffmpeg.exe (freeware) convert wav to mp3 Kopia 0130_1828_vgEngine.zip Share this post Link to post
SupportTeam Report post Posted 01/31/2011 10:27 AM Worked fine when we tried it here. See attached output file and trace. Maybe try with simpler paths first? eg: c:\ffmpeg.exe -i c:\0.wav c:\0.mp3 ffmpegTest.zip Share this post Link to post
invoso.com Report post Posted 01/31/2011 07:59 PM Can You share your script for this solution witch You tested? Share this post Link to post
SupportTeam Report post Posted 02/01/2011 06:26 AM We repeated the test. Here is the script, trace, and the input and output files. test2.zip Share this post Link to post
invoso.com Report post Posted 02/02/2011 10:35 AM HI! You're right but only when source and target file (wav and mp3) are as string declared, but when is as variable $RV[...] don't working. 0202_1125_vgEngine no mp3.zip Kopia 0202_1128_vgEngine mp3 created.zip ExcelTest.zip Share this post Link to post
SupportTeam Report post Posted 02/02/2011 12:15 PM Works fine on our test systems. Are you sure the .WAV file that you use as input to the program exists? Please see out attached test with $RVs used as part of filenames in Run Program command line: runprogtestwithRV.zip Share this post Link to post
invoso.com Report post Posted 02/03/2011 01:57 PM Hi, Now it's working. Thanks! Share this post Link to post