bilibili / ijkplayer

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

A question about the sound of a play #1173

Open zhang625152131 opened 8 years ago

zhang625152131 commented 8 years ago

hello, I have a problem with my IOS project. When I playing page 1 open the video playback, and then exit the player page 1, in play page 2 opened a new video, broadcast page 2 page 1 audio and page 2 of the audio player at the same time, and exit playback page 2 back to the main page, the background will be to page 1 of audio playback, and can't stop Here's what I'm catching log

## open 1st page and close log ===== custom modules begin ===== register protocol: async register protocol: ijkhttphook register protocol: ijkinject register protocol: ijklongurl register protocol: ijksegment register protocol: ijktcphook register demuxer : ijklivehook ===== custom modules end ===== av_version_info: ff2.8--ijk0.4.4.1--dev0.3.3--rc7 ijkmp_set_inject_opaque(0x7fcaeb0e1200) ijkmp_set_inject_opaque()=void 2016-04-14 14:37:49.874 [10406:6331771] OK setup GL ijkmp_ios_set_view(glView=0x7fcaeb127df0) ijkmp_ios_set_view(glView=0x7fcaeb127df0)=void ijkmp_set_data_source(url="http://114.247.94.204:8383/play?fid=99d17c71f5865dc71149530fe62d11a1") ijkmp_set_data_source(url="http://114.247.94.204:8383/play?fid=99d17c71f5865dc71149530fe62d11a1")=0 ijkmp_prepare_async() ===== versions ===== FFmpeg : ff2.8--ijk0.4.4.1--dev0.3.3--rc7 libavutil : 54.31.100 libavcodec : 56.60.100 libavformat : 56.40.101 libswscale : 3.1.101 libswresample: 1.2.101 ===== options ===== player-opts : video-pictq-size = 3 player-opts : overlay-format = fcc-_es2 player-opts : max-fps = 30 player-opts : framedrop = 0 player-opts : videotoolbox-max-frame-width = 960 player-opts : videotoolbox = 0 player-opts : start-on-prepared = 1 format-opts : ijkinject-opaque = 140509503689216 format-opts : user-agent = ijkplayer format-opts : auto_convert = 0 format-opts : timeout = 30000000 format-opts : reconnect = 1

format-opts : safe = 0

ijkmp_prepare_async()=0 ijkmp_start() ijkmpstart()=-3 request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=0- Connection: close Host: 114.247.94.204:8383 Icy-MetaData: 1

request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8181 Icy-MetaData: 1

request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1 2016-04-14 14:37:50.188[10406:6331771] invalidateRenderBuffer 2016-04-14 14:37:50.189[10406:6332462] IJKSDLGLView: setupDisplay not ready Format mpegts probed with size=2048 and score=100 request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

stream=0 stream_type=1b pid=100 prog_reg_desc= stream=1 stream_type=f pid=101 prog_reg_desc= Option safe not found. Before avformat_find_stream_info() pos: 0 bytes read:50144 seeks:1 2016-04-14 14:37:50.228[10406:6331771] invalidateRenderBuffer 2016-04-14 14:37:50.228[10406:6332462] IJKSDLGLView: setupDisplay not ready non-existing SPS 0 referenced in buffering period non-existing SPS 0 referenced in buffering period no picture max_analyzeduration 5000000 reached at 5000000 microseconds st:0 request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=1261022636- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

After avformat_find_stream_info() pos: 0 bytes read:2622824 seeks:3 frames:360 max_frame_duration: 10.000 Input #0, mpegts, from 'http://114.247.94.204:8383/play?fid=99d17c71f5865dc71149530fe62d11a1': Duration: 00:43:28.28, start: 1.400000, bitrate: 3868 kb/s Program 1 Metadata: service_name : tvie-transcode-engine service_provider: FFmpeg Stream #0:0[0x100], 127, 1/90000: Video: h264 (High), 4 reference frames ([27][0][0][0] / 0x001B), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 1/50, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:10x101, 233, 1/90000: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 141 kb/s aout_open_audio() AudioCodec: avcodec, aac aout_pause_audio(0) detected 4 logical cores non-existing SPS 0 referenced in buffering period vtb fail!!! switch to ffmpeg decode!!!! VideoCodec: avcodec, h264 fps: 25.000000 (normal) fps: 25.000000 (normal) 2016-04-14 14:37:51.394[10406:6331771] FFP_MSG_VIDEO_DECODER_OPEN: false ijkmp_get_msg: FFP_MSG_PREPARED 2016-04-14 14:37:51.395[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 2016-04-14 14:37:51.395[10406:6331771] FFP_MSG_SAR_CHANGED: 1, 1 2016-04-14 14:37:51.396[10406:6331771] FFP_MSG_PREPARED: ijkmp_get_meta_l ijkmp_get_meta_l()=void non-existing SPS 0 referenced in buffering period 2016-04-14 14:37:51.396[10406:6331771] fps in meta 25.000000 2016-04-14 14:37:51.397[10406:6331771] moviePlayBackStateDidChange 4: seeking ijkmp_seek_to(1000) ijkmp_seek_to(1000)=0 2016-04-14 14:37:51.398[10406:6331771] mediaIsPreparedToPlayDidChange 2016-04-14 14:37:51.399[10406:6331771] loadStateDidChange: MPMovieLoadStatePlaythroughOK: 3 ijkmp_get_msg: FFP_REQ_SEEK stream_seek 2400000(1000) + 1400000, ijkmp_get_msg: FFP_REQ_SEEK: seek to 1000 ffp_toggle_buffering_l: start aout_pause_audio(1) 2016-04-14 14:37:51.402[10406:6331771] moviePlayBackStateDidChange 4: seeking no picture no picture 2016-04-14 14:37:51.456[10406:6331771] FFP_MSG_BUFFERINGSTART: 2016-04-14 14:37:51.457[10406:6331771] loadStateDidChange: MPMovieLoadStateStalled: 4 2016-04-14 14:37:51.459[10406:6331771] invalidateRenderBuffer 2016-04-14 14:37:51.459[10406:6332678] IJKSDLGLView: setupDisplay not ready request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=0- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

2016-04-14 14:37:51.490[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 SDL_VoutFFmpegCreateOverlay(w=1920, h=1080, fmt=I420(0x30323449, dp=0x7fcaeb11af70) Video: first frame decoded non-existing SPS 0 referenced in buffering period request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=1261271696- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=1261269628- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=1261265492- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

non-existing SPS 0 referenced in buffering period request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=1261264092- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

non-existing SPS 0 referenced in buffering period request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=1261266620- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=522828- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

non-existing SPS 0 referenced in buffering period request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=565504- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

non-existing SPS 0 referenced in buffering period request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=567572- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE 2016-04-14 14:37:51.630[10406:6331771] FFP_MSG_SEEK_COMPLETE: non-existing SPS 0 referenced in buffering period Frame num gap 1 -1 Missing reference picture, default is 0 no picture no picture mmco: unref short failure ffp_toggle_buffering_l: end aout_pause_audio(0) 2016-04-14 14:37:51.903[10406:6331771] FFP_MSG_BUFFERING_END: 2016-04-14 14:37:51.903[10406:6331771] loadStateDidChange: MPMovieLoadStatePlaythroughOK: 3 2016-04-14 14:37:51.904[10406:6331771] moviePlayBackStateDidChange 1: playing 2016-04-14 14:37:51.904[10406:6331771] invalidateRenderBuffer 2016-04-14 14:37:51.905[10406:6332678] IJKSDLGLView: setupDisplay not ready Using fltp internally between filters avcodec/Audio: first frame decoded 2016-04-14 14:37:51.940[10406:6331771] FFP_MSG_AUDIO_RENDERING_START: SDL_VoutFFmpeg_CreateOverlay(w=1920, h=1080, fmt=I420(0x30323449, dp=0x7fcaeb11af70) 2016-04-14 14:37:52.932[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 SDL_VoutFFmpeg_CreateOverlay(w=1920, h=1080, fmt=I420(0x30323449, dp=0x7fcaeb11af70) 2016-04-14 14:37:52.934[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 [GLES2] Version = OpenGL ES 2.0 APPLE-12.0.41 [GLES2] Vendor = Apple Inc. [GLES2] Renderer = Apple Software Renderer [GLES2] Extensions = GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_compression_pvrtc create render yuv420p use render yuv420p 2016-04-14 14:37:53.039 [10406:6332685] IJKSDLGLView: renderbufferStorage fromDrawable 2016-04-14 14:37:53.559 [10406:6331771] FFP_MSG_VIDEO_RENDERING_START: ijkmp_stop() PES packet size mismatch ijkmp_stop()=0 ijkmp_shutdown_l() wait for read_tid aout_close_audio() Statistics: 15644213 bytes read, 11 seeks wait for video_refresh_tid SDL_Overlay(ffmpeg): overlay_free_l(0x7fcae8e8b520) SDL_Overlay(ffmpeg): overlay_free_l(0x7fcae8eabf30) SDL_Overlay(ffmpeg): overlay_free_l(0x7fcae8fa7140) ijkmp_shutdown_l()=void ijkmp_dec_ref(): ref=0 ijkmp_shutdown_l() ijkmp_shutdown_l()=void aout_close_audio()

## open 2nd page and close log

av_version_info: ff2.8--ijk0.4.4.1--dev0.3.3--rc7 ijkmp_set_inject_opaque(0x7fcaed971b30) ijkmp_set_inject_opaque()=void 2016-04-14 14:43:45.703[10406:6331771] OK setup GL ijkmp_ios_set_view(glView=0x7fcaed966230) ijkmp_ios_set_view(glView=0x7fcaed966230)=void

ijkmp_set_data_source(url="http://114.247.94.204:8383/play?fid=99d17c71f5865dc71149530fe62d11a1") ijkmp_set_data_source(url="http://114.247.94.204:8383/play?fid=99d17c71f5865dc71149530fe62d11a1")=0 ijkmp_prepare_async() ===== versions ===== [FFPlayer @ 0x7fcae8e90fb0] FFmpeg : ff2.8--ijk0.4.4.1--dev0.3.3--rc7 [FFPlayer @ 0x7fcae8e90fb0] libavutil : 54.31.100 [FFPlayer @ 0x7fcae8e90fb0] libavcodec : 56.60.100 [FFPlayer @ 0x7fcae8e90fb0] libavformat : 56.40.101 [FFPlayer @ 0x7fcae8e90fb0] libswscale : 3.1.101 [FFPlayer @ 0x7fcae8e90fb0] libswresample: 1.2.101 ===== options ===== [FFPlayer @ 0x7fcae8e90fb0] player-opts : video-pictq-size = 3 [FFPlayer @ 0x7fcae8e90fb0] player-opts : overlay-format = fcc-_es2 [FFPlayer @ 0x7fcae8e90fb0] player-opts : max-fps = 30 [FFPlayer @ 0x7fcae8e90fb0] player-opts : framedrop = 0 [FFPlayer @ 0x7fcae8e90fb0] player-opts : videotoolbox-max-frame-width = 960 [FFPlayer @ 0x7fcae8e90fb0] player-opts : videotoolbox = 0 [FFPlayer @ 0x7fcae8e90fb0] player-opts : start-on-prepared = 1 [FFPlayer @ 0x7fcae8e90fb0] format-opts : ijkinject-opaque = 140509546224432 [FFPlayer @ 0x7fcae8e90fb0] format-opts : user-agent = ijkplayer [FFPlayer @ 0x7fcae8e90fb0] format-opts : auto_convert = 0 [FFPlayer @ 0x7fcae8e90fb0] format-opts : timeout = 30000000 [FFPlayer @ 0x7fcae8e90fb0] format-opts : reconnect = 1

[FFPlayer @ 0x7fcae8e90fb0] format-opts : safe = 0

ijkmp_prepare_async()=0 ijkmp_start() ijkmp_start()=-3 av_version_info: ff2.8--ijk0.4.4.1--dev0.3.3--rc7 ijkmp_set_inject_opaque(0x7fcaedc4d5e0) ijkmp_set_inject_opaque()=void 2016-04-14 14:43:45.729[10406:6331771] OK setup GL ijkmp_ios_set_view(glView=0x7fcaedc4dda0) ijkmp_ios_setview(glView=0x7fcaedc4dda0)=void [http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=0- Connection: close Host: 114.247.94.204:8383 Icy-MetaData: 1

[http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8181 Icy-MetaData: 1

[http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

ijkmp_set_data_source(url="http://114.247.94.204:8383/play?fid=ca0936cb69ac73e73dade91b23a459a8") ijkmp_set_data_source(url="http://114.247.94.204:8383/play?fid=ca0936cb69ac73e73dade91b23a459a8")=0 ijkmp_prepare_async() ===== versions ===== [FFPlayer @ 0x7fcaedc4d830] FFmpeg : ff2.8--ijk0.4.4.1--dev0.3.3--rc7 [FFPlayer @ 0x7fcaedc4d830] libavutil : 54.31.100 [FFPlayer @ 0x7fcaedc4d830] libavcodec : 56.60.100 [FFPlayer @ 0x7fcaedc4d830] libavformat : 56.40.101 [FFPlayer @ 0x7fcaedc4d830] libswscale : 3.1.101 [FFPlayer @ 0x7fcaedc4d830] libswresample: 1.2.101 ===== options ===== [FFPlayer @ 0x7fcaedc4d830] player-opts : video-pictq-size = 3 [FFPlayer @ 0x7fcaedc4d830] player-opts : overlay-format = fcc-_es2 [FFPlayer @ 0x7fcaedc4d830] player-opts : max-fps = 30 [FFPlayer @ 0x7fcaedc4d830] player-opts : framedrop = 0 [FFPlayer @ 0x7fcaedc4d830] player-opts : videotoolbox-max-frame-width = 960 [FFPlayer @ 0x7fcaedc4d830] player-opts : videotoolbox = 0 [FFPlayer @ 0x7fcaedc4d830] player-opts : start-on-prepared = 1 [FFPlayer @ 0x7fcaedc4d830] format-opts : ijkinject-opaque = 140509549221344 [FFPlayer @ 0x7fcaedc4d830] format-opts : user-agent = ijkplayer [FFPlayer @ 0x7fcaedc4d830] format-opts : auto_convert = 0 [FFPlayer @ 0x7fcaedc4d830] format-opts : timeout = 30000000 [FFPlayer @ 0x7fcaedc4d830] format-opts : reconnect = 1

[FFPlayer @ 0x7fcaedc4d830] format-opts : safe = 0

ijkmp_prepare_async()=0 ijkmp_start() ijkmp_start()=-3

[http @ 0x7fcaede0d0e0] request: GET /play?fid=ca0936cb69ac73e73dade91b23a459a8 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.204:8383 Icy-MetaData: 1

[http @ 0x7fcaede0d0e0] request: GET /play?fid=ca0936cb69ac73e73dade91b23a459a8 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8181 Icy-MetaData: 1

[http @ 0x7fcaede0d0e0] request: GET /play?fid=ca0936cb69ac73e73dade91b23a459a8 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.87:8080 Icy-MetaData: 1

2016-04-14 14:43:45.891[10406:6331771] invalidateRenderBuffer 2016-04-14 14:43:45.892[10406:6333225] IJKSDLGLView: setupDisplay not ready 2016-04-14 14:43:45.896[10406:6331771] invalidateRenderBuffer 2016-04-14 14:43:45.896[10406:6333225] IJKSDLGLView: setupDisplay not ready [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fcae9207a00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fcae9207a00] ISO: File Type Major Brand: isom [http @ 0x7fcaede0d0e0] request: GET /play?fid=ca0936cb69ac73e73dade91b23a459a8 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=1086457670- Connection: close Host: 114.247.94.87:8080 Icy-MetaData: 1

[mpegts @ 0x7fcaeaae8800] Format mpegts probed with size=2048 and score=100 [http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

[mpegts @ 0x7fcaeaae8800] stream=0 stream_type=1b pid=100 prog_reg_desc= [mpegts @ 0x7fcaeaae8800] stream=1 stream_type=f pid=101 prog_reg_desc= Option safe not found. [mpegts @ 0x7fcaeaae8800] Before avformat_find_stream_info() pos: 0 bytes read:21720 seeks:1 [h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period [h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period [h264 @ 0x7fcae9d6b600] no picture [mpegts @ 0x7fcaeaae8800] max_analyzeduration 5000000 reached at 5000000 microseconds st:0 [http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=1261022636- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

[http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=0- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

[mpegts @ 0x7fcaeaae8800] After avformat_find_stream_info() pos: 0 bytes read:2590552 seeks:3 frames:360 [FFPlayer @ 0x7fcae8e90fb0] max_frame_duration: 10.000 Input #0, mpegts, from 'http://114.247.94.204:8383/play?fid=99d17c71f5865dc71149530fe62d11a1': Duration: 00:43:28.28, start: 1.400000, bitrate: 3868 kb/s Program 1 Metadata: service_name : tvie-transcode-engine service_provider: FFmpeg Stream #0:0[0x100], 127, 1/90000: Video: h264 (High), 4 reference frames ([27][0][0][0] / 0x001B), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 1/50, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:10x101, 233, 1/90000: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 141 kb/s aout_open_audio() [FFPlayer @ 0x7fcae8e90fb0] AudioCodec: avcodec, aac aout_pause_audio(0) [h264 @ 0x7fcae9ea4200] non-existing SPS 0 referenced in buffering period vtb fail!!! switch to ffmpeg decode!!!! [FFPlayer @ 0x7fcae8e90fb0] VideoCodec: avcodec, h264 [FFPlayer @ 0x7fcae8e90fb0] fps: 25.000000 (normal) [FFPlayer @ 0x7fcae8e90fb0] fps: 25.000000 (normal) 2016-04-14 14:43:46.846[10406:6331771] FFP_MSG_VIDEO_DECODER_OPEN: false ijkmp_get_msg: FFP_MSG_PREPARED [h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period 2016-04-14 14:43:46.846[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 2016-04-14 14:43:46.847[10406:6331771] FFP_MSG_SAR_CHANGED: 1, 1 2016-04-14 14:43:46.847[10406:6331771] FFP_MSG_PREPARED: ijkmp_get_meta_l ijkmp_get_meta_l()=void 2016-04-14 14:43:46.847[10406:6331771] fps in meta 25.000000 2016-04-14 14:43:46.847[10406:6331771] _currentPos: ???: 3 2016-04-14 14:43:46.848[10406:6331771] _duration: ???: 156480 2016-04-14 14:43:46.848[10406:6331771] moviePlayBackStateDidChange 4: seeking 2016-04-14 14:43:46.848[10406:6331771] moviePlayBackStateDidChange 2: paused ijkmp_seek_to(3000) ijkmp_seek_to(3000)=0 2016-04-14 14:43:46.848[10406:6331771] mediaIsPreparedToPlayDidChange 2016-04-14 14:43:46.848[10406:6331771] _currentPos: ???: 781 2016-04-14 14:43:46.849[10406:6331771] _duration: ???: 0 ijkmp_get_msg: FFP_REQ_SEEK 2016-04-14 14:43:46.849[10406:6331771] moviePlayBackStateDidChange 4: seeking 2016-04-14 14:43:46.849[10406:6331771] moviePlayBackStateDidChange 2: paused ijkmp_seek_to(781000) ijkmp_seek_to(781000)=-3 [FFPlayer @ 0x7fcae8e90fb0] stream_seek 4400000(3000) + 1400000, [FFPlayer @ 0x7fcae8e90fb0] ijkmp_get_msg: FFP_REQ_SEEK: seek to 3000 2016-04-14 14:43:46.849[10406:6331771] mediaIsPreparedToPlayDidChange 2016-04-14 14:43:46.850[10406:6331771] loadStateDidChange: MPMovieLoadStatePlaythroughOK: 3 2016-04-14 14:43:46.850[10406:6331771] loadStateDidChange: ???: 0 2016-04-14 14:43:46.850[10406:6331771] moviePlayBackStateDidChange 4: seeking 2016-04-14 14:43:46.851[10406:6331771] moviePlayBackStateDidChange 2: paused [h264 @ 0x7fcae9ea4200] no picture [FFPlayer @ 0x7fcae8e90fb0] ffp_toggle_buffering_l: start aout_pause_audio(1) [h264 @ 0x7fcae95d2c00] no picture 2016-04-14 14:43:46.893[10406:6331771] FFP_MSG_BUFFERINGSTART: 2016-04-14 14:43:46.901[10406:6331771] loadStateDidChange: MPMovieLoadStateStalled: 4 2016-04-14 14:43:46.902[10406:6331771] loadStateDidChange: ???: 0 [http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=0- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

[h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period Option safe not found. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fcae9207a00] Before avformat_find_streaminfo() pos: 1089377861 bytes read:2924009 seeks:1 [http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=1261271696- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

[http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=1261269628- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

[http @ 0x7fcaede0d0e0] request: GET /play?fid=ca0936cb69ac73e73dade91b23a459a8 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=40- Connection: close Host: 114.247.94.87:8080 Icy-MetaData: 1

[h264 @ 0x7fcaea097e00] no picture [http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=1261265492- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

[h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period [http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: / Range: bytes=1261264768- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fcae9207a00] All info found [h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fcae9207a00] After avformat_find_stream_info() pos: 2369 bytes read:2990993 seeks:2 frames:11 [FFPlayer @ 0x7fcaedc4d830] max_frame_duration: 10.000 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://114.247.94.204:8383/play?fid=ca0936cb69ac73e73dade91b23a459a8': Metadata: major_brand : isom minor_version : 0 compatible_brands: isommp41 creation_time : 2016-01-13 21:13:31 Duration: 01:46:34.39, start: 0.000000, bitrate: 1362 kb/s Stream #0:0(eng), 10, 1/25000: Video: h264 (High), 3 reference frames (avc1 / 0x31637661), yuv420p(tv, bt709, left), 1280x720 [SAR 1:1 DAR 16:9], 1/50, 1199 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default) Metadata: creation_time : 2016-01-13 21:13:31 handler_name : Video Media Handler encoder : AVC Coding Stream #0:1(eng), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 159 kb/s (default) Metadata: creation_time : 2016-01-13 21:13:31 handlername : request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=1261266620- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

Sound Media Handler aout_open_audio() [FFPlayer @ 0x7fcaedc4d830] AudioCodec: avcodec, aac aout_pause_audio(0) vtb fail!!! switch to ffmpeg decode!!!! [FFPlayer @ 0x7fcaedc4d830] VideoCodec: avcodec, h264 [FFPlayer @ 0x7fcaedc4d830] fps: 25.000000 (normal) [FFPlayer @ 0x7fcaedc4d830] fps: 25.000000 (normal) 2016-04-14 14:43:46.985[10406:6331771] FFP_MSG_VIDEO_DECODER_OPEN: false 2016-04-14 14:43:46.985[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720 2016-04-14 14:43:46.986[10406:6331771] FFP_MSG_SAR_CHANGED: 1, 1 ijkmp_get_msg: FFP_MSG_PREPARED 2016-04-14 14:43:46.986[10406:6331771] FFP_MSG_PREPARED: ijkmp_get_meta_l ijkmp_get_meta_l()=void 2016-04-14 14:43:46.986[10406:6331771] fps in meta 25.000000 [FFPlayer @ 0x7fcaedc4d830] ffp_toggle_buffering_l: start [h264 @ 0x7fcaea946800] no picture aout_pause_audio(1) 2016-04-14 14:43:46.988[10406:6331771] moviePlayBackStateDidChange 4: seeking 2016-04-14 14:43:46.989[10406:6331771] moviePlayBackStateDidChange 4: seeking ijkmp_seek_to(3000) ijkmp_seek_to(3000)=0 ijkmp_get_msg: FFP_REQ_SEEK 2016-04-14 14:43:46.989[10406:6331771] mediaIsPreparedToPlayDidChange [FFPlayer @ 0x7fcae8e90fb0] stream_seek 4400000(3000) + 1400000, [FFPlayer @ 0x7fcae8e90fb0] ijkmp_get_msg: FFP_REQSEEK: seek to 3000 2016-04-14 14:43:46.990[10406:6331771] moviePlayBackStateDidChange 4: seeking [http @ 0x7fcaed987560] request: GET /play?fid=99d17c71f5865dc71149530fe62d11a1 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=1490088- Connection: close Host: 114.247.94.68:8080 Icy-MetaData: 1

2016-04-14 14:43:46.990[10406:6331771] moviePlayBackStateDidChange 4: seeking ijkmp_seek_to(781000) ijkmp_seek_to(781000)=0 2016-04-14 14:43:46.992[10406:6331771] mediaIsPreparedToPlayDidChange ijkmp_get_msg: FFP_REQ_SEEK [FFPlayer @ 0x7fcaedc4d830] stream_seek 781000000(781000) + 0, [FFPlayer @ 0x7fcaedc4d830] ijkmp_get_msg: FFP_REQ_SEEK: seek to 781000 2016-04-14 14:43:46.993[10406:6331771] loadStateDidChange: MPMovieLoadStateStalled: 4 2016-04-14 14:43:46.994[10406:6331771] loadStateDidChange: MPMovieLoadStatePlaythroughOK: 3 2016-04-14 14:43:46.996[10406:6331771] moviePlayBackStateDidChange 4: seeking 2016-04-14 14:43:47.001[10406:6331771] moviePlayBackStateDidChange 4: seeking [h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period [h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period 2016-04-14 14:43:47.018[10406:6331771] FFP_MSG_BUFFERING_START: 2016-04-14 14:43:47.019[10406:6331771] loadStateDidChange: MPMovieLoadStateStalled: 4 2016-04-14 14:43:47.020[10406:6331771] loadStateDidChange: MPMovieLoadStateStalled: 4 SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x7fcaedc4dcc0) Video: first frame decoded 2016-04-14 14:43:47.024[10406:6331771] invalidateRenderBuffer 2016-04-14 14:43:47.026[10406:6334972] IJKSDLGLView: setupDisplay not ready 2016-04-14 14:43:47.028[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720 [h264 @ 0x7fcae9d6b600] non-existing SPS 0 referenced in buffering period ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE 2016-04-14 14:43:47.034[10406:6331771] FFP_MSG_SEEK_COMPLETE: 2016-04-14 14:43:47.035[10406:6331771] FFP_MSG_SEEK_COMPLETE: SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x7fcaedc4dcc0) 2016-04-14 14:43:47.035[10406:6331771] FFP_MSG_VIDEO_SIZECHANGED: 1280, 720 [h264 @ 0x7fcae9ea4200] Frame num gap 15 10 [h264 @ 0x7fcae9ea4200] Frame num gap 15 11 [h264 @ 0x7fcae9ea4200] Frame num gap 15 12 [h264 @ 0x7fcae9ea4200] Frame num gap 15 13 [h264 @ 0x7fcae9ea4200] no picture [h264 @ 0x7fcae95d2c00] no picture [http @ 0x7fcaede0d0e0] request: GET /play?fid=ca0936cb69ac73e73dade91b23a459a8 HTTP/1.1 User-Agent: ijkplayer Accept: /_ Range: bytes=126261837- Connection: close Host: 114.247.94.87:8080 Icy-MetaData: 1

[h264 @ 0x7fcaea946800] no picture SDL_VoutFFmpeg_CreateOverlay(w=1280, h=720, fmt=I420(0x30323449, dp=0x7fcaedc4dcc0) 2016-04-14 14:43:47.223[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1280, 720 [FFPlayer @ 0x7fcae8e90fb0] ffp_toggle_buffering_l: end aout_pause_audio(0) 2016-04-14 14:43:47.355[10406:6331771] FFP_MSG_BUFFERING_END: 2016-04-14 14:43:47.356[10406:6331771] loadStateDidChange: MPMovieLoadStatePlaythroughOK: 3 2016-04-14 14:43:47.356[10406:6331771] loadStateDidChange: MPMovieLoadStateStalled: 4 2016-04-14 14:43:47.358[10406:6331771] moviePlayBackStateDidChange 1: playing 2016-04-14 14:43:47.358[10406:6331771] moviePlayBackStateDidChange 1: playing 2016-04-14 14:43:47.359[10406:6331771] invalidateRenderBuffer 2016-04-14 14:43:47.359[10406:6333225] IJKSDLGLView: setupDisplay not ready [FFPlayer @ 0x7fcaedc4d830] ffp_toggle_buffering_l: end aout_pause_audio(0) 2016-04-14 14:43:47.494[10406:6331771] FFP_MSG_BUFFERING_END: 2016-04-14 14:43:47.495[10406:6331771] loadStateDidChange: MPMovieLoadStatePlaythroughOK: 3 2016-04-14 14:43:47.495[10406:6331771] loadStateDidChange: MPMovieLoadStatePlaythroughOK: 3 2016-04-14 14:43:47.496[10406:6331771] moviePlayBackStateDidChange 1: playing 2016-04-14 14:43:47.496[10406:6331771] moviePlayBackStateDidChange 1: playing 2016-04-14 14:43:47.496[10406:6331771] invalidateRenderBuffer 2016-04-14 14:43:47.497[10406:6333225] IJKSDLGLView: setupDisplay not ready 2016-04-14 14:43:47.498[10406:6334970] IJKSDLGLView:display: unable to tryLock GL active: 0 2016-04-14 14:43:47.500[10406:6331771] FFP_MSG_VIDEO_RENDERING_START: [SWR @ 0x7fcae9c9d000] Using fltp internally between filters avcodec/Audio: first frame decoded 2016-04-14 14:43:47.518[10406:6331771] FFP_MSG_AUDIO_RENDERING_START: [GLES2] Version = OpenGL ES 2.0 APPLE-12.0.41 [GLES2] Vendor = Apple Inc. [GLES2] Renderer = Apple Software Renderer [GLES2] Extensions = GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_compression_pvrtc create render yuv420p use render yuv420p 2016-04-14 14:43:47.581[10406:6334970] IJKSDLGLView: renderbufferStorage fromDrawable SDL_VoutFFmpeg_CreateOverlay(w=1920, h=1080, fmt=I420(0x30323449, dp=0x7fcae8ec6880) Video: first frame decoded 2016-04-14 14:43:48.119[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 [GLES2] Version = OpenGL ES 2.0 APPLE-12.0.41 [GLES2] Vendor = Apple Inc. [GLES2] Renderer = Apple Software Renderer [GLES2] Extensions = GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_read_format GL_IMG_texture_compression_pvrtc create render yuv420p use render yuv420p 2016-04-14 14:43:48.124[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080 [SWR @ 0x7fcaeabee400] Using fltp internally between filters avcodec/Audio: first frame decoded 2016-04-14 14:43:48.133[10406:6331771] FFP_MSG_AUDIO_RENDERING_START: SDL_VoutFFmpeg_CreateOverlay(w=1920, h=1080, fmt=I420(0x30323449, dp=0x7fcae8ec6880) SDL_VoutFFmpeg_CreateOverlay(w=1920, h=1080, fmt=I420(0x30323449, dp=0x7fcae8ec6880) 2016-04-14 14:43:48.471[10406:6331771] FFP_MSG_VIDEO_RENDERING_START: 2016-04-14 14:43:48.472[10406:6331771] FFP_MSG_VIDEO_SIZE_CHANGED: 1920, 1080

ijkmp_stop() ijkmp_stop()=0 ijkmp_shutdown_l() wait for read_tid aout_close_audio() [AVIOContext @ 0x7fcaeb18ae30] Statistics: 18644964 bytes read, 3 seeks wait for video_refresh_tid SDL_Overlay(ffmpeg): overlay_free_l(0x7fcaedd47cf0) SDL_Overlay(ffmpeg): overlay_free_l(0x7fcae8fb52b0) SDL_Overlay(ffmpeg): overlay_free_l(0x7fcaedc62790) ijkmp_shutdown_l()=void ijkmp_dec_ref(): ref=0 ijkmp_shutdown_l() ijkmp_shutdown_l()=void aout_close_audio()

zhang625152131 commented 8 years ago

当我在一个页面播放视频的时候, 退出这个页面之后, 然后打开一个新的页面播放另一个新的视频, 新视频页面会有之前页面的音频同时在播放, 即使退出第二个播放视频的页面, 后台还会继续播放第一个视频的音频, (这两个播放视频的页面不在同一个类里面)

bbcallen commented 8 years ago

You didn't shutdown previous player.

zhang625152131 commented 8 years ago

I call the following method, but it doesn't work.

gaopeipeiok commented 8 years ago

楼主解决了吗,我也遇到了同样的问题。明明调用shutdown了,视频已经没有了,但音频还在

ghost commented 7 years ago

同问,低概率问题,不是必然现象,有的时候,音频无法关闭,请问有解决方案吗