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
I have always used the above commands to create a raw Raspberry Pi h264 stream, and then use VLC to open “http://Raspberry Pi ip:8091” to watch the video stream, but there will be a freeze every 30 seconds, and an error ES_OUT_SET_( GROUP_)PCR is called too late.
Solution:
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
Use the –h264 fps option to suggest the fps of the VLC input stream.
Similar Posts:
- The difference between system.err.println and system.out.println
- Raspberry Pi 4 graphics win: Open-source Vulkan driver support is coming
- GCC refers to math. H header file, and there are some errors such as undefined reference to ` POW ‘when compiling
- [Solved] must appear in the GROUP BY clause or be used in an aggregate function
- [Solved] Origin parameter: http://localhost:8081/actuator/hystrix.stream is not in the allowed list of proxy
- ORA-30567: name already used by an existing [How to Solve]
- Error: not a group by expression [How to Solve]
- Oracle error: not a group by expression [How to Solve]
- failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
- Java – Stream has already been operated upon or closed