2
#video camera stream
ffmpeg -f avfoundation -framerate 30 -i "2:0" -ac 2 -vcodec libx264 -maxrate 2000k -bufsize 2000k -acodec libmp3lame -ar 44100 -b:a 128k -f flv "rtmp://localhost/WebRTCApp/190298084573663685351334"

#Overlay stream
phantomjs runner.js | ffmpeg -y -c:v png -f image2pipe -r 60 -i - -c:v libx264 -pix_fmt yuv420p -f flv "rtmp://localhost/WebRTCApp/730688628419054058672897"

#Merge stream
ffmpeg -i "rtmp://localhost/WebRTCApp/190298084573663685351334 live=1" -i "rtmp://localhost/WebRTCApp/730688628419054058672897 live=1" -framerate 25 -filter_complex "overlay=0:160" -vcodec libx264 -preset ultrafast -f flv "rtmp://localhost/WebRTCApp/730606987018847653718161"

我正在使用 Ant Media Server - 社区版

我在合并流中收到如下错误

Larger timestamp than 24-bit: 0xffff4300kB time=00:02:55.39 bitrate= 248.0kbits/s speed=0.802x    
Larger timestamp than 24-bit: 0xffff4307kB time=00:02:55.42 bitrate= 248.1kbits/s speed=0.761x    
Larger timestamp than 24-bit: 0xffff430ekB time=00:02:55.44 bitrate= 248.1kbits/s speed=0.723x    
Larger timestamp than 24-bit: 0xffff4316
Larger timestamp than 24-bit: 0xffff4306kB time=00:02:55.52 bitrate= 248.2kbits/s speed=0.722x    
Larger timestamp than 24-bit: 0xffff430d
Larger timestamp than 24-bit: 0xffffc4e6
Larger timestamp than 24-bit: 0xffffe53e
WriteN, RTMP send error 32 (7 bytes)5653kB time=00:02:57.35 bitrate= 261.1kbits/s speed=0.722x    
WriteN, RTMP send error 32 (42 bytes)

在 VLC 播放器上,我得到灰色/破碎的抖动流

请帮助识别和解决问题。

4

0 回答 0