bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.44k stars 8.11k forks source link

audio from rtsp does not play on iOS #3348

Open vtyutin opened 7 years ago

vtyutin commented 7 years ago

I use ijplayer to play RTSP stream on iOS. Video is playing (with 5-6 delay) but audio is not. VLC plays this RTSP stream well with video and audio. Here is the log: ijkmp_ios_set_view(glView=0x11de338c0) ijkmp_ios_set_view(glView=0x11de338c0)=void ijkmp_set_data_source(url="rtsp://10.0.0.27") ijkmp_set_data_source(url="rtsp://10.0.0.27")=0 ijkmp_prepare_async() remove 'timeout' option for rtmp. ===== versions ===== FFmpeg : ff2.8--ijk0.4.1.1--dev0.3.3--rc4 libavutil : 54.31.100 libavcodec : 56.60.100 libavformat : 56.40.101 libswscale : 3.1.101 libswresample: 1.2.101 ===== options ===== player-opts : start-on-prepared = 1 player-opts : overlay-format = fcc-i420 player-opts : max-fps = 60 player-opts : framedrop = 1 player-opts : videotoolbox-max-frame-width = 960 player-opts : videotoolbox = 0 player-opts : video-pictq-size = 3 format-opts : ijkinject-opaque = 4796388128 format-opts : user-agent = ijkplayer format-opts : auto_convert = 0 format-opts : tcp = rtsp_transport format-opts : reconnect = 1 format-opts : safe = 0 codec-opts : skip_frame = 8 codec-opts : skip_loop_filter = 48

ijkmp_prepare_async()=0 ijkmp_start() ijkmp_start()=-3 remove 'timeout' option for rtmp. SDP: v=0

o=- 304089172 304089172 IN IP4 10.0.0.27

s=test-stream

c=IN IP4 0.0.0.0

t=0 0

a=control:*

m=video 0 RTP/AVP 96

a=control:streamid=_stx_96

a=rtpmap:96 H264/90000

a=mimetype:string;"video/H264"

a=framesize:96 1088-816

a=Width:integer;1088

a=Height:integer;816

a=fmtp:96 packetization-mode=1;profile-level-id=4d001f;sprop-parameter-sets=Z00AH6tAIgM/LJNwICAqQIA=,KO4Lww==

m=audio 0 RTP/AVP 97

a=control:streamid=_stx_97

a=rtpmap:97 mpeg4-generic/44100/1

a=fmtp:97 mode=AAC-hbr;

video codec set to: h264 RTP Packetization Mode: 1 RTP Profile IDC: 4d Profile IOP: 0 Level: 1f Extradata set to 0x170272940 (size: 29) audio codec set to: aac audio samplerate set to: 44100 audio channels set to: 1 end receive buffer size reported is 65536 end receive buffer size reported is 65536 end receive buffer size reported is 65536 end receive buffer size reported is 65536 hello state=0 Option ijkinject-opaque not found. Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers

raymond1012 commented 7 years ago

Error parsing AU headers

2017-07-14 2:48 GMT+08:00 vtyutin notifications@github.com:

I use ijplayer to play RTSP stream on iOS. Video is playing (with 5-6 delay) but audio is not. VLC plays this RTSP stream well with video and audio. Here is the log: ijkmp_ios_set_view(glView=0x11de338c0) ijkmp_ios_set_view(glView=0x11de338c0)=void ijkmp_set_data_source(url="rtsp://10.0.0.27") ijkmp_set_data_source(url="rtsp://10.0.0.27")=0 ijkmp_prepare_async() remove 'timeout' option for rtmp. ===== versions ===== FFmpeg : ff2.8--ijk0.4.1.1--dev0.3.3--rc4 libavutil : 54.31.100 libavcodec : 56.60.100 libavformat : 56.40.101 libswscale : 3.1.101 libswresample: 1.2.101 ===== options ===== player-opts : start-on-prepared = 1 player-opts : overlay-format = fcc-i420 player-opts : max-fps = 60 player-opts : framedrop = 1 player-opts : videotoolbox-max-frame-width = 960 player-opts : videotoolbox = 0 player-opts : video-pictq-size = 3 format-opts : ijkinject-opaque = 4796388128 <(479)%20638-8128> format-opts : user-agent = ijkplayer format-opts : auto_convert = 0 format-opts : tcp = rtsp_transport format-opts : reconnect = 1 format-opts : safe = 0 codec-opts : skip_frame = 8 codec-opts : skip_loop_filter = 48

ijkmp_prepare_async()=0 ijkmp_start() ijkmp_start()=-3 remove 'timeout' option for rtmp. SDP: v=0

o=- 304089172 304089172 IN IP4 10.0.0.27

s=test-stream

c=IN IP4 0.0.0.0

t=0 0

a=control:*

m=video 0 RTP/AVP 96

a=control:streamid=_stx_96

a=rtpmap:96 H264/90000

a=mimetype:string;"video/H264"

a=framesize:96 1088-816

a=Width:integer;1088

a=Height:integer;816

a=fmtp:96 packetization-mode=1;profile-level-id=4d001f;sprop- parameter-sets=Z00AH6tAIgM/LJNwICAqQIA=,KO4Lww==

m=audio 0 RTP/AVP 97

a=control:streamid=_stx_97

a=rtpmap:97 mpeg4-generic/44100/1

a=fmtp:97 mode=AAC-hbr;

video codec set to: h264 RTP Packetization Mode: 1 RTP Profile IDC: 4d Profile IOP: 0 Level: 1f Extradata set to 0x170272940 (size: 29) audio codec set to: aac audio samplerate set to: 44100 audio channels set to: 1 end receive buffer size reported is 65536 end receive buffer size reported is 65536 end receive buffer size reported is 65536 end receive buffer size reported is 65536 hello state=0 Option ijkinject-opaque not found. Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers Error parsing AU headers

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Bilibili/ijkplayer/issues/3348, or mute the thread https://github.com/notifications/unsubscribe-auth/AEOmlilKxATKy7CDWvsk2918SNDbAriCks5sNmZwgaJpZM4OXZLs .