树莓派raspivid创建摄像头视频流出现ES_OUT_SET_(GROUP_)PCR is called too late解决办法


raspivid -o - -t 0 -w 640 -h 480 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8091}' :demux=h264

一直都是通过以上命令来创建树莓派h264裸流,然后用VLC打开“http://树莓派ip:8091”来观看视频流,但每隔30秒就出现一次卡顿,报错ES_OUT_SET_(GROUP_)PCR  is called too late 。

解决办法:

raspivid -o - -t 0 w 640 -h 480 -fps 25| cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8091}' :demux=h264 --h264-fps=25

使用--h264 fps选项建议VLC输入流的fps。

参考:https://raspberrypi.stackexchange.com/questions/95420/raspivid-es-out-set-group-pcr-is-called-too-late-stream-keeps-freezing


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM