mediamtx: RTMP publishing fails with Dahua cameras
Which version are you using?
v0.17.13
Which operating system are you using?
- macOS amd64 Docker
Describe the issue
Sending an RTMP stream from a camera with no audio and it’s failing with this error:
2022/01/13 03:57:37 INF [RTMP] [conn 172.17.0.1:64268] closed (stream doesn't contain tracks with supported codecs (H264 or AAC))
Describe how to replicate the issue
- start the server
- publish with a camera that supports RTMP but no audio
- observer above error
Did you attach a network dump?
yes (made the extension .log because it was on the list of approved extension and seemed like the “best” option)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 32 (16 by maintainers)
Commits related to this issue
- rtmp: support clients that publish with empty metadata or no metadata (#386) (#769) — committed to bluenviron/mediamtx by aler9 5 years ago
- fix RTMP publishing with Dahua cameras (#769) — committed to bluenviron/mediamtx by aler9 5 years ago
- fix RTMP publishing with Dahua cameras (#769) — committed to bluenviron/mediamtx by aler9 5 years ago
- fix RTMP publishing with Dahua cameras (#769) — committed to bluenviron/mediamtx by aler9 5 years ago
- fix RTMP publishing with Dahua cameras (#769) — committed to bluenviron/mediamtx by aler9 5 years ago
- fix RTMP publishing with Dahua cameras (#769) — committed to bluenviron/mediamtx by aler9 5 years ago
- fix compatibility with RTMP Dahua cameras (#2289) (#769) — committed to bluenviron/mediamtx by aler9 3 years ago
- fix compatibility with RTMP Dahua cameras (#2289) (#769) — committed to bluenviron/mediamtx by aler9 3 years ago
- fix compatibility with RTMP Dahua cameras (#2289) (#769) (#2298) — committed to bluenviron/mediamtx by aler9 3 years ago
This is supposedly fixed with #2298, which was developed from data provided in #2289, which is very similar to the data attached here. If the bug persists, feel free to open another issue.
If you’re a little familiar with Golang, in my opinion you have all the means to get this issue fixed. You can then send a pull request, and it will be merged.