#5970(undetermined:new): No valid multicast port obtained from RTSP
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Type: defect Status: new | Priority: normal Component: | Version: undetermined | unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: Cannot get multicast RTSP stream from camera via ffmpeg/ffplay. ffmpeg/ffplay tries to connect to UDP port 0 instead of 40000. It sends in SETUP: Transport: RTP/AVP/UDP;multicast But should something like Transport: RTP/AVP;multicast;destination=224.1.2.4;port=40000-40001 How to reproduce: IP camera: Amcrest IPM-HX1, sw. version 2.420.AC00.15.R, build : 2016-09-08. Very popular at the moment IP camera. {{{ ./ffplay-3.2 -rtsp_transport udp_multicast 'rtsp://admin:password@10.0.1.20/cam/realmonitor?channel=1&subtype=0&proto=Dahua3&unicast=false' ffplay version 3.2 Copyright (c) 2003-2016 the FFmpeg developers built with Apple LLVM version 8.0.0 (clang-800.0.42.1) configuration: libavutil 55. 34.100 / 55. 34.100 libavcodec 57. 64.100 / 57. 64.100 libavformat 57. 56.100 / 57. 56.100 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 [udp @ 0x7fb20bc9d500] bind failed: Permission denied 0B f=0/0 [udp @ 0x7fb20bc9b1a0] bind failed: Permission denied [udp @ 0x7fb20bc9b220] bind failed: Permission denied Segmentation fault: 11 }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: normal | Component: Version: unspecified | undetermined Keywords: rtsp, | Resolution: multicast | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by ioeir2): * keywords: => rtsp, multicast -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: important | Component: Version: unspecified | undetermined Keywords: rtsp crash | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Changes (by cehoyos): * keywords: rtsp, multicast => rtsp crash * priority: normal => important Comment: Is the issue reproducible with current FFmpeg? Please provide backtrace, disassembly and register dump as explained on https://ffmpeg.org/bugreports.html -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: important | Component: Version: unspecified | undetermined Keywords: rtsp crash | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by ioeir2): Yes, the issue is reproducible on the latest master ffmpeg. The problem is that ffmpeg/ffplay incorrectly obtains port for udp multicast from SDP. Actually it cannot obtain it all and uses port 0, which causes the crash. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: important | Component: Version: unspecified | undetermined Keywords: rtsp crash | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by ioeir2): Yes, the issue is reproducible on the latest master ffmpeg. The problem is that ffmpeg/ffplay incorrectly obtains port for udp multicast from SDP. Actually it cannot obtain it all and uses port 0, which causes the crash. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: important | Component: Version: unspecified | undetermined Keywords: rtsp crash | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by cehoyos): Please provide backtrace, disassembly and register dump as explained on https://ffmpeg.org/bugreports.html -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: important | Component: Version: unspecified | undetermined Keywords: rtsp crash | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by ioeir2): I was not able to make gdb debugging on Mac OS Sierra due to some gdb signing issues. I recompiled ffplay on Ubuntu and reproduced the problem. Crash happens only if the ffplay is running as regular user. There is no crash if it is running via sudo. {{{ (gdb) run Starting program: /home/alex/1/ffplay_g -rtsp_transport udp_multicast rtsp://admin:password@10.0.1.150/cam/realmonitor\?channel=1\&subtype=0\&proto=Dahua3\&unicast=false [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ffplay version N-82572-gac206bb Copyright (c) 2003-2016 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609 configuration: libavutil 55. 40.100 / 55. 40.100 libavcodec 57. 66.105 / 57. 66.105 libavformat 57. 58.100 / 57. 58.100 libavdevice 57. 2.100 / 57. 2.100 libavfilter 6. 67.100 / 6. 67.100 libswscale 4. 3.101 / 4. 3.101 libswresample 2. 4.100 / 2. 4.100 [New Thread 0x7ffff0f96700 (LWP 21439)] [New Thread 0x7fffeef91700 (LWP 21440)] [New Thread 0x7fffee790700 (LWP 21441)] [Thread 0x7fffeef91700 (LWP 21440) exited] [New Thread 0x7fffeef91700 (LWP 21442)] [New Thread 0x7fffee10c700 (LWP 21443)] [udp @ 0x7fffd0003520] bind failed: Permission denied 0B f=0/0 [udp @ 0x7fffd00293c0] bind failed: Permission denied [udp @ 0x7fffd00395c0] bind failed: Permission denied Thread 6 "read_thread" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffee10c700 (LWP 21443)] ffurl_get_file_handle (h=0x0) at libavformat/avio.c:628 628 if (!h->prot->url_get_file_handle) }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: important | Component: Version: unspecified | undetermined Keywords: rtsp crash | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by cehoyos): Does {{lldb}}} not work? -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:7> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: important | Component: Version: unspecified | undetermined Keywords: rtsp crash | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by cehoyos): Replying to [comment:6 ioeir2]:
I recompiled ffplay on Ubuntu and reproduced the problem. Crash happens only if the ffplay is running as regular user. There is no crash if it is running via sudo.
The issue is only reproducible with ffplay, not with ffmpeg? -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:8> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: Type: defect | Status: new Priority: important | Component: Version: unspecified | undetermined Keywords: rtsp crash | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+------------------------------------- Comment (by ioeir2): lldb works - my fault. ffmpeg crashing as well. -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:9> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#5970: No valid multicast port obtained from RTSP -------------------------------------+------------------------------------- Reporter: ioeir2 | Owner: ePirat Type: defect | Status: open Priority: important | Component: | undetermined Version: unspecified | Resolution: Keywords: rtsp crash | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by ePirat): * owner: (none) => ePirat * status: new => open -- Ticket URL: <https://trac.ffmpeg.org/ticket/5970#comment:10> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg