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

  1. start the server
  2. publish with a camera that supports RTMP but no audio
  3. 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)

no_audio.log

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 32 (16 by maintainers)

Commits related to this issue

Most upvoted comments

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.