#11669(undetermined:new): Compatibility issue with RTMP push from Dahua cameras
#11669: Compatibility issue with RTMP push from Dahua cameras -------------------------------------+------------------------------------- Reporter: mms | Type: defect Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: RTMP dahua | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: Dahua cameras do not send a videocodecid in the RTMP handshake metadata. FFMPEG in -listen mode currently fails to accept video streams from these cameras, it disconnects. This would be a workaround fix. When videocodecid is missing, one simple workaround is to check for width metadata which the camera does send and proceed as if the videocodecid was sent, assuming h264. This was done with this library, line 35 reader.go: https://github.com/bluenviron/mediamtx/pull/2298/commits/1d5994e75f3668e1540... Perhaps a way for ffmpeg to take parameters and run in a non-strict mode, taking default values hints for codec from the command line would be best general solution. No ideal solution here, in the end it means millions of cameras out there (that will not be updated) are unusable with ffmpeg. How to reproduce: Run ffmpeg in -listen mode for rtmp connections and watch the connection drop right away when a Dahua camera connects. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11669> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11669: Compatibility issue with RTMP push from Dahua cameras -------------------------------------+------------------------------------- Reporter: mms | Owner: (none) Type: defect | Status: new Priority: important | Component: | undetermined Version: unspecified | Resolution: Keywords: RTMP dahua | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by mms): * priority: normal => important -- Ticket URL: <https://trac.ffmpeg.org/ticket/11669#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11669: Compatibility issue with RTMP push from Dahua cameras -------------------------------------+------------------------------------- Reporter: mms | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: RTMP dahua | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by quinkblack): * priority: important => normal Comment: Without the camera, I don't know how to move forward. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11669#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11669: Compatibility issue with RTMP push from Dahua cameras -------------------------------------+------------------------------------- Reporter: mms | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: RTMP dahua | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by mms): I can set my camera to sent the stream to whatever url is provided. Let me know. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11669#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11669: Compatibility issue with RTMP push from Dahua cameras -------------------------------------+------------------------------------- Reporter: mms | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: RTMP dahua | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by quinkblack): Does it work to use the camera as RTMP server? Use ffmpeg/ffplay as RTMP client, e.g., ffplay rtmp://camera_ip... -- Ticket URL: <https://trac.ffmpeg.org/ticket/11669#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11669: Compatibility issue with RTMP push from Dahua cameras -------------------------------------+------------------------------------- Reporter: mms | Owner: (none) Type: defect | Status: new Priority: normal | Component: | undetermined Version: unspecified | Resolution: Keywords: RTMP dahua | Blocked By: Blocking: | Reproduced by developer: 1 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by mms): This is regarding RTMP push. If ffmpeg is the client then rtsp/rtmp likely does work. The idea here is that port forwarding isn't needed which is why rtmp push is supported by ip cameras. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11669#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg