Skip to content
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

RTMP ingest from Dahua cameras is not working (only audio track accepted) #2289

Closed
2 of 13 tasks
rudyryk opened this issue Sep 4, 2023 · 4 comments · Fixed by #2298
Closed
2 of 13 tasks

RTMP ingest from Dahua cameras is not working (only audio track accepted) #2289

rudyryk opened this issue Sep 4, 2023 · 4 comments · Fixed by #2298
Labels
bug Something isn't working rtmp

Comments

@rudyryk
Copy link

rudyryk commented Sep 4, 2023

Which version are you using?

v1.0.1

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

Describe the issue

When pushing RTMP stream from Dahua IP camera (e.g model N45DJ62), the video track is rejected and only audio track is available on the stream.

Describe how to replicate the issue

  1. Start the MediaMTX server with RTMP enabled
  2. In the camera's settings:
    • Network
      • Access Platform
        • RTMP
          • Enable main stream, enable RTMP, put custom address of MediaMTX RTMP ingest endpoint
  3. Check server's logs and/or try to view the stream

Did you attach the server logs?

Yes

Dahua-RTMP-dump-20230904-0840.log.zip

Did you attach a network dump?

Yes

Dahua-RTMP-dump-20230904-0840.pcap.zip

I've used a camera connected to my laptop's Ethernet port:

  • Camera: 192.168.88.251 / 24
  • Laptop: 192.168.88.1 / 24
  • MediaMTX running inside a Docker container with a port 1935 port exposed, with config mediamtx-20230904-0840.yml.zip
@aler9
Copy link
Member

aler9 commented Sep 4, 2023

@rudyryk please try this nightly release (branch dev/dahua) and let me know if it works. If it doesn't attach another network dump. Thanks for your collaboration.

[link removed]

@aler9 aler9 added bug Something isn't working rtmp labels Sep 4, 2023
@rudyryk
Copy link
Author

rudyryk commented Sep 5, 2023

@aler9 Awesome, this is working!

@aler9
Copy link
Member

aler9 commented Sep 16, 2023

fixed in v1.1.0

Copy link
Contributor

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working rtmp
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants