RTSP not work
- Dominant language
- C
- Stars
- 33.2k
- Forks
- 8.2k
- PR merge metrics
- No merged PRs in 30d
Description
My module-lite.sh add...
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-muxer=matroska"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-muxer=matroska_audio"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=matroska"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=rtsp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-filters"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=tcp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=sdp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=rtp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=mp4"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=rtp"
[options setFormatOptionValue:@"tcp" forKey:@"rtsp_transport"];
My Log :
2017-11-13 15:08:18.265553 IJKMediaDemo[468:38206] [DYMTLInitPlatform] platform initialization successful
===== custom modules begin =====
register demuxer : ijklivehook
===== custom modules end =====
av_version_info: ff3.3--ijk0.8.0--20170829--001
ijk_version_info:
ijkmp_set_inject_opaque(0x15696c30)
ijkmp_set_inject_opaque()=void
ijkmp_set_ijkio_inject_opaque(0x15696c30)
ijkmp_set_ijkio_inject_opaque()=void
2017-11-13 15:08:42.454724 IJKMediaDemo[468:38155] OK setup GL
ijkmp_ios_set_view(glView=0x1569cfc0)
ijkmp_ios_set_view(glView=0x1569cfc0)=void
2017-11-13 15:08:42.489380 IJKMediaDemo[468:38155] invalidateRenderBuffer
ijkmp_set_data_source(url="rtsp://192.168.43.223/live/tcp/ch1_0")
ijkmp_set_data_source(url="rtsp://192.168.43.223/live/tcp/ch1_0")=0
ijkmp_prepare_async()
remove 'timeout' option for rtmp.
===== versions =====
ijkplayer :
FFmpeg : ff3.3--ijk0.8.0--20170829--001
libavutil : 55.58.100
libavcodec : 57.89.100
libavformat : 57.71.100
2017-11-13 15:08:42.499918 IJKMediaDemo[468:38195] IJKSDLGLView: setupDisplay not ready
libswscale : 4.6.100
libswresample: 2.7.100
===== options =====
player-opts : videotoolbox-max-frame-width = 960
player-opts : overlay-format = fcc-_es2
player-opts : framedrop = 0
player-opts : max-fps = 30
player-opts : video-pictq-size = 3
player-opts : videotoolbox = 0
player-opts : start-on-prepared = 1
format-opts : ijkapplication = 359211008
format-opts : ijkiomanager = 369772544
format-opts : rtsp_transport = tcp
format-opts : rtsp_flags = prefer_tcp
format-opts : reconnect = 1
format-opts : auto_convert = 0
format-opts : protocol_whitelist = tcp,rtp,udp,concat,file,subfile,duration,rtsp
format-opts : safe = 0
format-opts : user-agent = ijkplayer
===================
ijkmp_prepare_async()=0
remove 'timeout' option for rtmp.
2017-11-13 15:08:42.546217 IJKMediaDemo[468:38155] invalidateRenderBuffer
2017-11-13 15:08:42.546535 IJKMediaDemo[468:38281] IJKSDLGLView: setupDisplay not ready
Add dns cache hostname = 192.168.43.223, ip =
SDP:
v=0
o=- 0 0 IN IPV4 192.168.43.223
t=0 0
s=guoke
a=control:*
c=IN IP4 192.168.43.223
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=64001f; packetization-mode=1;sprop-parameter-sets=R2QAH6wzYCgC3IAA,SOpDww==
a=control:video/track1
a=recvonly
m=audio 0 RTP/AVP 97
a=rtpmap:97 PCMA/16000/1
a=control:audio/track2
a=recvonly
video codec set to: h264
RTP Profile IDC: 64 Profile IOP: 0 Level: 1f
RTP Packetization Mode: 1
Extradata set to 0x155ae0e0 (size: 24)
How can I do?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing module-lite.sh and the Objective-C format-option setup for rtsp_transport, then compare the reported SDP and log with the RTSP demuxing path. No test or specific source entry point is named; done would require identifying the cause of this stream failing and demonstrating that the reported RTSP URL opens successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, objective-c
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100