Windows Scripts

Convert from G723 to G711 using FFMPEG

 ffmpeg -i 888001000029999.wav -c:a pcm_alaw output1.wav 
@echo off

: Setting a Timestamp variable which can be used in a batch file

FOR /f "tokens=1-4 delims=/ " %%A IN ('date /t') DO (
set nday=%%A
set nmonth=%%B
set nyear=%%C
set SORTDATE=%nyear%%nmonth%%nday%

FOR /f "tokens=1-2 delims=: " %%A IN ('time /t') DO (
set hour=%%A
set min=%%B

set SORTTIME=%hour%%min%
set TIMESTAMP=%sortdate%-%sorttime%

echo windump -i 2 -n -s 0 -c 100000 -w %COMPUTERNAME%-%TIMESTAMP%.pcap port 5060
windump -i 1 -n -s 0 -c 100000 -w %COMPUTERNAME%-%TIMESTAMP%.pcap port 5060

ping -n 10 >NUL
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies