ffmpeg 使用笔记(二)

本文详细记录了FFmpeg在命令行中的各种使用技巧,包括视频转码、音频处理、格式转换、视频截取等操作,帮助读者深入理解和掌握FFmpeg的基本功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值