@echo off if "%1" == "h" goto begin mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit :begin start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.136/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//136.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.114/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//114.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.126/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//126.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.127/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//127.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.111/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//111.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.112/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//112.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.128/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//128.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.129/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//129.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.113/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//113.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.137/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//137.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.130/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//130.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.131/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//131.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.134/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//134.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.135/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//135.m3u8" start /B cmd /c ffmpeg -i "rtsp://admin:password@192.168.0.5/h264/ch1/main/av_stream" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_flags 2 -hls_list_size 3 -c:v libx264 -crf 30 "D://nginx-1.20.2//nginx-1.20.2//html//m3u8//5.m3u8"
bat 后台执行命令
最新推荐文章于 2024-08-28 16:02:06 发布