1
.\ffmpeg.exe -re -stream_loop -1 -i .\1.mp4 -rtsp_transport tcp -vcodec copy -codec copy -f rtsp rtsp://192.168.6.209:554/live/m
一些脑残视频pps,没有header,现有的ffmepg加了一些头也不能解决
.\ffmpeg.exe -re -stream_loop -1 -i D:\使用\20260105\视频\car1.mp4 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -tune zerolatency -b:v 1024k -vf scale=1920:1080 -x264-params "keyint=30:min-keyint=30:scenecut=0" -bf 0 -profile:v high -level 4.1 -bsf:v dump_extra -f rtsp rtsp://192.168.6.116:554/str1/m
2 图片压缩成视频
for i in (seq061068);doecho"file′(seq 0 6 1068); do echo "file '(seq061068);doecho"file′i.jpg'"; done > list.txt
0 6 1068
是按照图片规律改
ffmpeg -f concat -safe 0 -i list.txt -r 25 -c:v libx264 -pix_fmt yuv420p out.mp4