Raspberry Pi camera only works with mjpeg not h264 #1041
Labels
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
Milestone
Raspberry Pi 5 with freshly installed & fully updated full version of the Raspberry Pi OS 64bit desktop and a Raspberry Pi Camera 3 using 64bit go2rtc downloaded binary. Following the examples in the go2rtc documentation here, I have edited go2rtc.yaml to include the following lines.
go2rtc starts normally from CLI and if I use the WebUI on port 1984, I can click on the picam_mjpeg stream link and streams to the webpage, exactly as expected.
However, if I click on the picam_h264 stream link, the web page is blank grey only displaying the text mse: streams: EOF
The CLI gives the following error:
11:32:31.187 ERR github.com/AlexxIT/go2rtc/internal/mjpeg/init.go:166 > error="streams: EOF"
If I click on the stream.html link, I get a grey video page with the following text:
FIXED
However, if I edit go2rtc.yaml to add the switch --libav-format h264 to the picam_h264 stream entry, as below, everything seems to work exactly as it should.
The text was updated successfully, but these errors were encountered: