-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg copy mjpeg on Raspberry Pi not outputting stream #747
Comments
Here is the error:
|
|
mpeg: streams magic: unsupported header: ff80ff80 in the web page and 18:48:52.201 ERR github.com/AlexxIT/go2rtc/internal/mjpeg/init.go:166 > error="streams: magic: unsupported header: 14500145" on browser reload, and: 18:51:20.732 ERR github.com/AlexxIT/go2rtc/internal/mjpeg/init.go:166 > error="streams: EOF" another time.
|
Don't use add page for adding ffmpeg sources. Add them to the config page. |
Just noticed that if I reboot, with all of the above already in place, vs. "Save & Restart", I do get an output, no errors, but "flashing" black output (output flashes on and off with all back showing when the video isn't). |
Can you record some data and post it here?
|
With an iphone connected to the HDMI to USB adapter:
Resulting file plays OK in VLC either way Note: this is the system os ffmpeg. I don't know how to access the ffmpeg inside the gotortc docker container. |
Your upload broker. Can you add it once again? |
No. All of your uploading broken |
Your MJPEG stream has some trash on start. I hope latest release will handle this |
Thanks for working on this. The stream starts without error, and the CPU load is MUCH less, however the resulting stream (played in chrome, on windows) randomly and frequently "flashes" between normal and a black background. Very roughly one or more times per second or two. Using the OS supplied ffmpeg:
Seems like that plays in VLC OK, however, without "flashing". https://drive.google.com/file/d/1PBkv6NBON7C2pw19UwLk01tga6s_Sz8T/view?usp=sharing I tried adding -r30 to the ffmpeg command. That gave a ton more dts error messages. https://drive.google.com/file/d/1PDuoAEviHYxu71JLpApOjmYkb0O8jpeI/view?usp=sharing Both of those files seem to play normally when streamed:
however. |
Both your files has a lot of trash at the start. I have already increase probe size to 4KB. I don't think it is good idea to increase this size more. This can be problem for other users |
On Raspberry Pi Bookworm (or DietPi) on Pi 5, Pi 4, and Pi zero 2 W, using docker and go2rtc 1.8.2, the "add" format for copying an mjpeg stream doesn't output a stream:
Produces a ffmpeg command:
However when you go to: http://192.168.102.48:1984/stream.html?src=one&mode=mjpeg
It says mjpeg eof. I've also seen something about a header error, but didn't capture the error.
My input device:
Just FYI ,
which gives:
works, but I'd like to have ffmpeg just do the copy, rather than decode and re-encode the same format, to save CPU.
The text was updated successfully, but these errors were encountered: