3 ms·
And in windows batch. record your face with hardcoded timestamp for working on customer systems. @echo on setlocal set ID=IDIDID set VIDFILENAME=%date:~-4,4
by totetsu 4y ago
And in windows batch. record your face with hardcoded timestamp for working on customer systems.
@echo on
setlocal
set ID=IDIDID
set VIDFILENAME=%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%
echo "-segment_atclocktime 1 "
ffmpeg -loglevel error -rtbufsize 150M -y -f dshow -i video="YOUR HD Camera" -r 10 -f segment -segment_time 1800 -segment_format mp4 -vcodec libx264 -preset fast -threads 1 -crf 28 -tune zerolatency -thread_type slice -slices 1 -intra-refresh 1 -r 10 -g 60 -s 640x480 -aspect 4:3 -b:v 512k -minrate:v 256k -maxrate:v 2.5M -bufsize:v 5M -pix_fmt yuv420p -vf "drawtext=fontfile=/Windows/Fonts/arial.ttf:text='%%{localtime\:%%x %%X}': fontcolor=white@0.8: x=7: y=10" %ID%_%VIDFILENAME%-%%03d.mp4
- svnpenn 4y agoPlease stop using batch files grandpa. PowerShell has been around for 15 years now.
- totetsu 4y agoTell that to the domain admin that keeps overwriting my work laptops registry to not allow powershell scripts to execute..
- jaipilot747 4y agoEven ignoring the fact that batch files still have their place in a world where PowerShell exists, that is a needlessly inflammatory reply to someone who shared their knowledge with everyone.