只需一步,快速开始
ffmpeg -i rtmp://bbs.chinaffmpeg.com/live/孙悟空1 -i rtmp://bbs.chinaffmpeg.com/live/孙悟空0 -filter_complex "nullsrc=size=640x240[base]; [0:v]scale=320x240[in1]; [1:v]scale=320x240[in0]; [base][in0] overlay=shortest=1 [tmp1]; [tmp1][in1] overlay=shortest=1:x=320 " -strict -2 -y output.mp4
您需要 登录 才可以下载或查看,没有帐号?立即注册
使用道具 举报
ffmpeg -re -loop 1 -i bg.jpg -i rtmp://bbs.chinaffmpeg.com/live/孙悟空1 -i rtmp://bbs.chinaffmpeg.com/live/孙悟空0 -filter_complex \ "[1:a][2:a] amix=inputs=2[au]; \ [1:v]scale=600x337[a]; \ [2:v]scale=600x337; \ [0:v][a]overlay=20:(main_h/2)-(overlay_h/2):shortest=1[c]; \ [c]overlay=main_w-overlay_w-20:(main_h/2)-(overlay_h/2)[video]" \ -map "[video]" -map "[au]" -c:v libx264 -b:v 512k -c:a aac -b:a 32k -preset veryfast -f flv -y output.mp4
gdsean 发表于 2017-2-8 11:32 如果加个背景在后面,两个视频缩小一点在前面呢?
gt_99 发表于 2017-4-13 23:57 管理员大神,如果要用C++实现应该怎么写咧,能不能教我我一下谢谢了
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|Archiver|ChinaFFmpeg
GMT+8, 2024-12-27 02:11 , Processed in 0.058094 second(s), 19 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.