我想合并两个流,并且我想要一个同时在单个流中包含两个视频的单个流,两个流都希望同时可见,左半部分第一个视频应该在那里,右半部分第二个视频应该在那里,我尝试使用覆盖,但由于我是 avconv 的新手,我无法获得所需的结果,我给出了下面的代码,我已经尝试过
avconv -i "rtmp://localhost/live/mystream1 live=1" -i "rtmp://localhost/live/mystream2 live=1" -i test.png -filter_complex nullsrc=size=526:340,overlay=0:0,overlay=10:20,scale=50:50,scale=50:50 -vcodec libx264 -c:a libmp3lame -b 256k -f flv rtmp://localhost/live/test
使用此命令时出现以下错误
Error while filtering.
Failed to update header with correct duration.
[flv @ 00000000030E95A0] Failed to update header with correct filesize.
frame= 0 fps= 0 q=0.0 Lsize= 2kB time=0.03 bitrate= 488.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead 3676.190476%
[libx264 @ 00000000007BBDE0] final ratefactor: 108.44