ffmpeg 使用笔记(二)

来源:互联网 发布:幼儿美工室活动记录 编辑:程序博客网 时间:2024/06/05 20:02
ffmpeg -re -f concat -i /data/cache/recorder/wangmanjie5ffmpeg -re -f concat -i 659.txt -vcodec copy -acodec copy -f flv rtmp://livecn/live/wangffmpeg -f gdigrab -framerate 15 -offset_x 0 -offset_y 0 -video_size 1920*1080  -i desktop -b 91000k  -f flv rtmp://chinacache/live/mjffmpeg.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.txtfile '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 -1You 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.m3u8The -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.
原创粉丝点击