ffmpeg -re -f concat -i /data/cache/recorder/wangmanjie5
ffmpeg -re -f concat -i 659.txt -vcodec copy -acodec copy -f flv rtmp://livecn/live/wang
ffmpeg -f gdigrab -framerate 15 -offset_x 0 -offset_y 0 -video_size 1920*1080 -i desktop -b 91000k -f flv rtmp://chinacache/live/mj
ffmpeg.exe -i out.flv -vf delogo=10:10:300:300:0 -f flv pl.flv 模糊水印
ffmpeg -re -safe 0 -f concat -i test.txt -vcodec copy -acodec copy -f flv rtmp://chinacache/live/wmj
文件格式 test.txt
file 'a.mp4'
-safe 0 可以用绝对路径,否则只能用相对路径
ffmpeg -f gdigrab -framerate 29.97 -offset_x 0 -offset_y 0 -video_size 1920*1080 -i desktop -b 3000k -c:a copy -f flv "rtmp://send1a.douyu.com/live/1312264r1iHrBWfC"
循环
-threads 2 -stream_loop -1
You should be able to use the -stream_loop
-1 flag before the input (-i):
ffmpeg -threads 2 -re -fflags +genpts -stream_loop -1 -i ./test.mp4 -c copy ./test.m3u8
The -fflags
+genpts will regenerate the pts timestamps so it loops smoothly, otherwise the time sequence will be incorrect as it loops.
FFmpeg >= 2.8.4 is required in this case.
ffmpeg 使用笔记(二)
最新推荐文章于 2025-01-14 20:54:33 发布