Comments (8)
I think your http mjpeg stream not respect web standards
It's my fault. The boundary is wrong. I have fixed it.
from go2rtc.
There is no any errors in your logs. mp4 and webrtc doesn't support JPEG codec
from go2rtc.
I have a MJPEG stream with url: http://192.168.1.1/hello , I can play in web browser. How to use go2rtc transfer to stream for clients?
from go2rtc.
media_server | 11:46:16.351 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="multipart: wrong boundary: ����[�\x7f�\x1fg_\/�����k��,���\x0f��\x00ڕم���yG�_��X�=���q[���\x00��W��_���/�\v���W���~-��^��\x03W���..-�������?�_�\x7f�W��\x00� ���\x17~\r�l�m\x1f��/��\[��\x00\n" url=http://192.168.1.1/hello
from go2rtc.
I upgrade go2rtc
to v1.9.0, the MJPEG source could read, but got WRN:
media_server | 12:20:45.889 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:171 > error="multipart: wrong boundary: /���\x00�o....."
and, the MJPEG server got lots of connections:
2024/05/05 12:20:39 Stream: 192.168.1.11:46258 connected
2024/05/05 12:20:39 Stream: 192.168.1.11:46262 connected
2024/05/05 12:20:39 Stream: 192.168.1.11:51328 connected
2024/05/05 12:20:39 Stream: 192.168.1.11:51330 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51340 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51352 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51356 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51366 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51382 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51396 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51404 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51406 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51416 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51422 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51436 connected
2024/05/05 12:20:40 Stream: 192.168.1.11:51440 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51448 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51462 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51476 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51482 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51492 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51504 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51520 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51522 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51532 connected
2024/05/05 12:20:41 Stream: 192.168.1.11:51546 connected
from go2rtc.
I think your http mjpeg stream not respect web standards
from go2rtc.
thanks for your help
from go2rtc.
You shouldn't set content-type: image/jpeg
for mjpeg stream
Lines 69 to 70 in 4c3de3b
You can remove it, so magic source will try to guess type
Lines 31 to 32 in 4c3de3b
from go2rtc.
Related Issues (20)
- Question about adding camera dynamically HOT 3
- High Availability topology
- Error opening stream (INVALIDDATA) from HomeKit source (Aqara G2H) HOT 18
- Using piped backchannel without consumers leads to nil HOT 2
- Re-using homekit URL from HomeAssistant results in ffmpeg initialization error HOT 3
- Need a workflow for TurnServer with WebRTC HOT 3
- exec does not kill previous command when reconnecting HOT 9
- rotate not work HOT 4
- stun/turn webrtc config not respected HOT 12
- Camera health check through online state HOT 2
- How Update under proxmox container? HOT 1
- WebRTC stream freezes HOT 2
- go2rtc no ports assigned HOT 1
- Dahua Camera error="streams: wrong user/pass" HOT 2
- building custom ui HOT 1
- 2024-05-08 06:45:00.311793223 06:45:00.311 WRN [streams] json locked HOT 3
- From one camera stream, provide one with and one without audio? HOT 4
- Source: Nest - "400 Bad Request" HOT 6
- Stream Google Nest (WebRTC) from homeassistant to youtube HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go2rtc.